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

- Priority: **Routine**
- Reason: Not severe (CVSS 1.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-10-31 · Modified: 2026-07-31
- Aliases: SUSE-SU-2026:0337-1, UBUNTU-CVE-2025-6075, DEBIAN-CVE-2025-6075, CGA-27f3-2f79-vj73, CGA-28c5-8g9j-mcjr, CGA-2wvx-2w83-vmwc, CGA-7xhq-pvfp-j428, CGA-cf2q-rh6v-4j4q, CGA-f7xc-p35h-cv36, CGA-v3gw-22qx-2wgv, CGA-vf4f-pq29-9jqf, CGA-wwg3-6ph7-2v4w, CGA-xqfh-wx42-f3v7, openSUSE-SU-2025:15791-1, CGA-3h53-375v-rw6j, CGA-f6rq-3c43-4ghq
- Record: https://cvemate.com/vulnerability/CVE-2025-6075 · JSON: https://cvemate.com/vulnerability/CVE-2025-6075/json

## Description

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

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.149%, percentile 4.303%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 36)

- chainguard python-3.10 (Chainguard): \< 3.10.19-r2
- chainguard python-3.11 (Chainguard): \< 3.11.14-r2
- chainguard python-3.12 (Chainguard): \< 3.12.12-r2
- chainguard python-3.13 (Chainguard): \< 3.13.9-r2
- chainguard python-3.14 (Chainguard): \< 3.14.0-r8
- chainguard python-3.9 (Chainguard): All versions (No fix recorded)
- wolfi python-3.10 (Wolfi): \< 3.10.19-r2
- wolfi python-3.11 (Wolfi): \< 3.11.14-r2
- wolfi python-3.12 (Wolfi): \< 3.12.12-r2
- wolfi python-3.13 (Wolfi): \< 3.13.9-r2
- wolfi python-3.14 (Wolfi): \< 3.14.0-r8
- debian pypy3 (Debian): All versions (No fix recorded) \| \< 7.3.21+dfsg-1
- debian python3.11 (Debian): \< 3.11.2-6+deb12u7
- debian python3.13 (Debian): \< 3.13.11-1 \| \< 3.13.5-2+deb13u1
- debian python3.14 (Debian): \< 3.14.2-1
- ubuntu pypy3 (Ubuntu): All versions (No fix recorded)
- ubuntu python2.7 (Ubuntu): All versions (No fix recorded) \| \< 2.7.12-1ubuntu0~16.04.18+esm21
- ubuntu python3.10 (Ubuntu): \< 3.10.12-1~22.04.12
- ubuntu python3.11 (Ubuntu): \< 3.11.0~rc1-1~22.04.1~esm6
- ubuntu python3.12 (Ubuntu): \< 3.12.3-1ubuntu0.9

## References (first 20 of 21)

- <https://github.com/python/cpython/issues/136065>
- <https://mail.python.org/archives/list/security-announce@python.org/thread/IUP5QJ6D4KK6ULHOMPC7DPNKRYQTQNLA/>
- <https://github.com/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c>
- <https://github.com/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84>
- <https://github.com/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebca>
- <https://github.com/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742>
- <https://github.com/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1ba>
- <https://github.com/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5c>
- <https://github.com/python/cpython/commit/5dceb93486176e6b4a6d9754491005113eb23427>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20260337-1/>
- <https://bugzilla.suse.com/1257064>
- <https://www.suse.com/security/cve/CVE-2025-6075>
- <https://ubuntu.com/security/CVE-2025-6075>
- <https://www.cve.org/CVERecord?id=CVE-2025-6075>
- <https://ubuntu.com/security/notices/USN-7886-1>
- <https://ubuntu.com/security/notices/USN-7886-2>
- <https://ubuntu.com/security/notices/USN-8614-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-6075>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6075.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-6075>

---

Data as of 2026-12-05T09:07:41.104Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
