Skip to content
DoS Write-up Intermediate

Vulnerability Spotlight: Python.org certificate parsing denial-of-service

Python's X509 certificate parser mishandles a certificate with a blank DistributionPoint and cRLIssuer, causing a NULL pointer dereference. An attacker could crash Python by supplying such a certificate when getpeercert() is called on a TLS connection.

blog.talosintelligence.com

Published on blog.talosintelligence.com

Python.org contains an exploitable denial-of-service vulnerability in its X509 certificate parser. A specially crafted X509 certificate can cause a NULL pointer dereference, resulting in a denial of service.

The author, on blog.talosintelligence.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the code assumes a valid distribution point structure and dereferences a NULL pointer when both distributionPoint and cRLIssuer are blank.

Impact

An attacker could cause a denial of service by crashing Python when it processes a specially crafted certificate.

What the attacker needed

Attacker can supply a crafted X509 certificate; victim calls getpeercert() on a TLS connection

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 write-up has not been written yet. The Original tab links to the source.

When Python connects securely to another computer, it checks the other side's digital certificate. A malformed certificate can make Python crash because it tries to use a missing piece of information. This means an attacker could cause a denial of service, stopping the program from working.

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.

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.