[3.12] gh-151544: Fixes CVE-2026-12003 by removing the fallback to %V… · python/cpython@03ab7b4 · GitHub
Skip to content

Commit 03ab7b4

Browse files
[3.12] gh-151544: Fixes CVE-2026-12003 by removing the fallback to %VPATH%/Modules/Setup.local for discovering sources in getpath.py (GH-151545) (#151567)
gh-151544: Fixes CVE-2026-12003 by removing the fallback to %VPATH%/Modules/Setup.local for discovering sources in getpath.py (GH-151545) (cherry picked from commit 9e863fa) Co-authored-by: Steve Dower <steve.dower@python.org>
1 parent db195e3 commit 03ab7b4

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

Makefile.pre.in

Lines changed: 2 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
:file:`Modules/Setup.local` is no longer used as a landmark to discover
2+
whether Python is running in a source tree, as it could potentially affect
3+
actual installs. The :file:`pybuilddir.txt` file is now the sole indicator
4+
of running in a source tree.

Modules/getpath.py

Lines changed: 4 additions & 11 deletions

0 commit comments

Comments
 (0)