CVE-2023-41105

python: file path truncation at \0 characters

Published Aug 23, 2023 CVSS 3.1 · 7.5 High EPSS 2.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2023-45624 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.
Ubuntu USN Ubuntu USN USN-6547-1 Python vulnerability
Ubuntu USN Ubuntu USN USN-6891-1 Python vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:python:python:-:*:*:*:*:*:*:*
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 3, 2024, 2:04 PM
Reserved
Aug 23, 2023, 12:00 AM
Status
Modified
Published
Aug 23, 2023, 7:15 AM
Modified
Jun 17, 2026, 6:20 AM
Severity
Moderate
Public date
Aug 23, 2023, 12:00 AM