2026-03-18 18:13CVE-2026-3479PSF
PUBLISHED5.2

pkgutil.get_data() does not enforce documented restrictions

pkgutil.get_data() did not validate the resource argument as documented, allowing path traversals.

Affected products

Python Software Foundation

CPython

< 3.15.0 - AFFECTED

References

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-3479
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-3479",
    "assignerOrgId": "28c92f92-d60d-412d-b760-e73465c3df22",
    "assignerShortName": "PSF",
    "dateUpdated": "2026-03-18T18:50:41.609Z",
    "dateReserved": "2026-03-03T14:18:35.394Z",
    "datePublished": "2026-03-18T18:13:42.288Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "28c92f92-d60d-412d-b760-e73465c3df22",
        "shortName": "PSF",
        "dateUpdated": "2026-03-18T18:13:42.288Z"
      },
      "title": "pkgutil.get_data() does not enforce documented restrictions",
      "descriptions": [
        {
          "lang": "en",
          "value": "pkgutil.get_data() did not validate the resource argument as documented, allowing path traversals.",
          "supportingMedia": [
            {
              "type": "text/html",
              "base64": false,
              "value": "pkgutil.get_data() did not validate the resource argument as documented, allowing path traversals."
            }
          ]
        }
      ],
      "affected": [
        {
          "vendor": "Python Software Foundation",
          "product": "CPython",
          "modules": [
            "pkgutil"
          ],
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0",
              "status": "affected",
              "versionType": "python",
              "lessThan": "3.15.0"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://github.com/python/cpython/pull/146122",
          "tags": [
            "patch"
          ]
        },
        {
          "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/WYLLVQOOCKGK73JM7Z7ZSNOJC4N7BAWY/",
          "tags": [
            "vendor-advisory"
          ]
        },
        {
          "url": "https://github.com/python/cpython/issues/146121",
          "tags": [
            "issue-tracking"
          ]
        }
      ],
      "metrics": [
        {
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ]
    },
    "adp": [
      {
        "providerMetadata": {
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP",
          "dateUpdated": "2026-03-18T18:50:41.609Z"
        },
        "title": "CISA ADP Vulnrichment",
        "problemTypes": [
          {
            "descriptions": [
              {
                "lang": "en",
                "description": "CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
                "cweId": "CWE-22",
                "type": "CWE"
              }
            ]
          }
        ],
        "metrics": [
          {}
        ]
      }
    ]
  }
}