CVE-2026-0864
Configuration Injection via Carriage Return (\r) in write() method
- State
- Published
- Severity
- 4.1 Medium
- Published
- Jun 23, 2026
- Updated
- Aug 13, 2026
- Reserved
- Jan 12, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 4.1 Medium | 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 | PSF |
Weaknesses
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Products
| Product | Versions |
|---|---|
CPythonPython Software Foundation |
|
References
- https://github.com/python/cpython/pull/151559patch
- https://mail.python.org/archives/list/security-announce@python.org/thread/CV4NE6AFCRJL7XQOHX7J5TSDHUWVWGJS/vendor-advisory
- https://github.com/python/cpython/issues/143927issue-tracking
- https://github.com/python/cpython/commit/5858e42c539dac8394636a6e9b30472b8994851fpatch
- https://github.com/python/cpython/commit/0adb386f6e68eb2e73d32e19f235d012df009528patch
- https://github.com/python/cpython/commit/71f2e02a52d47417a6fd69f456346cd8aa7aca98patch
- https://github.com/python/cpython/commit/aaf850fd333cd89e9aada03d92aaa788a6cb1bb8patch
- https://github.com/python/cpython/commit/db4a157c790479710a1a840d7937c5c815a6f8b6patch
- https://github.com/python/cpython/commit/12dcbd74d3563016a8cb8c47e4898889f34f74ddpatch
- https://github.com/python/cpython/commit/274de100bbf4345bd0c23ef5b446722e9e636908patch
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.