Two vulnerabilities in the ssl module
Two memory-safety bugs were found in Python's ssl module: a reference-counting error that could cause use-after-free or double-free, and an uninitialised variable use. An attacker could potentially trigger memory corruption, though the text does not describe a concrete exploit.
- Fixed in 35 days
- Paid in 35 days
- Disclosed after 3.2 years
I found two vulnerabilities in python's ssl module.
The first is a Py_XDECREF call on an object which isn't owned, leading to use-after-free and/or double free scenarios. The second vulnerability is an uninitialized variable use.
I described both issues in detail in a mail to the PSRT. The mail and fix for both issues is here:
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
Root cause
Likely incorrect reference counting (decrementing an object the code did not own) and use of an uninitialised variable in the ssl module.
Impact
Could lead to use-after-free or double-free and uninitialised memory use, potentially causing crashes or memory corruption; no exploit details are given.
What the attacker needed
None stated
The fix
The text says a fix is available at the linked issue, but does not describe it.
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.
Python's ssl module handles secure connections. A reference-counting mistake means the code may free memory that is still in use, and an uninitialised variable means it may read leftover data. Both can make a program crash or behave unpredictably, which an attacker might abuse.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.