4.1medium
Configuration Injection via Carriage Return (\r) in write() method
- Severity
- 4.1medium CVSS:4.0 by PSF
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- PSF
- Also known as
- PSF-2026-29BIT-LIBPYTHON-2026-0864BIT-PYTHON-2026-0864BIT-PYTHON-MIN-2026-0864
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
| Product or package | Versions | Reported by |
|---|---|---|
| Python Software Foundation CPython | before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.15, from 3.14.0 before 3.14.7, from 3.15.0a1 before 3.15.0b4 | CVE List |
| https://github.com/python/cpython | before 5858e42c539dac8394636a6e9b30472b8994851f, before 0adb386f6e68eb2e73d32e19f235d012df009528, before 71f2e02a52d47417a6fd69f456346cd8aa7aca98, before aaf850fd333cd89e9aada03d92aaa788a6cb1bb8, before db4a157c790479710a1a840d7937c5c815a6f8b6, before 12dcbd74d3563016a8cb8c47e4898889f34f74dd, before 274de100bbf4345bd0c23ef5b446722e9e636908 | Python Software Foundation |
| python python | before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.15, from 3.14.0 before 3.14.7, 3.15.0 | NVD |
| libpython (Bitnami) | before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.15, from 3.14.0 before 3.14.7 | Bitnami Vulnerability Database |
| python (Bitnami) | before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.15, from 3.14.0 before 3.14.7 | Bitnami Vulnerability Database |
| python-min (Bitnami) | before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.15, from 3.14.0 before 3.14.7 | Bitnami Vulnerability Database |
All scores
| PSF | 4.1medium CVSS:4.0 | 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 |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-0864 changed 2026-08-13 | CVE Terms of Use |
| Python Software Foundation | PSF-2026-29 changed 2026-08-11 | CC-BY-4.0 |
| NVD | CVE-2026-0864 changed 2026-10-25 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPYTHON-2026-0864 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-2026-0864 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-MIN-2026-0864 changed 2026-09-08 | Apache-2.0 |