CVE catalog

CVE-2025-66570

cpp-httplib vulnerability

[CVE catalog]

Severity
Critical · CVSS 10CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.34% · Oct 25, 2026

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.27.0, a vulnerability allows attacker-controlled HTTP headers to influence server-visible metadata, logging, and authorization decisions. An attacker can inject headers named REMOTE_ADDR, REMOTE_PORT, LOCAL_ADDR, LOCAL_PORT that are parsed into the request header multimap via read_headers() in httplib.h (headers.emplace), then the server later appends its own internal metadata using the same header names in Server::process_request without erasing duplicates. Because Request::get_header_value returns the first entry for a header key (id == 0) and the client-supplied headers are parsed before server-inserted headers, downstream code that uses these header names may inadvertently use attacker-controlled values. Affected files/locations: cpp-httplib/httplib.h (read_headers, Server::process_request, Request::get_header_value, get_header_value_u64) and cpp-httplib/docker/main.cc (get_client_ip, nginx_access_logger, nginx_error_logger). Attack surface: attacker-controlled HTTP headers in incoming requests flow into the Request.headers multimap and into logging code that reads forwarded headers, enabling IP spoofing, log poisoning, and authorization bypass via header shadowing. This vulnerability is fixed in 0.27.0.

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-3fixed
Debiancpp-httplibforky0.41.0+ds-3fixed
Debiancpp-httplibtrixie0.18.7-1+deb13u1vulnerable
Debiancpp-httplibtrixie-security0.18.7-1+deb13u1vulnerable
Debiancpp-httplibbookworm0.11.4+ds-1+deb12u1vulnerable
Ubuntucpp-httplibnobleNot reportedvulnerable
Ubuntucpp-httplibnoble0.14.3+ds-1.1ubuntu0.1~esm1fixed
Ubuntulibcpp-httplib-devnoble0.14.3+ds-1.1ubuntu0.1~esm1fixed
Ubuntulibcpp-httplib0.14t64noble0.14.3+ds-1.1ubuntu0.1~esm1fixed
Ubuntucpp-httplibpro0.13.1+ds-1ubuntu1vulnerable
Ubuntucpp-httplibpro0.14.3+ds-1vulnerable
Ubuntucpp-httplibpro0.14.3+ds-1.1vulnerable
Ubuntucpp-httplibpro0.14.3+ds-1.1build1vulnerable
Ubuntucpp-httplibpro0.14.3+ds-1.1build2vulnerable
Ubuntucpp-httplibpro0.14.3+ds-1.1ubuntu0.1~esm1fixed
Ubuntucpp-httplib25.100.18.7-1vulnerable
Ubuntucpp-httplib25.100.18.7-1ubuntu0.25.10.1fixed
Opensusecpp-httplibleap 16.00.22.0-160000.3.1fixed
Opensusecpp-httplibtumbleweed0.28.0-1.1fixed
Susecpp-httpliblinux enterprise server 16.00.22.0-160000.3.1fixed
Susecpp-httpliblinux enterprise server for sap applications 16.00.22.0-160000.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancpp-httplibsourcesid0.41.0+ds-3not yet assignedNot reported[1122027]
Debiancpp-httplibsourceforky0.41.0+ds-3not yet assignedNot reported[1122027]
Debiancpp-httplibsourcetrixie(unfixed)not yet assignedNot reported[1122027]
Debiancpp-httplibsourcebookworm(unfixed)not yet assignedNot reported[1122027]
Ubuntucpp-httplibdebnoble0.14.3+ds-1.1ubuntu0.1~esm1Not reportedNot reportedNot reported
Ubuntulibcpp-httplib-devdebnoble0.14.3+ds-1.1ubuntu0.1~esm1Not reportedNot reportedNot reported
Ubuntulibcpp-httplib0.14t64debnoble0.14.3+ds-1.1ubuntu0.1~esm1Not reportedNot reportedNot reported
Ubuntucpp-httplibdebpro0.14.3+ds-1.1ubuntu0.1~esm1Not reportedUSN-7962-1Not reported
Ubuntucpp-httplibdeb25.100.18.7-1ubuntu0.25.10.1Not reportedUSN-7962-1Not reported
Opensusecpp-httplibrpmleap 16.00.22.0-160000.3.1Not reportedOPENSUSE-SU-2026:20056-1Not reported
Opensusecpp-httplibrpmtumbleweed0.28.0-1.1Not reportedOPENSUSE-SU-2025:15844-1Not reported
Susecpp-httplibrpmlinux enterprise server 16.00.22.0-160000.3.1Not reportedSUSE-SU-2026:20090-1Not reported
Susecpp-httplibrpmlinux enterprise server for sap applications 16.00.22.0-160000.3.1Not reportedSUSE-SU-2026:20090-1Not reported

[Debian bug #1122027]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [cpp-httplib]

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

      Affected

      usn · cpp-httplib · debian · bookworm; usn · cpp-httplib · debian · 12

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

      Affected

      usn · cpp-httplib · debian · bookworm; usn · cpp-httplib · debian · 12

  • Source package: [cpp-httplib]

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

      Affected

      usn · cpp-httplib · debian · bookworm; usn · cpp-httplib · debian · 12

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

      Affected

      usn · cpp-httplib · debian · bookworm; usn · cpp-httplib · debian · 12

[Debian 13 (Trixie)]

  • Source package: [cpp-httplib]

    Details (4)
    • 0.18.7-1+deb13u1 · amd64 · trixie

      Affected

      usn · cpp-httplib · debian · 13

    • 0.18.7-1+deb13u1 · arm64 · trixie

      Affected

      usn · cpp-httplib · debian · 13

    • 0.18.7-1+deb13u1 · amd64 · trixie-security

      Affected

      usn · cpp-httplib · debian · 13

    • 0.18.7-1+deb13u1 · arm64 · trixie-security

      Affected

      usn · cpp-httplib · debian · 13

  • Source package: [cpp-httplib]

    Details (2)
    • 0.41.0+ds-3~bpo13+1 · amd64 · trixie-backports

      Affected

      usn · cpp-httplib · debian · 13

    • 0.41.0+ds-3~bpo13+1 · arm64 · trixie-backports

      Affected

      usn · cpp-httplib · debian · 13

  • Source package: [cpp-httplib]

    Details (6)
    • 0.18.7-1+deb13u1 · amd64 · trixie

      Affected

      usn · cpp-httplib · debian · 13

    • 0.18.7-1+deb13u1 · arm64 · trixie

      Affected

      usn · cpp-httplib · debian · 13

    • 0.41.0+ds-3~bpo13+1 · amd64 · trixie-backports

      Affected

      usn · cpp-httplib · debian · 13

    • 0.41.0+ds-3~bpo13+1 · arm64 · trixie-backports

      Affected

      usn · cpp-httplib · debian · 13

    • 0.18.7-1+deb13u1 · amd64 · trixie-security

      Affected

      usn · cpp-httplib · debian · 13

    • 0.18.7-1+deb13u1 · arm64 · trixie-security

      Affected

      usn · cpp-httplib · debian · 13

[openSUSE Tumbleweed]

  • Source package: [cpp-httplib]

    Details (1)
    • 0.49.0-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 0.28.0-1.1

      Version impact unknown

      usn · cpp-httplib · opensuse · tumbleweed

  • Source package: [cpp-httplib]

    Details (1)
    • 0.49.0-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 0.28.0-1.1

      Version impact unknown

      usn · cpp-httplib · opensuse · tumbleweed

Observed:

References