CVE-2026-3634: Libsoup: libsoup: http header injection and response splitting via crlf injection in content-type header

Published Mar 6, 2026
·
Updated

A flaw was found in libsoup. An attacker controlling the value used to set the Content-Type header can inject a Carriage Return Line Feed (CRLF) sequence due to improper input sanitization in the soupmessageheaderssetcontenttype() function. This vulnerability allows for the injection of arbitrary header-value pairs, potentially leading to HTTP header injection and response splitting attacks.

Other sources

The soupmessageheaderssetcontenttype() function sets the Content-Type header value. Internally, it calls soupmessageheadersappendcommon() to add the new Content-Type value to an accumulating array. Unlike soupmessageheadersappend(), the internal soupmessageheadersappendcommon() function does not enforce any restrictions on the allowed characters in the header value, allowing the creation of a header whose value contains a CRLF sequence. Later, when the HTTP request or response is constructed, the header strings are interpreted without further sanitization, resulting in the effective injection of a CRLF sequence, and hence, arbitrary header-value pairs. A proof of concept script that showcases the issue can be found in the attachment. CRLFinjinsoupmessageheaderssetcontenttype.c Running this code confirms that the server on localhost:5000 receives a valid HTTP request containing the injected X-Injected-By header with the value injection.

Impact An attacker controlling the value used to set the Content-Type header is able to perform a CRLF injection, potentially leading to header injection and response splitting.

Recommended solution Instead of directly using the soupmessageheadersappendcommon() function, use the soupmessageheadersappend() function in soupmessageheaderssetcontenttype().

Red Hat

Affected Software

7 affected components
libsoup/libsoup
Gnome libsoup
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux=10.0

Event History

Mar 6, 2026
Data Sourced
via Red Hat·08:00 AM
DescriptionSeverityAffected Software
Mar 17, 2026
CVE Published
via MITRE·09:44 AM
Data Sourced
via MITRE·09:44 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 AM
DescriptionSeverityWeaknessAffected Software
Jul 29, 58194
Event
via FIRST·10:14 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-3634?

CVE-2026-3634 is considered a high-severity vulnerability due to its potential for HTTP header injection and response splitting.

2

How do I fix CVE-2026-3634?

To fix CVE-2026-3634, ensure you're using the latest version of libsoup that addresses this vulnerability.

3

What versions of libsoup are affected by CVE-2026-3634?

CVE-2026-3634 affects various versions of libsoup across different operating systems, including multiple versions of Red Hat Enterprise Linux.

4

What are the potential impacts of CVE-2026-3634?

Exploitation of CVE-2026-3634 can lead to HTTP response splitting, which may allow attackers to perform cross-site scripting (XSS) or cache poisoning attacks.

5

How does CVE-2026-3634 allow CRLF injection?

CVE-2026-3634 allows CRLF injection due to improper input sanitization of the Content-Type header, enabling attackers to inject line breaks.

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