ADVISORIES

CVE Program

CNA-CVE-2026-3479

pkgutil.get_data() does not enforce documented restrictions

Details

DISPUTED: The project has clarified that the documentation was incorrect, and that pkgutil.get_data() has the same security model as open(). The documentation has been updated to clarify this point. There is no vulnerability in the function if following the intended security model.

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

Affected packages

EcosystemPackageAffected versions
Pythonpython
All versions before 3.13.13 (fixed in 3.13.13)
From 3.14.0 before 3.14.4 (fixed in 3.14.4)
From 3.15.0a1 before 3.15.0a8 (fixed in 3.15.0a8)

References