Description
An issue was discovered in Python 3.11 through 3.11.4. If a path containing '\0' bytes is passed to os.path.normpath(), the path will be truncated unexpectedly at the first '\0' byte. There are plausible cases in which an application would have rejected a filename for security reasons in Python 3.10.x or earlier, but that filename is no longer rejected in Python 3.11.x.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | python3.11 | 3.11.2-6+deb12u2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | python3.10 | 3.10.12-1~22.04.4 | USN-6891-1 |
| Ubuntu 20.04 LTS | python3.8 | 3.8.10-0ubuntu1~20.04.10 | USN-6891-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | python3.11 | 3.11.0~rc1-1~22.04.1~esm1 | USN-6891-1 |
| Ubuntu Pro 20.04 LTS | python3.9 | 3.9.5-3ubuntu0~20.04.1+esm2 | USN-6891-1 |
| Ubuntu Pro 18.04 LTS | python3.6 | 3.6.9-1~18.04ubuntu1.13+esm2 | USN-6891-1 |
| Ubuntu Pro 18.04 LTS | python3.7 | 3.7.5-2ubuntu1~18.04.2+esm3 | USN-6891-1 |
| Ubuntu Pro 18.04 LTS | python3.8 | 3.8.0-3ubuntu1~18.04.2+esm2 | USN-6891-1 |
| Ubuntu Pro 16.04 LTS | python3.5 | 3.5.2-2ubuntu0~16.04.13+esm13 | USN-6891-1 |
| Ubuntu Pro 14.04 LTS | python3.5 | 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 | USN-6891-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | python3.11 +6 | 3.11.5-1.el9_3 | RHSA-2023:6494 |
| RHEL 8 | python3.11 +7 | 3.11.5-1.el8_9 | RHSA-2023:7024 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | python3.11 +6 | 3.11.5-1.el9_3 | ALSA-2023:6494 |
| AlmaLinux 8 | python3.11 +7 | 3.11.5-1.el8_9 | ALSA-2023:7024 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | python3 +1 | 3.4.10-25.116.1 | SUSE-SU-2023:3939-1 |
| SLES 12 | python3 +1 | 3.4.10-25.116.1 | SUSE-SU-2023:3939-1 |
| SLES 3 | python311 | 3.11.5-150400.9.20.1 | SUSE-SU-2023:3943-1 |
| SLES 3 | python311-core +1 | 3.11.5-150400.9.20.2 | SUSE-SU-2023:3943-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | python3 +1 | 3.4.10-25.116.1 | SUSE-SU-2023:3939-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python311 | 3.11.5-2.1 | openSUSE-SU-2024:13261-1 |
| openSUSE Leap 15.5 | python311 | 3.11.5-150400.9.20.1 | SUSE-SU-2023:3943-1 |
| openSUSE Leap 15.5 | python311-core +1 | 3.11.5-150400.9.20.2 | SUSE-SU-2023:3943-1 |
| openSUSE Leap 15.4 | python311 | 3.11.5-150400.9.20.1 | SUSE-SU-2023:3943-1 |
| openSUSE Leap 15.4 | python311-core +1 | 3.11.5-150400.9.20.2 | SUSE-SU-2023:3943-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | python3.11 +6 | 3.11.2-2.amzn2023.0.10 | ALAS2023-2023-317 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | python3.11 +6 | 3.11.5-1.el9_3 | ELSA-2023-6494 |
| Oracle Linux 8 | python3.11 +7 | 3.11.5-1.el8_9 | ELSA-2023-7024 |
Advisories 16
- ALSA-2023:6494 Moderate: python3.11 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2023:7024 Moderate: python3.11 security update AlmaLinux Security Advisories · Oct 29, 2026
- USN-6891-1 python3.5, python3.6, python3.7, python3.8, python3.9, python3.10, python3.11, python3.12 vulnerabilities Ubuntu Security Notices (USN) · Oct 8, 2026
- WID-SEC-2024-0794 Dell ECS: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 11, 2026
- RHSA-2023:7024 Red Hat Security Advisory: python3.11 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2023:6494 Red Hat Security Advisory: python3.11 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- SUSE-SU-2023:3943-1 Security update for python311 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:3939-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13261-1 python311-3.11.5-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-0119 Oracle MySQL: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 21, 2024
- NCSC-2024-0305 Kwetsbaarheden verholpen in Oracle Siebel CRM NCSC-NL (Netherlands) · Jul 17, 2024
- WID-SEC-2024-1653 Oracle Siebel CRM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 16, 2024
- WID-SEC-2023-2256 Python: Schwachstelle ermöglicht nicht spezifizierten Angriff BSI CERT-Bund (WID) · Jul 11, 2024
- ELSA-2023-7024 Moderate: python3.11 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Nov 17, 2023
- ELSA-2023-6494 Moderate: python3.11 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Nov 11, 2023
- ALAS2023-2023-317 Important: python3.11 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Sep 7, 2023
References
- https://github.com/python/cpython/issues/106242
- https://github.com/python/cpython/pull/107983
- https://github.com/python/cpython/pull/107981
- https://github.com/python/cpython/pull/107982
- https://mail.python.org/archives/list/security-announce%40python.org/thread/D6CDW3ZZC5D444YGL3VQUY6D4ECMCQLD/
- https://security.netapp.com/advisory/ntap-20231006-0015/