Vulnerability · Published Feb 4, 2025 · Assigned by Checkmarx

CVE-2025-0825CRLF injection in Cpp-httplib

Medium 6.9

In plain English

A medium-severity security flaw in cpp-httplib. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.4%top 64.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12cpp-httplibno fix listedDEBIAN-CVE-2025-0825
Debian:13cpp-httplib0.18.7-1DEBIAN-CVE-2025-0825
Debian:14cpp-httplib0.18.7-1DEBIAN-CVE-2025-0825

Affected products (as reported)

VendorProductVersions
cpp-httplib v0.17.3 – through v0.18.3

Weakness: CWE-113 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

References