{"id":"CVE-2026-0864","aliases":["CVE-2026-0864","PSF-2026-29","BIT-LIBPYTHON-2026-0864","BIT-PYTHON-2026-0864","BIT-PYTHON-MIN-2026-0864"],"related":[],"kind":"vulnerability","state":"published","title":"Configuration Injection via Carriage Return (\\r) in write() method","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Al usar el módulo ’configparser’ para escribir archivos de configuración que contienen valores de texto multilínea con caracteres de retorno de carro (\\r), el archivo resultante podría ser inyectado con claves y valores inesperados si el atacante controla el valor escrito.","source":"nvd"}],"published":"2026-06-23T17:42:01.947Z","modified":"2026-10-25T23:10:00.167Z","severity":{"scorer":"PSF","scheme":"CVSS: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","score":4.1,"rating":"MEDIUM"},"severities":[{"scorer":"PSF","scheme":"CVSS: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","score":4.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"type":"python","introduced":"0","fixed":"3.10.21","status":"affected"},{"type":"python","introduced":"3.11.0","fixed":"3.11.16","status":"affected"},{"type":"python","introduced":"3.12.0","fixed":"3.12.14","status":"affected"},{"type":"python","introduced":"3.13.0","fixed":"3.13.15","status":"affected"},{"type":"python","introduced":"3.14.0","fixed":"3.14.7","status":"affected"},{"type":"python","introduced":"3.15.0a1","fixed":"3.15.0b4","status":"affected"}],"vendor":"Python Software Foundation","product":"CPython","repo":"https://github.com/python/cpython","source":"cvelist"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"5858e42c539dac8394636a6e9b30472b8994851f"},{"type":"git","status":"affected","fixed":"0adb386f6e68eb2e73d32e19f235d012df009528"},{"type":"git","status":"affected","fixed":"71f2e02a52d47417a6fd69f456346cd8aa7aca98"},{"type":"git","status":"affected","fixed":"aaf850fd333cd89e9aada03d92aaa788a6cb1bb8"},{"type":"git","status":"affected","fixed":"db4a157c790479710a1a840d7937c5c815a6f8b6"},{"type":"git","status":"affected","fixed":"12dcbd74d3563016a8cb8c47e4898889f34f74dd"},{"type":"git","status":"affected","fixed":"274de100bbf4345bd0c23ef5b446722e9e636908"}],"repo":"https://github.com/python/cpython","source":"psf"},{"ranges":[{"status":"affected","fixed":"3.10.21"},{"status":"affected","introduced":"3.11.0","fixed":"3.11.16"},{"status":"affected","introduced":"3.12.0","fixed":"3.12.14"},{"status":"affected","introduced":"3.13.0","fixed":"3.13.15"},{"status":"affected","introduced":"3.14.0","fixed":"3.14.7"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"}],"vendor":"python","product":"python","cpe":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.21"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.16"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.14"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.15"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.7"}],"ecosystem":"Bitnami","package":"libpython","purl":"pkg:bitnami/libpython","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.21"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.16"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.14"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.15"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.7"}],"ecosystem":"Bitnami","package":"python","purl":"pkg:bitnami/python","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.21"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.16"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.14"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.15"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.7"}],"ecosystem":"Bitnami","package":"python-min","purl":"pkg:bitnami/python-min","source":"bitnami"}],"references":[{"url":"https://github.com/python/cpython/pull/151559","tags":["fix","issue-tracking","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/CV4NE6AFCRJL7XQOHX7J5TSDHUWVWGJS/","tags":["advisory","mailing-list","vendor-advisory"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/issues/143927","tags":["fix","issue-tracking","patch","report"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/5858e42c539dac8394636a6e9b30472b8994851f","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/0adb386f6e68eb2e73d32e19f235d012df009528","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/71f2e02a52d47417a6fd69f456346cd8aa7aca98","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/aaf850fd333cd89e9aada03d92aaa788a6cb1bb8","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/db4a157c790479710a1a840d7937c5c815a6f8b6","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/12dcbd74d3563016a8cb8c47e4898889f34f74dd","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/274de100bbf4345bd0c23ef5b446722e9e636908","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-0864","tags":["web"],"sources":["bitnami"]}],"credits":["D0n9 (https://github.com/D0n9)","Petr Viktorin (https://github.com/encukou)","Seth Larson (https://github.com/sethmlarson)"],"assigner":"PSF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-23T18:34:23.504Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-0864","url":"https://www.cve.org/CVERecord?id=CVE-2026-0864","licence":"CVE Terms of Use","modified":"2026-08-13T00:29:03.258Z"},{"source":"psf","name":"Python Software Foundation","id":"PSF-2026-29","url":"https://osv.dev/vulnerability/PSF-2026-29","licence":"CC-BY-4.0","modified":"2026-08-11T03:45:03.963Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-0864","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-0864","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPYTHON-2026-0864","url":"https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-0864","licence":"Apache-2.0","modified":"2026-09-08T08:48:09.034Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-2026-0864","url":"https://osv.dev/vulnerability/BIT-PYTHON-2026-0864","licence":"Apache-2.0","modified":"2026-09-08T08:48:24.869Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-MIN-2026-0864","url":"https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-0864","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.794Z"}],"updatedAt":"2026-11-25T22:59:25.492Z","epss":{"score":0.00126,"percentile":0.02482,"date":"2026-12-01T12:00:22.000Z"}}