Two out-of-bounds array reads in Python AST builder (Re-opening 520612 with CVEs)
Two out-of-bounds array reads existed in Python's AST builder, triggered by certain Python snippets. A service that parses but does not execute untrusted Python could be crashed, causing a denial of service.
- Triaged in 9 days
- Fixed in 20 months
- Paid in 20 months
- Disclosed after 21 months
I'm re-submitting #520612 after getting CVEs issued, as instructed in an automated email from November 17th.
Getting CVEs issued took a while, but here they are:
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19274
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19275
Impact
A service that takes Python snippets as payload, but doesn't necessarily execute them, could possibly be caused to crash, leading to a denial of service. Examples of such services include online playgrounds for static analysis tools, syntax highlighting & formatting services, etc.
I didn't copy-and-paste all the original details here; see the original issue ( #520612 ) for that.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
A service that parses untrusted Python snippets without executing them could possibly be crashed, leading to a denial of service.
What the attacker needed
Service parses untrusted Python; attacker can submit a snippet
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When Python reads code, it builds a tree structure describing it. A bug in that step could make the program read past the end of an internal list, which can crash it. An attacker only needs to send a specially crafted snippet to a service that parses Python, not even run it.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.