Skip to content
Noroxi
NVD / CVE Program· CNA PSF

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

LowCVSS 1.8 · v4.0—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 7/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.14% (FIRST EPSS).
  • Someone with local access to the system can trigger it. Administrator privileges are required. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: Python Software Foundation CPython 3.10.20, 3.11.15, 3.12.13; azl3 python3 3.12.9-5 on Azure Linux 3.0 3.12.9-6; azl3 python3 3.12.9-6 on Azure Linux 3.0 3.12.9-6.

Low priority for now. Upgrade to Python Software Foundation CPython 3.10.20, 3.11.15, 3.12.13; azl3 python3 3.12.9-5 on Azure Linux 3.0 3.12.9-6; azl3 python3 3.12.9-6 on Azure Linux 3.0 3.12.9-6 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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

Published
Oct 31, 2025
Updated
Oct 7, 2026
EPSS
0.1% · 4th percentile

Report tools

JSON

Action score

7

Monitor

Low priority for now.

CVSS
7 / 40 · 1.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.1%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · PSF
1.8
NVD has not scored this yet; the score shown is the CNA’s.

CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2025-6075

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
pythonpython

Versions reported by the vendor

Affected version ranges reported by the assigning authority (PSF). Independent of NVD's CPE analysis and usually ahead of it.

  • Python Software Foundation CPython

    • before 3.9.25affected · python
    • 3.10.0 and later · before 3.10.20affected · python
    • 3.11.0 and later · before 3.11.15affected · python
    • 3.12.0 and later · before 3.12.13affected · python
    • 3.13.0 and later · before 3.13.10affected · python
    • 3.14.0 and later · before 3.14.1affected · python
    • 3.15.0a1 and later · before 3.15.0a2affected · python

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:10python-unversioned-commandbefore 3.12.13-2.el10_23.12.13-2.el10_2
AlmaLinux:10python3before 3.12.13-2.el10_23.12.13-2.el10_2
AlmaLinux:10python3-debugbefore 3.12.13-2.el10_23.12.13-2.el10_2
AlmaLinux:10python3-develbefore 3.12.13-2.el10_23.12.13-2.el10_2
AlmaLinux:10python3-idlebefore 3.12.13-2.el10_23.12.13-2.el10_2
AlmaLinux:10python3-libsbefore 3.12.13-2.el10_23.12.13-2.el10_2
AlmaLinux:10python3-testbefore 3.12.13-2.el10_23.12.13-2.el10_2
AlmaLinux:10python3-tkinterbefore 3.12.13-2.el10_23.12.13-2.el10_2
AlmaLinux:8python3.12before 3.12.13-2.el8_103.12.13-2.el8_10
AlmaLinux:8python3.12-debugbefore 3.12.13-2.el8_103.12.13-2.el8_10
AlmaLinux:8python3.12-develbefore 3.12.13-2.el8_103.12.13-2.el8_10
AlmaLinux:8python3.12-idlebefore 3.12.13-2.el8_103.12.13-2.el8_10
AlmaLinux:8python3.12-libsbefore 3.12.13-2.el8_103.12.13-2.el8_10
AlmaLinux:8python3.12-rpm-macrosbefore 3.12.13-2.el8_103.12.13-2.el8_10
AlmaLinux:8python3.12-testbefore 3.12.13-2.el8_103.12.13-2.el8_10
AlmaLinux:8python3.12-tkinterbefore 3.12.13-2.el8_103.12.13-2.el8_10
AlmaLinux:8python39before 3.9.25-2.module_el8.10.0+4083+53cad1fb3.9.25-2.module_el8.10.0+4083+53cad1fb
AlmaLinux:8python39-attrsbefore 20.3.0-2.module_el8.6.0+2780+a40f65e120.3.0-2.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-cffibefore 1.14.3-2.module_el8.6.0+2780+a40f65e11.14.3-2.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-cffibefore 1.14.3-2.module_el8.6.0+3248+c431e88c1.14.3-2.module_el8.6.0+3248+c431e88c
AlmaLinux:8python39-chardetbefore 3.0.4-19.module_el8.6.0+2780+a40f65e13.0.4-19.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-cryptographybefore 3.3.1-3.module_el8.10.0+3765+2f9a457d3.3.1-3.module_el8.10.0+3765+2f9a457d
AlmaLinux:8python39-Cythonbefore 0.29.21-5.module_el8.6.0+2780+a40f65e10.29.21-5.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-Cythonbefore 0.29.21-5.module_el8.6.0+3248+c431e88c0.29.21-5.module_el8.6.0+3248+c431e88c

+96

Other highest-scoring records for the same primary product.

  • CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2…
    47Plan
  • CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted…
    47Plan
  • CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain…
    46Plan

Published before and after this one in the same product

  • ← EarlierCVE-2024-6232Sep 3, 2024 · Regular-expression DoS when parsing TarFile headers
    31Monitor
  • ← EarlierCVE-2024-9287Oct 22, 2024 · Virtual environment (venv) activation scripts don't quote paths
    21Monitor
  • Later →CVE-2025-13836Dec 1, 2025 · Excessive read buffering DoS in http.client
    26Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Python Software Foundation CPython3.10.20Vendor (CNA)
Python Software Foundation CPython3.11.15Vendor (CNA)
Python Software Foundation CPython3.12.13Vendor (CNA)
Python Software Foundation CPython3.13.10Vendor (CNA)
Python Software Foundation CPython3.14.1Vendor (CNA)
Python Software Foundation CPython3.15.0a2Vendor (CNA)
Python Software Foundation CPython3.9.25Vendor (CNA)
azl3 python3 3.12.9-5 on Azure Linux 3.03.12.9-6 · CBL-Mariner ReleasesMicrosoft (MSRC)
azl3 python3 3.12.9-6 on Azure Linux 3.03.12.9-6 · CBL-Mariner ReleasesMicrosoft (MSRC)
cbl2 python3 3.9.19-16 on CBL Mariner 2.03.9.19-17 · CBL-Mariner ReleasesMicrosoft (MSRC)
cbl2 python3 3.9.19-17 on CBL Mariner 2.03.9.19-17 · CBL-Mariner ReleasesMicrosoft (MSRC)
almalinux:python-unversioned-command3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python33.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python3-debug3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python3-devel3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python3-idle3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python3-libs3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python3-test3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python3-tkinter3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python393.9.25-2.module_el8.10.0+4083+53cad1fb · AlmaLinux:8Package registry (OSV)
almalinux:python39-attrs20.3.0-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-Cython0.29.21-5.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-PyMySQL0.10.1-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
debian:pypy37.3.21+dfsg-1 · Debian:14Package registry (OSV)
debian:python3.113.11.2-6+deb12u7 · Debian:12Package registry (OSV)
debian:python3.133.13.5-2+deb13u1 · Debian:13Package registry (OSV)
debian:python3.143.14.2-1 · Debian:14Package registry (OSV)
debian:python3.93.9.2-1+deb11u4 · Debian:11Package registry (OSV)
opensuse:python3103.10.19-150400.4.91.3 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:python310-core3.10.19-150400.4.91.3 · openSUSE:Leap 15.6Package registry (OSV)

+48

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2026-15308251 days apartIncremental HTMLParser feed() allows CPU-exhaustion DoS via repeated unterminated markup declarations
    34Monitor
  • CVE-2024-7592438 days apartQuadratic complexity parsing cookies with backslashes
    31Monitor
  • CVE-2025-1383631 days apartExcessive read buffering DoS in http.client
    26Monitor
  • CVE-2025-1383731 days apartOut-of-memory when loading Plist
    8Monitor

Not on record for this CVE: EPSS history · researcher credit · public bounty program.

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • Administrator privileges are required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
Integrity
Availability
Attack vector
Local
Attack complexity
Low
Privileges required
High
User interaction
None
Scope
X

CVSS vector

CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

nvd-secondary

Root cause

Code that parses nested structures sets no depth or size limit. A small input can turn into a disproportionate processing load.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
function expand(node) {  return node.children.map(expand);}

Fixed

ts
const MAX_DEPTH = 32;function expand(node, depth = 0) {  if (depth > MAX_DEPTH) throw new Error("too deep");  return node.children.map((c) => expand(c, depth + 1));}

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

References

All records