Critical pip Vulnerabilities Expose TLS Bypass and DoS Risks
Ubuntu security updates address three vulnerabilities in pip affecting TLS certificate verification and resource consumption. Organizations using pip for dependency management should prioritize patching to prevent man-in-the-middle attacks and denial-of-service conditions.
TL;DR
- TLS certificate verification can be bypassed in pip sessions if verification is disabled on first use, allowing subsequent requests to skip checks
- Two urllib3 decompression vulnerabilities enable remote attackers to trigger excessive resource consumption and denial-of-service conditions
- CVE-2024-35195, CVE-2025-66418, and CVE-2025-66471 collectively impact supply chain security and application availability
- Patch availability through Ubuntu security notices USN-8344-1 addresses all three issues
Ubuntu has released security updates addressing three vulnerabilities in pip, the widely-used Python package installer. These issues span certificate verification logic and HTTP response decompression, affecting both confidentiality and availability for organizations relying on pip for dependency management.
The vulnerabilities range from a session-level TLS bypass that persists across requests to resource exhaustion attacks via malicious HTTP responses. Development teams and DevOps practitioners should review and apply patches promptly to mitigate supply chain and infrastructure risks.
TLS Certificate Verification Bypass
- CVE-2024-35195: pip incorrectly handles TLS verification state across session requests
- If certificate verification is disabled on the first request to a host, subsequent requests reuse that state regardless of current settings
- Enables man-in-the-middle attacks and exposure of sensitive data in transit
- Particularly dangerous in mixed-trust environments where some requests intentionally disable verification
Decompression Resource Exhaustion
- CVE-2025-66418: urllib3 bundled with pip lacks limits on decompression steps during HTTP response processing
- CVE-2025-66471: Improper handling of streaming decompression for highly compressed payloads
- Both enable remote attackers to craft malicious responses triggering excessive CPU and memory consumption
- Results in denial-of-service conditions affecting pip operations and dependent build systems
Remediation and Impact
- Ubuntu security notice USN-8344-1 provides patched pip versions across supported releases
- Organizations should update pip and verify urllib3 versions in their dependency chains
- Supply chain tools and CI/CD pipelines using pip are primary targets for exploitation
- Recommend testing patches in non-production environments before broad deployment
Sources
Fontes
Atualizações de segurança por e-mail
Um e-mail resumo quando publicarmos novos artigos de segurança (TL;DR e links para ler mais). Cancele a inscrição a qualquer momento no rodapé da mensagem. Veja nossa Política de Privacidade.