ubuntu-cve-2026-2297
Vulnerability from osv_ubuntu
Published
2026-03-04 23:16
Modified
2026-07-06 14:08
Summary
Details
The import hook in CPython that handles legacy *.pyc files (SourcelessFileLoader) is incorrectly handled in FileLoader (a base class) and so does not use io.open_code() to read the .pyc files. sys.audit handlers for this audit event therefore do not fire.
Severity
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "idle-python3.8",
"binary_version": "3.8.0-3ubuntu1~18.04.2+esm10"
},
{
"binary_name": "libpython3.8",
"binary_version": "3.8.0-3ubuntu1~18.04.2+esm10"
},
{
"binary_name": "libpython3.8-minimal",
"binary_version": "3.8.0-3ubuntu1~18.04.2+esm10"
},
{
"binary_name": "libpython3.8-stdlib",
"binary_version": "3.8.0-3ubuntu1~18.04.2+esm10"
},
{
"binary_name": "libpython3.8-testsuite",
"binary_version": "3.8.0-3ubuntu1~18.04.2+esm10"
},
{
"binary_name": "python3.8",
"binary_version": "3.8.0-3ubuntu1~18.04.2+esm10"
},
{
"binary_name": "python3.8-examples",
"binary_version": "3.8.0-3ubuntu1~18.04.2+esm10"
},
{
"binary_name": "python3.8-minimal",
"binary_version": "3.8.0-3ubuntu1~18.04.2+esm10"
},
{
"binary_name": "python3.8-venv",
"binary_version": "3.8.0-3ubuntu1~18.04.2+esm10"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "python3.8",
"purl": "pkg:deb/ubuntu/python3.8@3.8.0-3ubuntu1~18.04.2+esm10?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.8.0-3~18.04",
"3.8.0-3~18.04.1",
"3.8.0-3ubuntu1~18.04.2",
"3.8.0-3ubuntu1~18.04.2+esm1",
"3.8.0-3ubuntu1~18.04.2+esm2",
"3.8.0-3ubuntu1~18.04.2+esm3",
"3.8.0-3ubuntu1~18.04.2+esm4",
"3.8.0-3ubuntu1~18.04.2+esm5",
"3.8.0-3ubuntu1~18.04.2+esm6",
"3.8.0-3ubuntu1~18.04.2+esm7",
"3.8.0-3ubuntu1~18.04.2+esm8",
"3.8.0-3ubuntu1~18.04.2+esm9",
"3.8.0-3ubuntu1~18.04.2+esm10"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "idle-python3.8",
"binary_version": "3.8.10-0ubuntu1~20.04.18+esm6"
},
{
"binary_name": "libpython3.8",
"binary_version": "3.8.10-0ubuntu1~20.04.18+esm6"
},
{
"binary_name": "libpython3.8-minimal",
"binary_version": "3.8.10-0ubuntu1~20.04.18+esm6"
},
{
"binary_name": "libpython3.8-stdlib",
"binary_version": "3.8.10-0ubuntu1~20.04.18+esm6"
},
{
"binary_name": "libpython3.8-testsuite",
"binary_version": "3.8.10-0ubuntu1~20.04.18+esm6"
},
{
"binary_name": "python3.8",
"binary_version": "3.8.10-0ubuntu1~20.04.18+esm6"
},
{
"binary_name": "python3.8-examples",
"binary_version": "3.8.10-0ubuntu1~20.04.18+esm6"
},
{
"binary_name": "python3.8-full",
"binary_version": "3.8.10-0ubuntu1~20.04.18+esm6"
},
{
"binary_name": "python3.8-minimal",
"binary_version": "3.8.10-0ubuntu1~20.04.18+esm6"
},
{
"binary_name": "python3.8-venv",
"binary_version": "3.8.10-0ubuntu1~20.04.18+esm6"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "python3.8",
"purl": "pkg:deb/ubuntu/python3.8@3.8.10-0ubuntu1~20.04.18+esm6?arch=source\u0026distro=esm-infra/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.8.0-1",
"3.8.0-2",
"3.8.0-3",
"3.8.0-4",
"3.8.0-5",
"3.8.1-2ubuntu3",
"3.8.2~rc1-1ubuntu1",
"3.8.2-1",
"3.8.2-1ubuntu1",
"3.8.2-1ubuntu1.1",
"3.8.2-1ubuntu1.2",
"3.8.5-1~20.04",
"3.8.5-1~20.04.2",
"3.8.5-1~20.04.3",
"3.8.10-0ubuntu1~20.04",
"3.8.10-0ubuntu1~20.04.1",
"3.8.10-0ubuntu1~20.04.2",
"3.8.10-0ubuntu1~20.04.4",
"3.8.10-0ubuntu1~20.04.5",
"3.8.10-0ubuntu1~20.04.6",
"3.8.10-0ubuntu1~20.04.7",
"3.8.10-0ubuntu1~20.04.8",
"3.8.10-0ubuntu1~20.04.9",
"3.8.10-0ubuntu1~20.04.10",
"3.8.10-0ubuntu1~20.04.11",
"3.8.10-0ubuntu1~20.04.12",
"3.8.10-0ubuntu1~20.04.13",
"3.8.10-0ubuntu1~20.04.14",
"3.8.10-0ubuntu1~20.04.15",
"3.8.10-0ubuntu1~20.04.16",
"3.8.10-0ubuntu1~20.04.17",
"3.8.10-0ubuntu1~20.04.18",
"3.8.10-0ubuntu1~20.04.18+esm1",
"3.8.10-0ubuntu1~20.04.18+esm2",
"3.8.10-0ubuntu1~20.04.18+esm3",
"3.8.10-0ubuntu1~20.04.18+esm4",
"3.8.10-0ubuntu1~20.04.18+esm5",
"3.8.10-0ubuntu1~20.04.18+esm6"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "idle-python3.9",
"binary_version": "3.9.5-3ubuntu0~20.04.1+esm10"
},
{
"binary_name": "libpython3.9",
"binary_version": "3.9.5-3ubuntu0~20.04.1+esm10"
},
{
"binary_name": "libpython3.9-minimal",
"binary_version": "3.9.5-3ubuntu0~20.04.1+esm10"
},
{
"binary_name": "libpython3.9-stdlib",
"binary_version": "3.9.5-3ubuntu0~20.04.1+esm10"
},
{
"binary_name": "libpython3.9-testsuite",
"binary_version": "3.9.5-3ubuntu0~20.04.1+esm10"
},
{
"binary_name": "python3.9",
"binary_version": "3.9.5-3ubuntu0~20.04.1+esm10"
},
{
"binary_name": "python3.9-examples",
"binary_version": "3.9.5-3ubuntu0~20.04.1+esm10"
},
{
"binary_name": "python3.9-full",
"binary_version": "3.9.5-3ubuntu0~20.04.1+esm10"
},
{
"binary_name": "python3.9-minimal",
"binary_version": "3.9.5-3ubuntu0~20.04.1+esm10"
},
{
"binary_name": "python3.9-venv",
"binary_version": "3.9.5-3ubuntu0~20.04.1+esm10"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "python3.9",
"purl": "pkg:deb/ubuntu/python3.9@3.9.5-3ubuntu0~20.04.1+esm10?arch=source\u0026distro=esm-apps/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.9.0~rc1-1~20.04",
"3.9.0-5~20.04",
"3.9.5-3~20.04.1",
"3.9.5-3ubuntu0~20.04.1",
"3.9.5-3ubuntu0~20.04.1+esm1",
"3.9.5-3ubuntu0~20.04.1+esm2",
"3.9.5-3ubuntu0~20.04.1+esm3",
"3.9.5-3ubuntu0~20.04.1+esm4",
"3.9.5-3ubuntu0~20.04.1+esm5",
"3.9.5-3ubuntu0~20.04.1+esm6",
"3.9.5-3ubuntu0~20.04.1+esm7",
"3.9.5-3ubuntu0~20.04.1+esm8",
"3.9.5-3ubuntu0~20.04.1+esm9",
"3.9.5-3ubuntu0~20.04.1+esm10"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "idle-python3.10",
"binary_version": "3.10.12-1~22.04.16"
},
{
"binary_name": "libpython3.10",
"binary_version": "3.10.12-1~22.04.16"
},
{
"binary_name": "libpython3.10-minimal",
"binary_version": "3.10.12-1~22.04.16"
},
{
"binary_name": "libpython3.10-stdlib",
"binary_version": "3.10.12-1~22.04.16"
},
{
"binary_name": "libpython3.10-testsuite",
"binary_version": "3.10.12-1~22.04.16"
},
{
"binary_name": "python3.10",
"binary_version": "3.10.12-1~22.04.16"
},
{
"binary_name": "python3.10-examples",
"binary_version": "3.10.12-1~22.04.16"
},
{
"binary_name": "python3.10-full",
"binary_version": "3.10.12-1~22.04.16"
},
{
"binary_name": "python3.10-minimal",
"binary_version": "3.10.12-1~22.04.16"
},
{
"binary_name": "python3.10-nopie",
"binary_version": "3.10.12-1~22.04.16"
},
{
"binary_name": "python3.10-venv",
"binary_version": "3.10.12-1~22.04.16"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "python3.10",
"purl": "pkg:deb/ubuntu/python3.10@3.10.12-1~22.04.16?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.10.12-1~22.04.16"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.10.0-2",
"3.10.0-3",
"3.10.0-4",
"3.10.0-5",
"3.10.0-5build1",
"3.10.1-1",
"3.10.1-2",
"3.10.2-1",
"3.10.2-5",
"3.10.2-7",
"3.10.3-1",
"3.10.4-3",
"3.10.4-3ubuntu0.1",
"3.10.6-1~22.04",
"3.10.6-1~22.04.1",
"3.10.6-1~22.04.2",
"3.10.6-1~22.04.2ubuntu1",
"3.10.6-1~22.04.2ubuntu1.1",
"3.10.12-1~22.04.2",
"3.10.12-1~22.04.3",
"3.10.12-1~22.04.4",
"3.10.12-1~22.04.5",
"3.10.12-1~22.04.6",
"3.10.12-1~22.04.7",
"3.10.12-1~22.04.8",
"3.10.12-1~22.04.9",
"3.10.12-1~22.04.10",
"3.10.12-1~22.04.11",
"3.10.12-1~22.04.12",
"3.10.12-1~22.04.13",
"3.10.12-1~22.04.14",
"3.10.12-1~22.04.15"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "idle-python3.11",
"binary_version": "3.11.0~rc1-1~22.04.1~esm9"
},
{
"binary_name": "libpython3.11",
"binary_version": "3.11.0~rc1-1~22.04.1~esm9"
},
{
"binary_name": "libpython3.11-minimal",
"binary_version": "3.11.0~rc1-1~22.04.1~esm9"
},
{
"binary_name": "libpython3.11-stdlib",
"binary_version": "3.11.0~rc1-1~22.04.1~esm9"
},
{
"binary_name": "libpython3.11-testsuite",
"binary_version": "3.11.0~rc1-1~22.04.1~esm9"
},
{
"binary_name": "python3.11",
"binary_version": "3.11.0~rc1-1~22.04.1~esm9"
},
{
"binary_name": "python3.11-examples",
"binary_version": "3.11.0~rc1-1~22.04.1~esm9"
},
{
"binary_name": "python3.11-full",
"binary_version": "3.11.0~rc1-1~22.04.1~esm9"
},
{
"binary_name": "python3.11-minimal",
"binary_version": "3.11.0~rc1-1~22.04.1~esm9"
},
{
"binary_name": "python3.11-nopie",
"binary_version": "3.11.0~rc1-1~22.04.1~esm9"
},
{
"binary_name": "python3.11-venv",
"binary_version": "3.11.0~rc1-1~22.04.1~esm9"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:22.04:LTS",
"name": "python3.11",
"purl": "pkg:deb/ubuntu/python3.11@3.11.0~rc1-1~22.04.1~esm9?arch=source\u0026distro=esm-apps/jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.11.0~rc1-1~22.04",
"3.11.0~rc1-1~22.04.1~esm1",
"3.11.0~rc1-1~22.04.1~esm2",
"3.11.0~rc1-1~22.04.1~esm3",
"3.11.0~rc1-1~22.04.1~esm4",
"3.11.0~rc1-1~22.04.1~esm5",
"3.11.0~rc1-1~22.04.1~esm6",
"3.11.0~rc1-1~22.04.1~esm7",
"3.11.0~rc1-1~22.04.1~esm8",
"3.11.0~rc1-1~22.04.1~esm9"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "idle-python3.12",
"binary_version": "3.12.3-1ubuntu0.15"
},
{
"binary_name": "libpython3.12-minimal",
"binary_version": "3.12.3-1ubuntu0.15"
},
{
"binary_name": "libpython3.12-stdlib",
"binary_version": "3.12.3-1ubuntu0.15"
},
{
"binary_name": "libpython3.12-testsuite",
"binary_version": "3.12.3-1ubuntu0.15"
},
{
"binary_name": "libpython3.12t64",
"binary_version": "3.12.3-1ubuntu0.15"
},
{
"binary_name": "python3.12",
"binary_version": "3.12.3-1ubuntu0.15"
},
{
"binary_name": "python3.12-examples",
"binary_version": "3.12.3-1ubuntu0.15"
},
{
"binary_name": "python3.12-full",
"binary_version": "3.12.3-1ubuntu0.15"
},
{
"binary_name": "python3.12-minimal",
"binary_version": "3.12.3-1ubuntu0.15"
},
{
"binary_name": "python3.12-nopie",
"binary_version": "3.12.3-1ubuntu0.15"
},
{
"binary_name": "python3.12-venv",
"binary_version": "3.12.3-1ubuntu0.15"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "python3.12",
"purl": "pkg:deb/ubuntu/python3.12@3.12.3-1ubuntu0.15?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.12.3-1ubuntu0.15"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.12.0-1",
"3.12.0-5",
"3.12.0-6",
"3.12.0-7",
"3.12.1-2",
"3.12.2-1",
"3.12.2-4build3",
"3.12.2-4build4",
"3.12.2-5ubuntu3",
"3.12.3-1",
"3.12.3-1ubuntu0.1",
"3.12.3-1ubuntu0.2",
"3.12.3-1ubuntu0.3",
"3.12.3-1ubuntu0.4",
"3.12.3-1ubuntu0.5",
"3.12.3-1ubuntu0.6",
"3.12.3-1ubuntu0.7",
"3.12.3-1ubuntu0.8",
"3.12.3-1ubuntu0.9",
"3.12.3-1ubuntu0.10",
"3.12.3-1ubuntu0.11",
"3.12.3-1ubuntu0.12",
"3.12.3-1ubuntu0.13"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "idle-python3.13",
"binary_version": "3.13.7-1ubuntu0.4"
},
{
"binary_name": "libpython3.13",
"binary_version": "3.13.7-1ubuntu0.4"
},
{
"binary_name": "libpython3.13-minimal",
"binary_version": "3.13.7-1ubuntu0.4"
},
{
"binary_name": "libpython3.13-stdlib",
"binary_version": "3.13.7-1ubuntu0.4"
},
{
"binary_name": "libpython3.13-testsuite",
"binary_version": "3.13.7-1ubuntu0.4"
},
{
"binary_name": "python3.13",
"binary_version": "3.13.7-1ubuntu0.4"
},
{
"binary_name": "python3.13-examples",
"binary_version": "3.13.7-1ubuntu0.4"
},
{
"binary_name": "python3.13-full",
"binary_version": "3.13.7-1ubuntu0.4"
},
{
"binary_name": "python3.13-gdbm",
"binary_version": "3.13.7-1ubuntu0.4"
},
{
"binary_name": "python3.13-minimal",
"binary_version": "3.13.7-1ubuntu0.4"
},
{
"binary_name": "python3.13-nopie",
"binary_version": "3.13.7-1ubuntu0.4"
},
{
"binary_name": "python3.13-tk",
"binary_version": "3.13.7-1ubuntu0.4"
},
{
"binary_name": "python3.13-venv",
"binary_version": "3.13.7-1ubuntu0.4"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "python3.13",
"purl": "pkg:deb/ubuntu/python3.13@3.13.7-1ubuntu0.4?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.13.3-1",
"3.13.3-2",
"3.13.3-4",
"3.13.4-1",
"3.13.5-1",
"3.13.5-2",
"3.13.6-1",
"3.13.7-1",
"3.13.7-1ubuntu0.1",
"3.13.7-1ubuntu0.2",
"3.13.7-1ubuntu0.3",
"3.13.7-1ubuntu0.4"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "idle-python3.14",
"binary_version": "3.14.0-1ubuntu0.3"
},
{
"binary_name": "libpython3.14",
"binary_version": "3.14.0-1ubuntu0.3"
},
{
"binary_name": "libpython3.14-minimal",
"binary_version": "3.14.0-1ubuntu0.3"
},
{
"binary_name": "libpython3.14-stdlib",
"binary_version": "3.14.0-1ubuntu0.3"
},
{
"binary_name": "libpython3.14-testsuite",
"binary_version": "3.14.0-1ubuntu0.3"
},
{
"binary_name": "python3.14",
"binary_version": "3.14.0-1ubuntu0.3"
},
{
"binary_name": "python3.14-examples",
"binary_version": "3.14.0-1ubuntu0.3"
},
{
"binary_name": "python3.14-full",
"binary_version": "3.14.0-1ubuntu0.3"
},
{
"binary_name": "python3.14-gdbm",
"binary_version": "3.14.0-1ubuntu0.3"
},
{
"binary_name": "python3.14-minimal",
"binary_version": "3.14.0-1ubuntu0.3"
},
{
"binary_name": "python3.14-nopie",
"binary_version": "3.14.0-1ubuntu0.3"
},
{
"binary_name": "python3.14-tk",
"binary_version": "3.14.0-1ubuntu0.3"
},
{
"binary_name": "python3.14-venv",
"binary_version": "3.14.0-1ubuntu0.3"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "python3.14",
"purl": "pkg:deb/ubuntu/python3.14@3.14.0-1ubuntu0.3?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.14.0~a7-0ubuntu1",
"3.14.0~b1-1",
"3.14.0~b3-1",
"3.14.0~rc1-1",
"3.14.0~rc2-1",
"3.14.0~rc3-1",
"3.14.0-1",
"3.14.0-1ubuntu0.1",
"3.14.0-1ubuntu0.2",
"3.14.0-1ubuntu0.3"
]
}
],
"aliases": [],
"details": "The import hook in CPython that handles legacy *.pyc files (SourcelessFileLoader) is incorrectly handled in FileLoader (a base class) and so does not use io.open_code() to read the .pyc files. sys.audit handlers for this audit event therefore do not fire.",
"id": "UBUNTU-CVE-2026-2297",
"modified": "2026-07-06T14:08:35Z",
"published": "2026-03-04T23:16:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-2297"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-2297"
},
{
"type": "REPORT",
"url": "https://github.com/python/cpython/pull/145507"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-8509-1"
}
],
"related": [
"USN-8509-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-2297"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…