CVE-2026-0864: Configuration Injection via Carriage Return (\r) in write() method
Configuration Injection via Carriage Return (\r) in write() method
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.12.9-14
Event History
Frequently Asked Questions
What is the severity of CVE-2026-0864?
CVE-2026-0864 has a medium severity level with a CVSS score of 4.1.
What is the risk associated with CVE-2026-0864?
The risk associated with CVE-2026-0864 is rated as 24.
How do I fix CVE-2026-0864?
To fix CVE-2026-0864, ensure that carriage return characters are sanitized or removed before writing to configuration files using the 'configparser' module.
What is the nature of the vulnerability in CVE-2026-0864?
CVE-2026-0864 is a configuration injection vulnerability that can occur when writing multi-line text values containing carriage return characters in the 'configparser' module.
Who is affected by CVE-2026-0864?
CVE-2026-0864 affects applications that use the 'configparser' module in Python to write configuration files with unvalidated user input.