Quick answers
- Is CVE-2026-0864 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-0864 being exploited in the wild.
- How severe is CVE-2026-0864?
- Informational severity, with a CVSS score of 4.1, published 23 June 2026.
- Which products and versions are affected?
- Python Software Foundation CPython < 3.15.0.
- Is there a fix for CVE-2026-0864?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2026-0864 attacked?
- It is attacked with local access, in a software library.
- Am I affected by CVE-2026-0864?
- Check whether you run Python Software Foundation CPython at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A configuration injection vulnerability exists in the Python 'configparser' module's write() method. The root cause is insufficient normalization of line endings; while the module correctly handles newline characters (\n) by indenting them for multi-line values, it fails to properly handle carriage return characters (\r). An attacker with the ability to provide input that is subsequently written to a configuration file can use \r characters to terminate a value and start a new, unauthorized configuration key or section. This is reachable if an application uses configparser to persist user-controlled data. The issue is addressed by normalizing all line endings (CR, CRLF, and LF) to the standard LF+TAB format during the write operation. Patches are available in CPython versions 3.10 through 3.14, with a full fix in 3.15.0.
Affected products
- Python Software Foundation CPython < 3.15.0
Timeline
- 2026-01-16: disclosed: Issue reported on GitHub
- 2026-06-23: advisory: Security announcement published by Python Software Foundation