cve.bz

CVE-2023-41105 Untrusted Search Path

7.5 highEPSS 2.5%Fix available

High (7.5). EPSS 2.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
2.5% (unchanged from 2.6% a week ago; 2.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-10-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-426 Untrusted Search Path
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-41105 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-41105?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-41105?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-41105 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pythonfrom 3.11.0 through 3.11.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python3.113.11.2-6+deb12u2DEBIAN-CVE-2023-41105
Ubuntu20.04:LTSpython3.83.8.10-0ubuntu1~20.04.10USN-6891-1
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.4USN-6891-1
UbuntuPro:14.04:LTSpython3.53.5.2-2ubuntu0~16.04.4~14.04.1+esm1USN-6891-1
UbuntuPro:16.04:LTSpython3.53.5.2-2ubuntu0~16.04.13+esm13USN-6891-1
UbuntuPro:18.04:LTSpython3.63.6.9-1~18.04ubuntu1.13+esm2USN-6891-1
UbuntuPro:18.04:LTSpython3.73.7.5-2ubuntu1~18.04.2+esm3USN-6891-1
UbuntuPro:18.04:LTSpython3.83.8.0-3ubuntu1~18.04.2+esm2USN-6891-1
UbuntuPro:20.04:LTSpython3.93.9.5-3ubuntu0~20.04.1+esm2USN-6891-1
UbuntuPro:22.04:LTSpython3.113.11.0~rc1-1~22.04.1~esm1UBUNTU-CVE-2023-41105 USN-6891-1
Red Hatenterprise_linux:8::appstreampython3.11, python3.11-libs, python3.11-devel and 4 more0:3.11.5-1.el8_9RHSA-2023:7024
Red Hatenterprise_linux:8::crbpython3.11, python3.11-idle, python3.11-test and 4 more0:3.11.5-1.el8_9RHSA-2023:7024
Red Hatenterprise_linux:9::appstreampython3.11, python3.11-libs, python3.11-devel and 3 more0:3.11.5-1.el9_3RHSA-2023:6494
Red Hatenterprise_linux:9::crbpython3.11, python3.11-idle, python3.11-test and 4 more0:3.11.5-1.el9_3RHSA-2023:6494
SUSELinux Enterprise Module for Python 3 15 SP4, Linux Enterprise Module for Python 3 15 SP5python3113.11.5-150400.9.20.1SUSE-SU-2023:3943-1
SUSELinux Enterprise Module for Python 3 15 SP4, Linux Enterprise Module for Python 3 15 SP5python311-core, python311-documentation3.11.5-150400.9.20.2SUSE-SU-2023:3943-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 1 morepython3, python3-base3.4.10-25.116.1SUSE-SU-2023:3939-1
openSUSELeap 15.4, Leap 15.5python3113.11.5-150400.9.20.1SUSE-SU-2023:3943-1
openSUSELeap 15.4, Leap 15.5python311-core, python311-documentation3.11.5-150400.9.20.2SUSE-SU-2023:3943-1
openSUSETumbleweedpython3113.11.5-2.1openSUSE-SU-2024:13261-1
AlmaLinux8python3.11, python3.11-idle, python3.11-libs and 5 more3.11.5-1.el8_9ALSA-2023:7024
AlmaLinux9python3.11, python3.11-idle, python3.11-libs and 4 more3.11.5-1.el9_3ALSA-2023:6494
Alpaquita23, streampython33.11.5-r0BELL-CVE-2023-41105
BellSoft Hardened Containers23, streampython33.11.5-r0BELL-CVE-2023-41105

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Python versions prior to 3.11.0 are not affected by this flaw.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python3.11-0:3.11.5-1.el8_9Fixed 2023-11-14RHSA-2023:7024
Red Hat Enterprise Linux 9python3.11-0:3.11.5-1.el9_3Fixed 2023-11-07RHSA-2023:6494
Red Hat Enterprise Linux 6pythonNot affected
Red Hat Enterprise Linux 7pythonNot affected
Red Hat Enterprise Linux 7python3Not affected
Red Hat Enterprise Linux 8python27:2.7/python2Not affected
Red Hat Enterprise Linux 8python3Not affected
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Enterprise Linux 8python39:3.9/python39Not affected
Red Hat Enterprise Linux 9python3.9Not affected
Red Hat Software Collectionsrh-python38-pythonNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-41105.

Attack patterns (CAPEC)

  • CAPEC-38 Leveraging/Manipulating Configuration File Search Paths Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON