SB2026042458 - openEuler 24.03 LTS SP2 update for cpp-httplib
Published: April 24, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 2 vulnerabilities.
1) Input validation error (CVE-ID: CVE-2026-31870)
CWE-ID: CWE-20 - Improper input validation
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to improper input validation in ClientImpl::open_stream() when parsing the Content-Length response header in the streaming API. A remote attacker can send a specially crafted HTTP response with a malformed Content-Length header to cause a denial of service.
Only the streaming API paths that call open_stream() are affected; the regular non-streaming request path is not affected.
2) Improper Certificate Validation (CVE-ID: CVE-2026-32627)
CWE-ID: CWE-295 - Improper Certificate Validation
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Amber
The vulnerability allows a remote attacker to intercept HTTPS connections and disclose sensitive information.
The vulnerability exists due to improper certificate validation in ClientImpl::create_redirect_client() in httplib.h when following an HTTPS redirect through a configured proxy. A remote attacker can return a crafted redirect response and present a forged or self-signed certificate to intercept HTTPS connections and disclose sensitive information.
Only builds with SSL support are affected, and exploitation requires the client to have a proxy configured with redirect following enabled.
Remediation
Install update from vendor's website.