CVE-2023-41105: An issue was discovered in Python 3.11 through 3.11.4.
High CVSS 7.5
- CVE id
- CVE-2023-41105
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Python Runtimes and servers |
>= 3.11.0, <= 3.11.4 | after 3.11.4 |
How to fix it
Upgrade Python to a release newer than 3.11.4.
python --version
- Install the patched Python release of your minor line (pyenv, the python image tag, or your OS packages) and recreate virtual environments.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2023-41105 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-41105
- Web: https://github.com/python/cpython/issues/106242
- Web: https://github.com/python/cpython/pull/107981
- Web: https://github.com/python/cpython/pull/107982
- Web: https://github.com/python/cpython/pull/107983
- Web: https://mail.python.org/archives/list/security-announce%40python.org/thread/D6CDW3ZZC5D444YGL3VQUY6D4ECMCQLD/
- Web: https://security.netapp.com/advisory/ntap-20231006-0015/
- Web: https://github.com/python/cpython/issues/106242
- Web: https://github.com/python/cpython/pull/107981
- Web: https://github.com/python/cpython/pull/107982
- Web: https://github.com/python/cpython/pull/107983
- Web: https://mail.python.org/archives/list/security-announce%40python.org/thread/D6CDW3ZZC5D444YGL3VQUY6D4ECMCQLD/
- Web: https://security.netapp.com/advisory/ntap-20231006-0015/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.