CVE-2026-0864: medium-severity vulnerability in Python Software Foundation CPython
Configuration Injection via Carriage Return (\r) in write() method
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 4.1epss 0.1%
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.
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
Affected products
Python Software Foundation · CPythonRelated CVEs — Python Software Foundation CPython
In the same product, most dangerous first.
CVE-2024-7592HIGHQuadratic complexity parsing cookies with backslashesEPSS 2.3%CVE-2024-6232HIGHRegular-expression DoS when parsing TarFile headersEPSS 2.2%CVE-2024-12254HIGHUnbounded memory buffering in SelectorSocketTransport.writelines()EPSS 1.9%CVE-2025-13836MEDIUMExcessive read buffering DoS in http.clientEPSS 1.7%CVE-2025-0938MEDIUMURL parser allowed square brackets in domain namesEPSS 1.5%CVE-2025-4138HIGHBypassing extraction filter to create symlinks to arbitrary targets outside extraction directoryEPSS 1.5%
References
https://github.com/python/cpython/commit/0adb386f6e68eb2e73d32e19f235d012df009528https://github.com/python/cpython/commit/12dcbd74d3563016a8cb8c47e4898889f34f74ddhttps://github.com/python/cpython/commit/274de100bbf4345bd0c23ef5b446722e9e636908https://github.com/python/cpython/commit/5858e42c539dac8394636a6e9b30472b8994851fhttps://github.com/python/cpython/commit/71f2e02a52d47417a6fd69f456346cd8aa7aca98https://github.com/python/cpython/commit/aaf850fd333cd89e9aada03d92aaa788a6cb1bb8https://github.com/python/cpython/commit/db4a157c790479710a1a840d7937c5c815a6f8b6https://github.com/python/cpython/issues/143927https://github.com/python/cpython/pull/151559https://mail.python.org/archives/list/security-announce@python.org/thread/CV4NE6AFCRJL7XQOHX7J5TSDHUWVWGJS/