Skip to content
Heist/ feed
Back to feed
Unrated

Security advisory

Type: advisorySources: OSVCVE: CVE-2023-41105

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-41105
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 01:30 UTC · Revision 1

Source evidence

CVE-2023-41105

core-osv · Original source

Published 23 Aug 2023, 00:00 UTC

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.

osv:CVE-2023-41105
Complete source record
{
  "id": "e5d80082351c6fd2092210525ef22ad992e59f084cdb499fa707b06ad0af15eb",
  "url": "https://osv.dev/vulnerability/CVE-2023-41105",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2023-41105",
    "summary": "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.",
    "evidence": "osv:CVE-2023-41105",
    "products": [],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-41105",
      "aliases": [
        "BIT-libpython-2023-41105",
        "BIT-python-2023-41105",
        "BIT-python-min-2023-41105",
        "CVE-2023-41105",
        "PSF-2023-9"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/python/cpython",
              "type": "GIT",
              "events": [
                {
                  "introduced": "deaf509e8fc6e0363bd6f26d52ad42f976ec42f2"
                },
                {
                  "last_affected": "d2340ef25721b6a72d45d4508c672c4be38c67d3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "3.11"
                      },
                      {
                        "last_affected": "3.11.4"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.11.0"
                      },
                      {
                        "last_affected": "3.11.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-41105.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.579847184Z",
      "provider": "osv",
      "references": [
        "https://mail.python.org/archives/list/security-announce%40python.org/thread/D6CDW3ZZC5D444YGL3VQUY6D4ECMCQLD/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/41xxx/CVE-2023-41105.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-41105",
        "https://security.netapp.com/advisory/ntap-20231006-0015/",
        "https://github.com/python/cpython/issues/106242",
        "https://github.com/python/cpython/pull/107981",
        "https://github.com/python/cpython/pull/107982",
        "https://github.com/python/cpython/pull/107983"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/41xxx/CVE-2023-41105.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-41105",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 499448,
  "published_at": "2023-08-23T00:00:00+00:00"
}