CVE-2026-4360
Vulnerability Summary
Timeline
Description
In the Tarfile.extract() function, the filter parameter is not passed properly when extracting hardlinks. An affected system that extracts content from untrusted tar files could end up writing files with an unexpected uid/gid despite the user passing filter='data' to the extract() function.
CVSS Metrics
- v4.0•LOW•Score: 2CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
- v4.0•LOW•Score: 2CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- v3.1•MEDIUM•Score: 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- v3.1•MEDIUM•Score: 5CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
EPSS Trends
Current EPSS score: 0.28%• Percentile: 20%
Techniques & Countermeasures
- CWE-281•Improper Preservation of Permissions
The product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended.
Affected Systems
- alpine•python3
< 3.12.14-r0 | < 3.12.14-r0 | < 3.12.14-r0 | < 3.14.7-r0
- chainguard•python-3.10
< 3.10.20-r10
- chainguard•python-3.11
< 3.11.15-r8
- chainguard•python-3.12
< 3.12.13-r10
- chainguard•python-3.13
< 3.13.14-r2
- chainguard•python-3.14
< 3.14.6-r3
- wolfi•python-3.10
< 3.10.20-r10
- wolfi•python-3.11
< 3.11.15-r8
- wolfi•python-3.12
< 3.12.13-r10
- wolfi•python-3.13
< 3.13.14-r2
- wolfi•python-3.14
< 3.14.6-r3
- debian•pypy3
all | all
- debian•python3.13
all | all | < 3.13.5-2+deb13u5 | < 3.13.15-1
- debian•python3.14
all | < 3.14.7-1
- ubuntu•python2.7
all | < 2.7.6-8ubuntu0.6+esm30 | < 2.7.12-1ubuntu0~16.04.18+esm22 | < 2.7.17-1~18.04ubuntu1.13+esm15 | < 2.7.18-13ubuntu1.5+esm9
- ubuntu•python3.10
all | < 3.10.12-1~22.04.18
- ubuntu•python3.11
all | all | < 3.11.0~rc1-1~22.04.1+esm2
- ubuntu•python3.12
all | < 3.12.3-1ubuntu0.17
- ubuntu•python3.13
all
- ubuntu•python3.14
all | all | < 3.14.4-1ubuntu0.2
- ubuntu•python3.4
all | < 3.4.3-1ubuntu1~14.04.7+esm21
- ubuntu•python3.5
all | < 3.5.2-2ubuntu0~16.04.4~14.04.1+esm11 | < 3.5.2-2ubuntu0~16.04.13+esm25
- ubuntu•python3.6
all | < 3.6.9-1~18.04ubuntu1.13+esm10
- ubuntu•python3.7
all | < 3.7.5-2ubuntu1~18.04.2+esm11
- ubuntu•python3.8
all | < 3.8.0-3ubuntu1~18.04.2+esm11 | < 3.8.10-0ubuntu1~20.04.18+esm7
- ubuntu•python3.9
all | < 3.9.5-3ubuntu0~20.04.1+esm11
- python software foundation•cpython
< 3.15.0 | < 3.13.15 | < 3.10.21 | ≥ 3.11.0, < 3.11.16 | ≥ 3.12.0, < 3.12.14 | ≥ 3.13.0, < 3.13.15 | ≥ 3.14.0, < 3.14.7 | ≥ 3.15.0a1, < 3.15.0b4
- python•python
< 3.1.5
- redhat•python-unversioned-command
< 0:3.14.6-2.1.hum1
- redhat•python3
< 0:3.14.6-2.1.hum1
- redhat•python3.10
< 0:3.10.20-3.1.hum1
- redhat•python3.11
< 0:3.11.15-5.4.hum1
- redhat•python3.12
< 0:3.12.13-3.7.hum1
- redhat•python3.13
< 0:3.13.14-1.6.hum1
- redhat•python3.14
< 0:3.14.6-2.1.hum1
References (32)
- https://mail.python.org/archives/list/security-announce@python.org/thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/
- https://github.com/python/cpython/pull/151988
- https://github.com/python/cpython/issues/151987
- https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0
- https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301
- https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a
- https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e
- https://github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44
- https://github.com/python/cpython/commit/cf23b9153181062150d061468b6d24af33fe214f
- https://github.com/python/cpython/commit/0367912be336348b30572f8029cec4a282782d92
- https://access.redhat.com/errata/RHSA-2026:47892
- https://access.redhat.com/security/cve/CVE-2026-4360
- https://access.redhat.com/security/updates/classification/
- https://images.redhat.com/
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_47892.json
- https://bugzilla.redhat.com/show_bug.cgi?id=2494987
- https://www.cve.org/CVERecord?id=CVE-2026-4360
- https://nvd.nist.gov/vuln/detail/CVE-2026-4360
- https://access.redhat.com/errata/RHSA-2026:47896
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_47896.json
- https://access.redhat.com/errata/RHSA-2026:47915
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_47915.json
- https://access.redhat.com/errata/RHSA-2026:47926
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_47926.json
- https://access.redhat.com/errata/RHSA-2026:47930
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_47930.json
- https://ubuntu.com/security/CVE-2026-4360
- https://security-tracker.debian.org/tracker/CVE-2026-4360
- https://security.alpinelinux.org/vuln/CVE-2026-4360
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4360.json
- https://github.com/python/cpython
- https://ubuntu.com/security/notices/USN-8744-1