PSF-2020-6: Critical severity Python Software Foundation Python vulnerability
Published Oct 22, 2020
·Updated
In Python 3 through 3.9.0, the Lib/test/multibytecodecsupport.py CJK codec tests call eval() on content retrieved via HTTP.
Affected Software
1 affected component
Python Software Foundation Python>=3<=3.9.0
Event History
Oct 22, 2020
CVE Published
via OSV·03:16 AM
Data Sourced
via OSV·03:16 AM
DescriptionSeverity
Frequently Asked Questions
1
Who is exposed to this issue?
The affected code is in Python's Lib/test/multibytecodec_support.py CJK codec tests. Exposure therefore applies to environments that run those tests in Python versions through 3.9.0, rather than to ordinary use that does not execute the test code.
2
What does an attacker need to exploit it?
An attacker would need to control or alter content retrieved over HTTP by the affected CJK codec tests. That content is passed to eval(), allowing it to be interpreted as code.
3
Are default production deployments affected?
The provided information identifies the vulnerable behavior only in the Lib/test test module. It does not establish that a default production deployment executes this test code.