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.
Affected products
python: python
References10
- mail.python.org/archives/list/[email protected]/thre… Mailing ListVendor Advisory
- github.com/python/cpython/commit/0adb386f6e68eb2e73d32e19f235d0… Patch
- github.com/python/cpython/commit/12dcbd74d3563016a8cb8c47e48988… Patch
- github.com/python/cpython/commit/274de100bbf4345bd0c23ef5b44672… Patch
- github.com/python/cpython/commit/5858e42c539dac8394636a6e9b3047… Patch
- github.com/python/cpython/commit/71f2e02a52d47417a6fd69f456346c… Patch
- github.com/python/cpython/commit/aaf850fd333cd89e9aada03d92aaa7… Patch
- github.com/python/cpython/commit/db4a157c790479710a1a840d7937c5… Patch
- github.com/python/cpython/issues/143927 Issue TrackingPatch
- github.com/python/cpython/pull/151559 Issue TrackingPatch
Metrics
- CVSS 3.1
-
5.5
MEDIUM
Score source: NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N - CVSS 4.0
-
4.1
MEDIUM
Score source: CNA
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 2 · as of 16 November 2026
- CWE
- CWE-74
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.