PSF-2026-29: Configuration Injection via Carriage Return (\r) in write() method

Published Jun 23, 2026
·
Updated

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 Software

1 affected component
Python Software Foundation configparser

Event History

Jun 23, 2026
CVE Published
via OSV·05:42 PM
Data Sourced
via OSV·05:42 PM
DescriptionSeverity

Frequently Asked Questions

1

Who is exposed to this issue?

Applications are exposed when they use configparser to write configuration files containing multi-line values and an attacker can control a value that includes a carriage return character (\r). The impact is limited to the generated configuration file, where unexpected keys and values may be injected.

2

What access does an attacker need to exploit it?

The attacker needs influence over a value passed to configparser's write() method and must be able to include a carriage return in that value. The supplied severity vector also indicates local access, high privileges, and user interaction are required.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203