{"id":"CVE-2026-0864","published":"2026-06-23T17:42:01Z","modified":"2026-08-13T00:29:03Z","title":"Configuration Injection via Carriage Return (\\r) in write() method","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"When using the \"configparser\" module to write configuration files\ncontaining multi-line text values with carriage return characters (\\r) the\nresulting file could be injected with unexpected keys and values if the\nattacker controls the written value.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.1,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00126,"percentile":0.0236,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/python/cpython/pull/151559","tags":["patch"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/CV4NE6AFCRJL7XQOHX7J5TSDHUWVWGJS/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/issues/143927","tags":["issue-tracking"]},{"url":"https://github.com/python/cpython/commit/5858e42c539dac8394636a6e9b30472b8994851f","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/0adb386f6e68eb2e73d32e19f235d012df009528","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/71f2e02a52d47417a6fd69f456346cd8aa7aca98","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/aaf850fd333cd89e9aada03d92aaa788a6cb1bb8","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/db4a157c790479710a1a840d7937c5c815a6f8b6","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/12dcbd74d3563016a8cb8c47e4898889f34f74dd","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/274de100bbf4345bd0c23ef5b446722e9e636908","tags":["patch"]}],"priority":{"score":3.3,"factors":[{"name":"EPSS percentile","points":0.47},{"name":"CVSS severity","points":2.87}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.10.21",">= 3.11.0, < 3.11.16",">= 3.12.0, < 3.12.14",">= 3.13.0, < 3.13.15",">= 3.14.0, < 3.14.7",">= 3.15.0a1, < 3.15.0b4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-23T18:34:23.504725Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-38554","exploited":false,"provenance":"source"}}