Original description
When using the "configparser" module to write configuration files containing multi-line text values with carriage return characters (\r) the resulting file could be injected with unexpected keys and values if the attacker controls the written value.
Affected software
- Python < 3.10.21= 3.15.0≥ 3.13.0 < 3.13.15≥ 3.14.0 < 3.14.7≥ 3.12.0 < 3.12.14≥ 3.11.0 < 3.11.16 Fixed in: 3.10.21, 3.13.15, 3.14.7, 3.12.14 exact match
Details
- Published
- 2026-06-24
- Last modified
- 2026-08-13
- CVSS vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N- EPSS (30-day exploit probability)
- 0.13% (percentile 2)
References
- cve.org/CVE-2026-0864
- nvd.nist.gov/vuln/detail/CVE-2026-0864
- github.com/python/cpython/pull/151559
- mail.python.org/archives/list/[email protected]/thread/CV4NE6AFCRJL7XQOHX7J5TSD...
- github.com/python/cpython/issues/143927
- github.com/python/cpython/commit/5858e42c539dac8394636a6e9b30472b8994851f
- github.com/python/cpython/commit/0adb386f6e68eb2e73d32e19f235d012df009528
- github.com/python/cpython/commit/71f2e02a52d47417a6fd69f456346cd8aa7aca98
- github.com/python/cpython/commit/aaf850fd333cd89e9aada03d92aaa788a6cb1bb8
- github.com/python/cpython/commit/db4a157c790479710a1a840d7937c5c815a6f8b6
- github.com/python/cpython/commit/12dcbd74d3563016a8cb8c47e4898889f34f74dd
- github.com/python/cpython/commit/274de100bbf4345bd0c23ef5b446722e9e636908
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.