Skip to content
DoS Disclosed report Advanced CVE-2019-19274CVE-2019-19275

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.

blarsen Follow

Originally disclosed on HackerOne

Bounty$2,000 Medium 4.4 View original
  • 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:

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.

The original report as published on HackerOne, by blarsen. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.