Skip to main content
EPSS 0.1%top 96%

Python: Quadratic complexity in os.path.expandvars() with user-controlled template (CVE-2025-6075)

0
Medium
Published: 12/05/2025 (12/05/2025, 11:13:34 UTC)
Source: GCVE Database
Product: python

Description

If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.

Affected software

Bitnamimore threats →ghsa
python
pkg:bitnami/python
Affected versions
<3.9.25>=3.10.0 <3.10.20>=3.11.0 <3.11.15>=3.12.0 <3.12.13>=3.13.0 <3.13.10>=3.14.0 <3.14.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 23:00:29 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

External Links

NVD DatabaseMITRE CVEReference 1Reference 2Reference 3Reference 4Reference 5Reference 6Reference 7Reference 8Reference 9https://access.redhat.com/errata/RHSA-2026:21275https://access.redhat.com/products/red-hat-update-infrastructurehttps://access.redhat.com/security/cve/CVE-2025-13837https://access.redhat.com/security/cve/CVE-2025-14087https://access.redhat.com/security/cve/CVE-2025-14512https://access.redhat.com/security/cve/CVE-2025-15282https://access.redhat.com/security/cve/CVE-2025-59375https://access.redhat.com/security/cve/CVE-2025-6075https://access.redhat.com/security/cve/CVE-2026-0672https://access.redhat.com/security/cve/CVE-2026-0865https://access.redhat.com/security/cve/CVE-2026-1502https://access.redhat.com/security/cve/CVE-2026-2100https://access.redhat.com/security/cve/CVE-2026-2297https://access.redhat.com/security/cve/CVE-2026-29111https://access.redhat.com/security/cve/CVE-2026-31790https://access.redhat.com/security/cve/CVE-2026-34982https://access.redhat.com/security/cve/CVE-2026-35385https://access.redhat.com/security/cve/CVE-2026-35386https://access.redhat.com/security/cve/CVE-2026-35387https://access.redhat.com/security/cve/CVE-2026-35388https://access.redhat.com/errata/RHSA-2026:7443https://images.redhat.com/https://access.redhat.com/security/cve/CVE-2026-5713https://access.redhat.com/security/updates/classification/https://access.redhat.com/security/cve/CVE-2026-4224https://access.redhat.com/security/cve/CVE-2026-3644https://access.redhat.com/security/cve/CVE-2026-1299https://access.redhat.com/security/cve/CVE-2025-13836https://access.redhat.com/security/cve/CVE-2025-13462https://access.redhat.com/security/cve/CVE-2025-11468https://access.redhat.com/security/cve/CVE-2025-8291https://access.redhat.com/security/cve/CVE-2025-12084https://access.redhat.com/security/cve/CVE-2026-3446https://access.redhat.com/security/cve/CVE-2026-3479https://access.redhat.com/security/cve/CVE-2026-4519https://access.redhat.com/errata/RHSA-2026:10950https://access.redhat.com/security/updates/classification/#important23951082408891241808424313662431374244469124481682448181245740924579322458049Canonical URLhttps://access.redhat.com/errata/RHSA-2026:190642449649Canonical URLhttps://access.redhat.com/errata/RHSA-2026:8824https://access.redhat.com/security/cve/CVE-2025-15367https://access.redhat.com/security/cve/CVE-2026-4786https://access.redhat.com/security/cve/CVE-2026-6100https://access.redhat.com/errata/RHSA-2026:19177Canonical URLhttps://access.redhat.com/errata/RHSA-2026:7661Canonical URLhttps://access.redhat.com/errata/RHSA-2026:8822https://access.redhat.com/security/cve/CVE-2025-15366Reference 72Search on Google

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses