Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Python | Python | < 3.10.21 |
Related Weaknesses (CWE)
References
- https://github.com/python/cpython/commit/0adb386f6e68eb2e73d32e19f235d012df00952Patch
- https://github.com/python/cpython/commit/12dcbd74d3563016a8cb8c47e4898889f34f74dPatch
- https://github.com/python/cpython/commit/274de100bbf4345bd0c23ef5b446722e9e63690Patch
- https://github.com/python/cpython/commit/5858e42c539dac8394636a6e9b30472b8994851Patch
- https://github.com/python/cpython/commit/71f2e02a52d47417a6fd69f456346cd8aa7aca9Patch
- https://github.com/python/cpython/commit/aaf850fd333cd89e9aada03d92aaa788a6cb1bbPatch
- https://github.com/python/cpython/commit/db4a157c790479710a1a840d7937c5c815a6f8bPatch
- https://github.com/python/cpython/issues/143927Issue TrackingPatch
- https://github.com/python/cpython/pull/151559Issue TrackingPatch
- https://mail.python.org/archives/list/[email protected]/thread/CV4NE6Mailing ListVendor Advisory
FAQ
What is CVE-2026-0864?
CVE-2026-0864 is a vulnerability with a CVSS score of 5.5 (MEDIUM). 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 v...
How severe is CVE-2026-0864?
CVE-2026-0864 has been rated MEDIUM with a CVSS base score of 5.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-0864?
Check the references section above for vendor advisories and patch information. Affected products include: Python Python.