CVE-2026-12003

MEDIUMPre-NVD 5.35.3—
EchelonGraph scoreMEDIUM confidence

This medium-severity CVE scores 5.3 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.1%, top 96% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: epss, secondary
5.3EG
EchelonGraph verdictMonitorLow exploitation likelihood right now — keep watching.
  • Lower severity and no public exploit yet
CISA-KEV: Not listedEPSS PROB: 0.1%CVSS: 5.3Exploit: None knownExposed services: Not assessed

No fix is confirmed yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for the fix.

To allow builds of Python to be run from an in-tree layout (rather than an installed file layout), the VPATH variable is defined at build time and used to locate certain landmarks - specifically, Modules/setup.local. When this landmark is found relative to VPATH relative to the executable, Python assumes it is running in a source tree and generates a different default sys.path. This code remains in release builds, so that release-ready builds can be built in-tree.

On Windows, since builds are written to 'PCbuild/', the value of VPATH is set to '..\..', which results in a landmark of '..\..\Modules\setup.local'. This path is outside the install directory of Python, and may have different permissions, potentially allowing a low-privilege user to create the landmark and an alternative Lib folder that will be discovered by an otherwise restricted install.

Such a setup occurs with the legacy default install location for all users (in the now superseded EXE installer), due to how Windows allows all users to create folders in the root directory of their OS drive.

Our recommended mitigation on Windows is to migrate away from the legacy installer and use the new Python install manager to install for the current user. Installs where the directory two levels above the Python installation directory have equivalent permissions are unaffected (in general, a per-user install cannot be modified at all by other users, removing any escalation of privilege risk, and could be directly modified by a privileged user, making the potential tampering irrelevant). Alternative mitigations might include preemptively creating and restricting access to a Modules directory. Be aware that only 3.13 and 3.14 will receive updated legacy installers - earlier fixes are only provided as sources.

Platforms other than Windows allow VPATH to be overridden, but as they don't usually use a separated directory in the build for binaries, are unlikely to have a landmark reference outside of the install directory.

The landmark detection involving VPATH is a fallback for when a more specific landmark - .\pybuilddir.txt - is absent, and was included for compatibility. Future releases of Python will no longer include the fallback, and so builds will need to generate or preserve the pybuilddir.txt file in order to work in-tree. This landmark file has been generated on Windows since 3.11, and on other platforms for longer.

CVSS v3
5.3
EG Score
5.3MEDIUMmedium confidence
EG Risk
24
EG Risk 24/100

EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).

How it’s computed
Severity53% × 45%
Exploitation0% × 40%
Automatability0% × 15%
EPSS PROB
0.1%
EPSS %ILE
3rd
KEV
Not listed

Published

June 16, 2026

Last Modified

August 13, 2026

Advisory Details (2)

Auto-updated Jun 16, 2026
No fix on record yet. Sources: github_pr.
github_pr

gh-151544: Fixes CVE-2026-12003 by removing the fallback to %VPATH%/Modules/Setup.local for discovering sources in getpath.py

Upstream fix in progress (PR #151545 · python/cpython, state=open)

https://github.com/python/cpython/pull/151545
generic

[CVE-2026-12003] In-tree search paths can be enabled without modifying install directory · Issue #151544 · python/cpython · GitHub

https://github.com/python/cpython/issues/151544

Affected Packages

(5 across 4 ecosystems)
Debian:14(2)
PackageVulnerable rangeFix by version rangeDependents
python3.133.13.11-1 ... 3.13.9-1 (9 versions)
  • every version on: no fix on record
—
python3.143.14.0-1 ... 3.14.7-5 (29 versions)
  • every version on: no fix on record
—
Debian:11(1)
PackageVulnerable rangeFix by version rangeDependents
python3.93.9.10-1 ... 3.9.9-4 (29 versions)
  • every version on: no fix on record
—
Debian:12(1)
PackageVulnerable rangeFix by version rangeDependents
python3.113.11.2-6 ... 3.11.9-1 (28 versions)
  • every version on: no fix on record
—
Debian:13(1)
PackageVulnerable rangeFix by version rangeDependents
python3.133.13.11-1 ... 3.13.9-1 (14 versions)
  • every version on: no fix on record
—

Weakness Classification(1)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Data Freshness Timeline

(refreshed 6× in last 7d / 24× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

Showing the most recent 100 of 219 total refreshes for this CVE.

  1. 2026-10-10 19:59 UTCEPSS rescore
  2. 2026-10-09 20:06 UTCEPSS rescore
  3. 2026-10-07 23:47 UTCEPSS rescore
  4. 2026-10-06 15:17 UTCEPSS rescore
  5. 2026-10-05 17:42 UTCEPSS rescore
  6. 2026-10-04 23:21 UTCEPSS rescore
  7. 2026-10-03 14:25 UTCEPSS rescore
  8. 2026-10-03 07:09 UTCOSV refresh
  9. 2026-10-01 19:49 UTCEPSS rescore
  10. 2026-09-30 15:02 UTCEPSS rescore
  11. 2026-09-29 15:20 UTCEPSS rescore
  12. 2026-09-28 13:50 UTCEPSS rescore
  13. 2026-09-26 15:58 UTCEPSS rescore
  14. 2026-09-23 13:47 UTCEPSS rescore
  15. 2026-09-20 20:15 UTCEPSS rescore
  16. 2026-09-18 19:27 UTCEPSS rescore
  17. 2026-09-16 05:14 UTCEPSS rescore
  18. 2026-09-14 03:31 UTCEG score recompute
  19. 2026-09-14 03:31 UTCVendor advisory
  20. 2026-09-14 03:31 UTCGHSA enrichment
  21. 2026-09-13 16:46 UTCEPSS rescore
  22. 2026-09-12 15:00 UTCEPSS rescore
  23. 2026-09-11 14:52 UTCEPSS rescore
  24. 2026-09-11 09:36 UTCEPSS rescore
  25. 2026-09-10 09:34 UTCEPSS rescore
Show 75 more
  1. 2026-09-08 22:00 UTCEPSS rescore
  2. 2026-09-07 16:01 UTCEPSS rescore
  3. 2026-09-06 13:47 UTCEPSS rescore
  4. 2026-09-04 05:06 UTCEPSS rescore
  5. 2026-09-02 14:11 UTCEPSS rescore
  6. 2026-09-01 13:53 UTCEPSS rescore
  7. 2026-09-01 04:39 UTCEPSS rescore
  8. 2026-08-30 22:48 UTCEG score recompute
  9. 2026-08-30 22:48 UTCVendor advisory
  10. 2026-08-30 22:48 UTCGHSA enrichment
  11. 2026-08-30 19:17 UTCEPSS rescore
  12. 2026-08-30 01:21 UTCEPSS rescore
  13. 2026-08-28 21:40 UTCEPSS rescore
  14. 2026-08-27 14:24 UTCEPSS rescore
  15. 2026-08-25 13:48 UTCEPSS rescore
  16. 2026-08-24 23:24 UTCEG score recompute
  17. 2026-08-24 23:24 UTCVendor advisory
  18. 2026-08-24 23:24 UTCGHSA enrichment
  19. 2026-08-23 09:26 UTCEG score recompute
  20. 2026-08-23 09:26 UTCVendor advisory
  21. 2026-08-23 09:26 UTCGHSA enrichment
  22. 2026-08-23 00:19 UTCEPSS rescore
  23. 2026-08-21 23:48 UTCEPSS rescore
  24. 2026-08-21 09:46 UTCEG score recompute
  25. 2026-08-21 09:46 UTCVendor advisory
  26. 2026-08-21 09:46 UTCGHSA enrichment
  27. 2026-08-20 22:55 UTCEPSS rescore
  28. 2026-08-20 11:21 UTCEG score recompute
  29. 2026-08-20 11:21 UTCVendor advisory
  30. 2026-08-20 11:21 UTCGHSA enrichment
  31. 2026-08-19 17:03 UTCEPSS rescore
  32. 2026-08-19 13:07 UTCEG score recompute
  33. 2026-08-19 13:07 UTCVendor advisory
  34. 2026-08-19 13:07 UTCGHSA enrichment
  35. 2026-08-18 13:48 UTCEPSS rescore
  36. 2026-08-16 22:00 UTCEG score recompute
  37. 2026-08-16 22:00 UTCVendor advisory
  38. 2026-08-16 22:00 UTCGHSA enrichment
  39. 2026-08-16 14:56 UTCEPSS rescore
  40. 2026-08-16 02:14 UTCEPSS rescore
  41. 2026-08-15 22:28 UTCEG score recompute
  42. 2026-08-15 22:28 UTCVendor advisory
  43. 2026-08-15 22:28 UTCGHSA enrichment
  44. 2026-08-15 01:30 UTCEPSS rescore
  45. 2026-08-14 22:23 UTCVendor advisory
  46. 2026-08-14 22:23 UTCGHSA enrichment
  47. 2026-08-14 00:09 UTCEG score recompute
  48. 2026-08-14 00:09 UTCGHSA enrichment
  49. 2026-08-13 22:00 UTCEPSS rescore
  50. 2026-08-13 01:23 UTCEG score recompute
  51. 2026-08-13 01:23 UTCGHSA enrichment
  52. 2026-08-13 00:41 UTCEG score recompute
  53. 2026-08-13 00:41 UTCGHSA enrichment
  54. 2026-08-12 21:49 UTCEG score recompute
  55. 2026-08-12 21:49 UTCGHSA enrichment
  56. 2026-08-12 13:50 UTCEPSS rescore
  57. 2026-08-11 23:35 UTCEG score recompute
  58. 2026-08-11 23:35 UTCGHSA enrichment
  59. 2026-08-11 13:42 UTCEPSS rescore
  60. 2026-08-11 01:22 UTCEG score recompute
  61. 2026-08-11 01:22 UTCGHSA enrichment
  62. 2026-08-11 00:34 UTCEG score recompute
  63. 2026-08-11 00:34 UTCGHSA enrichment
  64. 2026-08-10 23:59 UTCEPSS rescore
  65. 2026-08-10 19:24 UTCGHSA enrichment
  66. 2026-08-09 18:16 UTCEG score recompute
  67. 2026-08-09 18:16 UTCGHSA enrichment
  68. 2026-08-09 13:46 UTCEPSS rescore
  69. 2026-08-08 20:03 UTCEG score recompute
  70. 2026-08-08 20:03 UTCGHSA enrichment
  71. 2026-08-08 16:37 UTCEPSS rescore
  72. 2026-08-07 21:49 UTCEG score recompute
  73. 2026-08-07 21:49 UTCGHSA enrichment
  74. 2026-08-06 23:36 UTCEG score recompute
  75. 2026-08-06 23:36 UTCGHSA enrichment

Frequently asked(5)

What is CVE-2026-12003?
CVE-2026-12003 is a medium vulnerability published on June 16, 2026. To allow builds of Python to be run from an in-tree layout (rather than an installed file layout), the VPATH variable is defined at build time and used to locate certain landmarks - specifically, Modules/setup.local. When this landmark is found relative to VPATH relative to the executable, Python…
When was CVE-2026-12003 disclosed?
CVE-2026-12003 was first published on June 16, 2026, with the most recent update on August 13, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-12003 actively exploited?
CVE-2026-12003 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 0.1% probability of exploitation in the next 30 days (3rd percentile of EPSS-scored CVEs).
What is the CVSS score of CVE-2026-12003?
CVE-2026-12003 has a CVSS base score of 5.3 (a secondary CVSS source that NVD displays; NVD's own analysis pending).
How do I remediate CVE-2026-12003?
No fix for CVE-2026-12003 is confirmed yet. Until one is published, restrict network exposure of the affected system or apply the vendor's mitigation — for example, keep it off the internet or limit it to trusted networks — and watch the vendor's advisory for the fix. The vendor advisories EchelonGraph has for CVE-2026-12003 are linked in the Vendor Advisories panel on this page.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-12003

Explore →

Is Your Infrastructure Affected by CVE-2026-12003?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.