CRLF injection in Cpp-httplib - CVE-2026-45372
Published: May 13, 2026
Vulnerability details
The vulnerability allows a remote attacker to inject CRLF sequences into stored HTTP header values.
The vulnerability exists due to improper neutralization of CRLF sequences in the server-side parse_header function when parsing percent-encoded header values in incoming requests. A remote attacker can send a specially crafted request with encoded CRLF sequences to inject CRLF sequences into stored HTTP header values.
The issue can lead to inconsistent interpretation of header values by downstream application components, including response handling, logging, and proxying logic.
Affected software
Fedora
Ubuntu
openEuler
cpp-httplib (Ubuntu package)
cpp-httplib
cpp-httplib-debuginfo
cpp-httplib-debugsource
cpp-httplib-devel
How to mitigate CVE-2026-45372
cpp-httplib (Ubuntu package) - addressed in versions 0.10.3+ds-1ubuntu0.1~esm2, 0.14.3+ds-1.1ubuntu0.1~esm2, 0.18.7-1ubuntu0.25.10.2, 0.26.0+ds-2ubuntu3+esm1
cpp-httplib - update to 0.46.0-1
cpp-httplib-debuginfo - update to 0.46.0-1
cpp-httplib-debugsource - update to 0.46.0-1
cpp-httplib-devel - update to 0.46.0-1
cpp-httplib - addressed in versions 0.48.0-1.el9, 0.48.0-1.el10_3, 0.48.0-1.fc43, 0.48.0-1.fc44
Links to Public Exploits and PoC-codes
External References
Related Security Bulletins
- Multiple vulnerabilities in Cpp-httplib
- openEuler 24.03 LTS SP1 update for cpp-httplib
- openEuler 24.03 LTS SP3 update for cpp-httplib
- Fedora 43 update for cpp-httplib
- Fedora 44 update for cpp-httplib
- Fedora EPEL 10.3 update for cpp-httplib
- Fedora EPEL 9 update for cpp-httplib
- Ubuntu update for cpp-httplib