Medium severity · published Feb 4, 2025
CVE-2025-0825
CRLF injection in Cpp-httplib
5.3
CVSS
0.4%
EPSS
No
On KEV
Description
cpp-httplib version v0.17.3 through v0.18.3 fails to filter CRLF characters ("\r\n") when those are prefixed with a null byte. This enables attackers to exploit CRLF injection that could further lead to HTTP Response Splitting, XSS, and more.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 35% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CP
Cpp-httplib · Yhirose
0.17.3 before 0.18.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-0825
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-0825
Exploit
https://advisory.checkmarx.net/advisory/CVE-2025-0825/
Patch
https://github.com/yhirose/cpp-httplib/commit/9c36aae4b73e2b6e493f4133e4173103c9266289
More from Cpp-httplib
9.9
CVE-2026-45372
cpp-httplib: HTTP header value percent-decoding in server-side `parse_header` enables CRLF injection
9.8
CVE-2025-66570
cpp-httplib Untrusted HTTP Header Handling: Internal Header Shadowing (REMOTE*/LOCAL*)
8.8
CVE-2025-53628
cpp-httplib does not limit the length of a line
8.8
CVE-2023-26130
Versions of the package yhirose/cpp-httplib before 0.12.4 are vulnerable to CRLF Injection when untrusted user input is used to set the content-type header in the HTTP .Patch,…
8.2
CVE-2026-77358
cpp-httplib: Use-after-free of TLS session in WebSocketClient::shutdown_and_close()
