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.
https://mail.python.org/archives/list/[email protected]/thread/CV4NE6AFCRJL7XQOHX7J5TSDHUWVWGJS/
https://github.com/python/cpython/pull/151559
https://github.com/python/cpython/issues/143927
https://github.com/python/cpython/commit/aaf850fd333cd89e9aada03d92aaa788a6cb1bb8
https://github.com/python/cpython/commit/71f2e02a52d47417a6fd69f456346cd8aa7aca98
https://github.com/python/cpython/commit/5858e42c539dac8394636a6e9b30472b8994851f
https://github.com/python/cpython/commit/0adb386f6e68eb2e73d32e19f235d012df009528
Published: 2026-06-23
Updated: 2026-06-25
Base Score: 1.9
Vector: CVSS2#AV:L/AC:M/Au:N/C:N/I:P/A:N
Severity: Low
Base Score: 5.5
Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Severity: Medium
Base Score: 4.1
Vector: 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
Severity: Medium
EPSS: 0.00127