p PatchFirst

CVE-2025-52887

CVE-2025-52887 · cpp-httplib has unlimited number of http header fields, which causes memory leak

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 7.5 · High · EPSS 0.5%

Published
Updated

Stack: system

Affected products and versions

  • cpp-httplib

    Versions
    • = 0.21.0: Affected

    No fix published

  • cpp-httplib Ubuntu:Pro:22.04:LTS

    Versions
    • 0.9.9+ds-1
    • 0.9.10+ds-1
    • 0.10.1+ds-1
    • 0.10.2+ds-1
    • 0.10.3+ds-1
    • 0.10.3+ds-1ubuntu0.1~esm1
    • 0.10.3+ds-1ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cpp-httplib Ubuntu:Pro:24.04:LTS

    Versions
    • 0.13.1+ds-1ubuntu1
    • 0.14.3+ds-1
    • 0.14.3+ds-1.1
    • 0.14.3+ds-1.1build1
    • 0.14.3+ds-1.1build2
    • 0.14.3+ds-1.1ubuntu0.1~esm1
    • 0.14.3+ds-1.1ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cpp-httplib Ubuntu:25.10

    Versions
    • 0.18.7-1
    • 0.18.7-1ubuntu0.25.10.1
    • 0.18.7-1ubuntu0.25.10.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cpp-httplib Ubuntu:Pro:26.04:LTS

    Versions
    • 0.18.7-1
    • 0.26.0+ds-2ubuntu2
    • 0.26.0+ds-2ubuntu3
    • 0.26.0+ds-2ubuntu3+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →