CVE-2025-0825 Details
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.
A CRLF injection vulnerability has been identified in cpp-httplib versions 0.17.3 through 0.18.3. The issue arises because the library fails to properly filter CRLF characters when they are preceded by a null byte. This flaw allows attackers to inject CRLF sequences into HTTP headers, potentially leading to HTTP response splitting, cross-site scripting (XSS) attacks, and other exploits.
Users can upgrade to cpp-httplib version 0.18.4 or later, where this vulnerability has been fixed. The patch includes validation of header fields against a list of allowed characters, preventing the injection of CRLF sequences.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://advisory.checkmarx.net/advisory/CVE-2025-0825/ | Checkmarx | ExploitThird Party Advisory |
| https://github.com/yhirose/cpp-httplib/commit/9c36aae4b73e2b6e493f4133e4173103c9266289 | Checkmarx | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-113 | Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') | Checkmarx |
Affected Products
| Product | Versions |
|---|---|
| yhirose cpp-httplib | >= 0.17.3, < 0.18.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | Checkmarx |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 4, 2025 | Initial Analysis | [email protected] |
| May 23, 2025 | CVE Modified | Checkmarx |
| Feb 4, 2025 | New CVE Received | Checkmarx |