Repository navigation
[CVE-2020-15801] python 38 embed ignore python38._pth file on windows #85476
Copy link
Copy link
Closed
Labels
3.10 (EOL)end of lifeend of life3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifeOS-windowsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-securityA security issueA security issue
Description
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = <Date 2020-07-16.17:08:16.246>
created_at = <Date 2020-07-15.14:41:17.913>
labels = ['type-security', 'interpreter-core', '3.8', '3.9', '3.10', '3.7', 'OS-windows']
title = '[CVE-2020-15801] python 38 embed ignore python38._pth file on windows'
updated_at = <Date 2020-08-06.16:10:28.228>
user = 'https://github.com/jgiardet'bugs.python.org fields:
activity = <Date 2020-08-06.16:10:28.228>
actor = 'steve.dower'
assignee = 'none'
closed = True
closed_date = <Date 2020-07-16.17:08:16.246>
closer = 'steve.dower'
components = ['Interpreter Core', 'Windows']
creation = <Date 2020-07-15.14:41:17.913>
creator = 'jgirardet'
dependencies = []
files = []
hgrepos = []
issue_num = 41304
keywords = ['patch', '3.8regression']
message_count = 14.0
messages = ['373698', '373701', '373706', '373727', '373728', '373729', '373731', '373756', '373836', '373837', '373838', '373891', '374912', '374942']
nosy_count = 8.0
nosy_names = ['paul.moore', 'tim.golden', 'ned.deily', 'zach.ware', 'steve.dower', 'miss-islington', 'jgirardet', 'owen.huang']
pr_nums = ['21495', '21497', '21498', '21499', '21521', '21522', '21524', '21523']
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'security'
url = 'https://bugs.python.org/issue41304'
versions = ['Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.10 (EOL)end of lifeend of life3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifeOS-windowsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-securityA security issueA security issue
Activity
jgiardet commentedon Jul 15, 2020
Hi,
With python embed unziped in
38directory(python 3.8.4):Note It's working under python 3.7.8
[-]python 38 embed ignore python38._pth file[/-][+]python 38 embed ignore python38._pth file on windows[/+]jgiardet commentedon Jul 15, 2020
replacing python38._pth by python._pth does fix it.
zooba commentedon Jul 15, 2020
Thanks, this is a regression.
https://github.com/python/cpython/blob/master/PC/getpathp.c#L672 should be inverted, as a zero return value indicates success.
zooba commentedon Jul 15, 2020
New changeset 936a660 by Steve Dower in branch 'master':
bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495)
936a660
miss-islington commentedon Jul 15, 2020
New changeset 28e93dd by Miss Islington (bot) in branch '3.9':
bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495)
28e93dd
miss-islington commentedon Jul 15, 2020
New changeset 3b6a8d2 by Miss Islington (bot) in branch '3.8':
bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495)
3b6a8d2
ned-deily commentedon Jul 15, 2020
New changeset 4bfcffe by Steve Dower in branch '3.7':
bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495) (bpo-21499)
4bfcffe
zooba commentedon Jul 16, 2020
For clarity, this was caused by the fix for bpo-29778, and was only released in 3.8.4 and 3.9.0b4. No other versions had a release before the fix was merged.
zooba commentedon Jul 17, 2020
This is now assigned CVE-2020-15801
[-]python 38 embed ignore python38._pth file on windows[/-][+][CVE-2020-15801] python 38 embed ignore python38._pth file on windows[/+]zooba commentedon Jul 17, 2020
New changeset a16ac4e by Miss Islington (bot) in branch '3.9':
bpo-41304: Update NEWS to include CVE-2020-15801 reference (GH-21521)
a16ac4e
zooba commentedon Jul 17, 2020
New changeset 79ed1a5 by Miss Islington (bot) in branch '3.8':
bpo-41304: Update NEWS to include CVE-2020-15801 reference (GH-21521)
79ed1a5
ned-deily commentedon Jul 18, 2020
New changeset eb0d255 by Miss Islington (bot) in branch '3.7':
bpo-41304: Update NEWS to include CVE-2020-15801 reference (GH-21521) (GH-21524)
eb0d255
owenhuang commentedon Aug 6, 2020
hi, since the affected system is not clearly stated on the NVD, I'd like to confirm with you that:
Does the CVE-2020-15801 vulnerability affect only the Windows OS?
thanks a lot!
zooba commentedon Aug 6, 2020
Yes, it only affects Windows OS.
On all other platforms, the python38._pth file is _always_ ignored. We have not implemented this support for those platforms.