BIT-libpython-2026-0864: Configuration Injection via Carriage Return (\r) in write() method
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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications are exposed when they use Python's configparser module to write configuration files and allow an attacker to control a multi-line value written to the file. The attacker-controlled value must contain carriage return characters.
What does an attacker need to exploit it?
The attacker needs control over a value that the application passes to configparser's write() method. Exploitation also requires that the value is written as multi-line text containing a carriage return (\r).
What is the impact of successful exploitation?
A crafted value can cause the generated configuration file to contain unexpected keys and values. The provided severity vector indicates no confidentiality impact, but an integrity impact within the vulnerable component.