CVE-2026-0864 Configuration Injection via Carriage Return (\r) in write() method
Attackers can inject unexpected keys into configuration files by exploiting carriage return handling in the Python configparser module's write method.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-0864?
CVE-2026-0864 is a medium-severity vulnerability in Python Python, published on 23 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-74
Which versions are affected by CVE-2026-0864?
3 open source packages ship an affected version, including libpython, python and python-min. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
libpython Bitnami | All versions | 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7 |
python Bitnami | All versions | 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7 |
python-min Bitnami | All versions | 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7 |
Products include Python Python.
How do I fix CVE-2026-0864?
Upgrade libpython to a fixed version for your release line: 3.10.21, 3.11.16, 3.12.14 or 3.13.15.
Is CVE-2026-0864 being exploited?
There is no known exploitation of CVE-2026-0864 in the wild and no public exploit code.
Other vulnerabilities in Python Python
Sources
Also known as ALPINE-CVE-2026-0864, AZL-109698, AZL-91260, BELL-CVE-2026-0864, BIT-libpython-2026-0864, BIT-python-2026-0864 and 34 more.