CVE-2026-0864
Configuration Injection via Carriage Return (\r) in write() method
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.
INFO
Published Date :
June 23, 2026, 6:17 p.m.
Last Modified :
June 25, 2026, 7:51 p.m.
Remotely Exploit :
No
Source :
[email protected]
Affected Products
The following products are affected by CVE-2026-0864
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 4.0 | MEDIUM | 28c92f92-d60d-412d-b760-e73465c3df22 | ||||
| CVSS 4.0 | MEDIUM | [email protected] |
Solution
- Avoid writing user-controlled multi-line values.
- Sanitize input values to remove carriage returns.
- Validate configuration file content after writing.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-0864.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-0864 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-0864
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-0864 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-0864 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Jun. 24, 2026
Action Type Old Value New Value Added Reference https://github.com/python/cpython/commit/0adb386f6e68eb2e73d32e19f235d012df009528 Added Reference https://github.com/python/cpython/commit/71f2e02a52d47417a6fd69f456346cd8aa7aca98 Added Reference https://github.com/python/cpython/commit/aaf850fd333cd89e9aada03d92aaa788a6cb1bb8 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 23, 2026
Action Type Old Value New Value Added CWE CWE-74 Added SSVC {'id': 'CVE-2026-0864', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-06-23T18:34:23.504725Z'} -
New CVE Received by [email protected]
Jun. 23, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://github.com/python/cpython', 'vendor': 'Python Software Foundation', 'product': 'CPython', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '3.15.0', 'versionType': 'python'}], 'defaultStatus': 'unaffected'}] Added 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. Added CVSS V4.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 Added Reference https://github.com/python/cpython/commit/5858e42c539dac8394636a6e9b30472b8994851f Added Reference https://github.com/python/cpython/issues/143927 Added Reference https://github.com/python/cpython/pull/151559 Added Reference https://mail.python.org/archives/list/[email protected]/thread/CV4NE6AFCRJL7XQOHX7J5TSDHUWVWGJS/