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 97% 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
Trending — 3 sources updated this week
5.3
EchelonGraph verdictMonitorLow exploitation likelihood right now — keep watching.
  • Lower severity and no public exploit yet
CISA-KEV: Not listedEPSS: 0%CVSS: 5.3Exploit: NoneExposed: 0

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

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.3(medium)
EPSS
3.4%
KEV
Not listed

Published

June 16, 2026

Last Modified

June 23, 2026

Advisory Details (2)

Auto-updated Jun 16, 2026
No patch confirmed 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

Vendor Advisories for CVE-2026-12003(2)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Weakness Classification(1)

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

Data Freshness Timeline

(refreshed 22× in last 7d / 69× 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.

  1. 2026-07-06 23:13 UTCEG score recompute
  2. 2026-07-06 23:13 UTCGHSA enrichment
  3. 2026-07-06 16:27 UTCEPSS rescore
  4. 2026-07-06 02:23 UTCEPSS rescore
  5. 2026-07-05 10:19 UTCEG score recompute
  6. 2026-07-05 10:19 UTCGHSA enrichment
  7. 2026-07-05 02:30 UTCEPSS rescore
  8. 2026-07-05 02:30 UTCEPSS rescore
  9. 2026-07-04 12:04 UTCEG score recompute
  10. 2026-07-04 12:03 UTCGHSA enrichment
  11. 2026-07-04 06:31 UTCEPSS rescore
  12. 2026-07-03 13:48 UTCEG score recompute
  13. 2026-07-03 13:48 UTCGHSA enrichment
  14. 2026-07-02 13:23 UTCEG score recompute
  15. 2026-07-02 13:23 UTCGHSA enrichment
  16. 2026-07-01 15:06 UTCEPSS rescore
  17. 2026-07-01 15:06 UTCEPSS rescore
  18. 2026-07-01 15:05 UTCEG score recompute
  19. 2026-07-01 15:05 UTCGHSA enrichment
  20. 2026-06-30 23:22 UTCEPSS rescore
  21. 2026-06-30 16:48 UTCEG score recompute
  22. 2026-06-30 16:48 UTCGHSA enrichment
  23. 2026-06-29 18:34 UTCEG score recompute
  24. 2026-06-29 18:34 UTCGHSA enrichment
  25. 2026-06-29 14:06 UTCEPSS rescore
Show 44 more
  1. 2026-06-28 20:20 UTCEG score recompute
  2. 2026-06-28 20:20 UTCGHSA enrichment
  3. 2026-06-28 14:07 UTCEPSS rescore
  4. 2026-06-28 04:56 UTCEPSS rescore
  5. 2026-06-28 04:56 UTCEPSS rescore
  6. 2026-06-27 22:06 UTCEG score recompute
  7. 2026-06-27 22:06 UTCGHSA enrichment
  8. 2026-06-27 03:08 UTCEPSS rescore
  9. 2026-06-26 23:52 UTCEG score recompute
  10. 2026-06-26 23:51 UTCGHSA enrichment
  11. 2026-06-26 01:38 UTCEG score recompute
  12. 2026-06-26 01:38 UTCGHSA enrichment
  13. 2026-06-25 13:49 UTCEPSS rescore
  14. 2026-06-25 03:23 UTCEG score recompute
  15. 2026-06-25 03:23 UTCGHSA enrichment
  16. 2026-06-24 14:05 UTCEPSS rescore
  17. 2026-06-24 05:09 UTCEG score recompute
  18. 2026-06-24 05:08 UTCGHSA enrichment
  19. 2026-06-23 21:32 UTCEPSS rescore
  20. 2026-06-23 06:50 UTCEG score recompute
  21. 2026-06-23 06:50 UTCGHSA enrichment
  22. 2026-06-22 14:25 UTCEPSS rescore
  23. 2026-06-22 14:25 UTCEPSS rescore
  24. 2026-06-22 08:35 UTCEG score recompute
  25. 2026-06-22 08:35 UTCGHSA enrichment
  26. 2026-06-21 14:56 UTCEPSS rescore
  27. 2026-06-21 14:56 UTCEPSS rescore
  28. 2026-06-21 10:18 UTCEG score recompute
  29. 2026-06-21 10:18 UTCGHSA enrichment
  30. 2026-06-21 01:59 UTCEPSS rescore
  31. 2026-06-21 01:59 UTCEPSS rescore
  32. 2026-06-20 12:03 UTCEG score recompute
  33. 2026-06-20 12:03 UTCGHSA enrichment
  34. 2026-06-19 19:25 UTCEPSS rescore
  35. 2026-06-19 13:48 UTCEG score recompute
  36. 2026-06-19 13:47 UTCGHSA enrichment
  37. 2026-06-18 17:52 UTCEPSS rescore
  38. 2026-06-18 15:31 UTCEG score recompute
  39. 2026-06-18 15:31 UTCGHSA enrichment
  40. 2026-06-17 17:53 UTCEPSS rescore
  41. 2026-06-17 16:52 UTCEG score recompute
  42. 2026-06-17 16:51 UTCGHSA enrichment
  43. 2026-06-16 17:49 UTCEG score recompute
  44. 2026-06-16 17:47 UTCNVD updatefirst tracked

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 in the National Vulnerability Database on June 16, 2026, with the most recent update on June 23, 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 3.4% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2026-12003?
CVE-2026-12003 has a CVSS v3 base score of 5.3 (NVD).
How do I remediate CVE-2026-12003?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-12003, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

Explore the affected products and dependency analysis for 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.