CVE catalog

CVE-2025-52887

cpp-httplib: CVE-2025-52887

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.49% · Oct 25, 2026

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. In version 0.21.0, when many http headers fields are passed in, the library does not limit the number of headers, and the memory associated with the headers will not be released when the connection is disconnected. This leads to potential exhaustion of system memory and results in a server crash or unresponsiveness. Version 0.22.0 contains a patch for the issue.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancpp-httplibsid0.41.0+ds-3not affected
Debiancpp-httplibforky0.41.0+ds-3not affected
Debiancpp-httplibtrixie0.18.7-1+deb13u1not affected
Debiancpp-httplibtrixie-security0.18.7-1+deb13u1not affected
Debiancpp-httplibbookworm0.11.4+ds-1+deb12u1not affected
Ubuntucpp-httplibpro0.18.7-1vulnerable
Ubuntucpp-httplibpro0.26.0+ds-2ubuntu2vulnerable
Ubuntucpp-httplibpro0.26.0+ds-2ubuntu3vulnerable
Ubuntucpp-httplibpro0.26.0+ds-2ubuntu3+esm1vulnerable
Ubuntucpp-httplib25.100.18.7-1vulnerable
Ubuntucpp-httplib25.100.18.7-1ubuntu0.25.10.1vulnerable
Ubuntucpp-httplib25.100.18.7-1ubuntu0.25.10.2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancpp-httplibsourcesidNot affectedunimportantNot reportedNot reported
Debiancpp-httplibsourceforkyNot affectedunimportantNot reportedNot reported
Debiancpp-httplibsourcetrixieNot affectedunimportantNot reportedNot reported
Debiancpp-httplibsourcebookwormNot affectedunimportantNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libcpp-httplib0.11]Not affected

    Source package: [cpp-httplib]

    Details (2)
    • 0.11.4+ds-1+deb12u1 · amd64 · bookworm

      Not affected

      dsa · cpp-httplib · debian · bookworm

    • 0.11.4+ds-1+deb12u1 · arm64 · bookworm

      Not affected

      dsa · cpp-httplib · debian · bookworm

  • [libcpp-httplib-dev]Not affected

    Source package: [cpp-httplib]

    Details (2)
    • 0.11.4+ds-1+deb12u1 · amd64 · bookworm

      Not affected

      dsa · cpp-httplib · debian · bookworm

    • 0.11.4+ds-1+deb12u1 · arm64 · bookworm

      Not affected

      dsa · cpp-httplib · debian · bookworm

Observed:

References