CVE-2025-0825
Apache Cpp-httplib NULL Byte CRLF Injection Vulnerability
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.
INFO
Published Date :
Feb. 4, 2025, 3:15 p.m.
Last Modified :
Aug. 4, 2025, 3:06 p.m.
Remotely Exploit :
Yes !
Source :
596c5446-0ce5-4ba2-aa66-48b3b757a647
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 3.1 | MEDIUM | [email protected] | ||||
CVSS 4.0 | MEDIUM | 596c5446-0ce5-4ba2-aa66-48b3b757a647 |
Solution
- Update cpp-httplib to a patched version.
- Validate input for CRLF sequences.
- Sanitize or reject input containing CRLF characters.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-0825
.
URL | Resource |
---|---|
https://advisory.checkmarx.net/advisory/CVE-2025-0825/ | Exploit Third Party Advisory |
https://github.com/yhirose/cpp-httplib/commit/9c36aae4b73e2b6e493f4133e4173103c9266289 | Patch |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-0825
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-0825
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-0825
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-0825
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Aug. 04, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Added CPE Configuration OR *cpe:2.3:a:yhirose:cpp-httplib:*:*:*:*:*:*:*:* versions from (including) 0.17.3 up to (excluding) 0.18.4 Added Reference Type Checkmarx: https://advisory.checkmarx.net/advisory/CVE-2025-0825/ Types: Exploit, Third Party Advisory Added Reference Type Checkmarx: https://github.com/yhirose/cpp-httplib/commit/9c36aae4b73e2b6e493f4133e4173103c9266289 Types: Patch -
CVE Modified by 596c5446-0ce5-4ba2-aa66-48b3b757a647
May. 23, 2025
Action Type Old Value New Value Added Reference https://advisory.checkmarx.net/advisory/CVE-2025-0825/ -
New CVE Received by 596c5446-0ce5-4ba2-aa66-48b3b757a647
Feb. 04, 2025
Action Type Old Value New Value Added 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. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-113 Added Reference https://github.com/yhirose/cpp-httplib/commit/9c36aae4b73e2b6e493f4133e4173103c9266289