Vulnerability in cpp-httplib
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as UBUNTU-CVE-2026-45372 has been found in cpp-httplib.
Data can be tampered with by attackers.
What to do: upgrade cpp-httplib to 0.44.0 or later.
If unsure, ask your IT team or search "cpp-httplib UBUNTU-CVE-2026-45372" on the vendor's site.
UBUNTU-CVE-2026-45372 (cpp-httplib)
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Patched: 0.44.0 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (unclassified) exists in cpp-httplib.
Check the vendor advisory for the affected versions of cpp-httplib.
Severity: ?. Data can be tampered with by attackers.
Update to 0.44.0.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'cpp-httplib' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'cpp-httplib' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
cpp-httplibを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade cpp-httplib to 0.44.0ステージング環境で 0.44.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:22.04:LTScpp-httplib |
< 0.10.3+ds-1ubuntu0.1~esm2→ 0.10.3+ds-1ubuntu0.1~esm2 |
0.10.3+ds-1ubuntu0.1~esm2 |
| Ubuntu:Pro:24.04:LTScpp-httplib |
< 0.14.3+ds-1.1ubuntu0.1~esm2→ 0.14.3+ds-1.1ubuntu0.1~esm2 |
0.14.3+ds-1.1ubuntu0.1~esm2 |
| Ubuntu:25.10cpp-httplib |
< 0.18.7-1ubuntu0.25.10.2→ 0.18.7-1ubuntu0.25.10.2 |
0.18.7-1ubuntu0.25.10.2 |
| Ubuntu:26.04:LTScpp-httplib |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:26.04:LTScpp-httplib |
< 0.26.0+ds-2ubuntu3+esm1→ 0.26.0+ds-2ubuntu3+esm1 |
0.26.0+ds-2ubuntu3+esm1 |
| Ubuntu:26.10cpp-httplib |
All versions→ Not listed |
Not listed |
Original description The description as published by the source.
cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.44.0, when cpp-httplib's server parses an incoming request, it applies percent-decoding to every header value except Location and Referer. The validity check (is_field_value) is run before decoding, so encoded %0D%0A passes the check and is then expanded to a literal \r\n byte pair inside the stored header value. This vulnerability is fixed in 0.44.0.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report cve.org
- report github.com
- report github.com