Skip to content
OpenAdvisories
Unscored CVE-2023-41105 EUVD-2023-45624GHSA-65fx-pmw6-rcfm

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 tr…

Published Aug 23, 2023 · Updated Oct 3, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
Debian 12 python3.11 3.11.2-6+deb12u2 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 python3 +1 3.4.10-25.116.1 SUSE-SU-2023:3939-1
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3.11 +6 3.11.2-2.amzn2023.0.10 ALAS2023-2023-317

Oracle Linux

ReleasePackageFixed inAdvisory
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

References