Improper Certificate Validation in urllib3 <1.24.2
A vulnerability in urllib3 versions prior to 1.24.2 allows SSL connections to succeed when they should fail due to improper handling of CA certificate verification. Specifically, when a custom set of CA certificates is specified via ssl_context, ca_certs, or ca_certs_dir, urllib3 may still use the OS CA store, leading to successful SSL connections even if the server certificate should not be trusted by the specified CA set.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
This vulnerability can allow attackers to perform man-in-the-middle attacks by presenting certificates that are trusted by the OS CA store but not by the intended custom CA set. This undermines the security guarantees of SSL/TLS connections, potentially exposing sensitive data to interception or tampering.
If you can’t patch tonight, do this now.
As an immediate mitigation, avoid using custom CA sets with affected urllib3 versions, or ensure that the OS CA store is strictly controlled and matches the intended trust anchors. Monitor for updates and apply the patched version as soon as possible.
Patch, then assume compromise.
Upgrade urllib3 to version 1.24.2 or later, where the handling of custom CA certificates has been corrected to ensure proper certificate validation according to the specified CA set.
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.