Python: Quadratic complexity in os.path.expandvars() with user-controlled template (CVE-2025-6075)
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
AI Analysis
Technical Summary
The advisory details multiple security flaws in Python 3.12 and related components as shipped by Red Hat, including CVE-2025-6075 which involves quadratic complexity in os.path.expandvars() when processing user-controlled templates, potentially leading to resource exhaustion. Other issues include out-of-memory conditions when loading Plist files (CVE-2025-13837), header injection via newlines in data URL mediatype and http.cookies.Morsel, logging bypass in legacy .pyc file handling, incomplete control character validation in http.cookies, and stack overflow parsing XML. These vulnerabilities affect various Red Hat Enterprise Linux versions and related container images. Red Hat has updated the affected components and container images, recommending deployment via the rhui-installer utility. The advisory includes a comprehensive list of CVEs and CWE identifiers related to resource exhaustion, injection, and memory corruption issues.
Potential Impact
The vulnerabilities can lead to denial of service conditions through resource exhaustion (memory or CPU), header injection potentially affecting HTTP headers, logging bypass, and stack overflow. Specifically, CVE-2025-6075 can cause quadratic complexity leading to high resource consumption. CVE-2025-13837 can cause out-of-memory conditions when processing malicious Plist files. The impact is primarily denial of service and potential application instability. There are no confirmed reports of active exploitation in the wild. The vulnerabilities affect Python applications processing untrusted input or files, which may not be common in all environments.
Mitigation Recommendations
Red Hat has released updated RPM packages and container images addressing these vulnerabilities. Users should deploy the updated container images using the rhui-installer utility as per official Red Hat documentation. Applying these updates will mitigate the described issues. No alternative mitigations are noted in the advisory. Users should follow Red Hat's guidance and update affected systems promptly. Patch status is confirmed as available via the updated packages and images referenced in the advisory.
Python: Quadratic complexity in os.path.expandvars() with user-controlled template (CVE-2025-6075)
Description
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
Affected software
pkg:bitnami/pythonRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The advisory details multiple security flaws in Python 3.12 and related components as shipped by Red Hat, including CVE-2025-6075 which involves quadratic complexity in os.path.expandvars() when processing user-controlled templates, potentially leading to resource exhaustion. Other issues include out-of-memory conditions when loading Plist files (CVE-2025-13837), header injection via newlines in data URL mediatype and http.cookies.Morsel, logging bypass in legacy .pyc file handling, incomplete control character validation in http.cookies, and stack overflow parsing XML. These vulnerabilities affect various Red Hat Enterprise Linux versions and related container images. Red Hat has updated the affected components and container images, recommending deployment via the rhui-installer utility. The advisory includes a comprehensive list of CVEs and CWE identifiers related to resource exhaustion, injection, and memory corruption issues.
Potential Impact
The vulnerabilities can lead to denial of service conditions through resource exhaustion (memory or CPU), header injection potentially affecting HTTP headers, logging bypass, and stack overflow. Specifically, CVE-2025-6075 can cause quadratic complexity leading to high resource consumption. CVE-2025-13837 can cause out-of-memory conditions when processing malicious Plist files. The impact is primarily denial of service and potential application instability. There are no confirmed reports of active exploitation in the wild. The vulnerabilities affect Python applications processing untrusted input or files, which may not be common in all environments.
Mitigation Recommendations
Red Hat has released updated RPM packages and container images addressing these vulnerabilities. Users should deploy the updated container images using the rhui-installer utility as per official Red Hat documentation. Applying these updates will mitigate the described issues. No alternative mitigations are noted in the advisory. Users should follow Red Hat's guidance and update affected systems promptly. Patch status is confirmed as available via the updated packages and images referenced in the advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_security_advisory
- Csaf Version
- 2.0
- Publisher
- Red Hat Product Security
- Advisory Id
- RHSA-2026:21275
- Cve Count
- 29
- Additional Cves
- ["CVE-2025-13837","CVE-2025-14087","CVE-2025-14512","CVE-2025-15282","CVE-2025-59375","CVE-2026-0672","CVE-2026-0865","CVE-2026-1502","CVE-2026-2100","CVE-2026-2297","CVE-2026-3644","CVE-2026-4224","CVE-2026-4519","CVE-2026-4786","CVE-2026-4878","CVE-2026-6100","CVE-2026-29111","CVE-2026-31790","CVE-2026-34982","CVE-2026-35385","CVE-2026-35386","CVE-2026-35387","CVE-2026-35388","CVE-2026-35414","CVE-2026-35535","CVE-2026-40355","CVE-2026-40356","CVE-2026-42945"]
- State
- PUBLISHED
Threat ID: 6a175ee3e29bf47b50edaca9
Added to database: 05/27/2026, 21:15:15 UTC
Last enriched: 08/14/2026, 23:00:29 UTC
Last updated: 09/15/2026, 22:01:31 UTC
Views: 129
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.