{"id":"UBUNTU-CVE-2026-45372","details":"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.","modified":"2026-06-25T13:30:09.589841928Z","published":"2026-05-29T20:16:00Z","related":["USN-8470-1"],"upstream":["CVE-2026-45372"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-45372"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-45372"},{"type":"REPORT","url":"https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-xjxg-64p4-vj4m"},{"type":"REPORT","url":"https://github.com/yhirose/cpp-httplib/commit/fbb031ed8504a0e48d9ca63caecc0614c296f755"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8470-1"}],"affected":[{"package":{"name":"cpp-httplib","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/cpp-httplib?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10.3+ds-1ubuntu0.1~esm2"}]}],"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"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"libcpp-httplib0","binary_version":"0.10.3+ds-1ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45372.json"}},{"package":{"name":"cpp-httplib","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/cpp-httplib?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14.3+ds-1.1ubuntu0.1~esm2"}]}],"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"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"libcpp-httplib0.14t64","binary_version":"0.14.3+ds-1.1ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45372.json"}},{"package":{"name":"cpp-httplib","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/cpp-httplib?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.18.7-1ubuntu0.25.10.2"}]}],"versions":["0.18.7-1","0.18.7-1ubuntu0.25.10.1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.18.7-1ubuntu0.25.10.2","binary_name":"libcpp-httplib0.18"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45372.json"}},{"package":{"name":"cpp-httplib","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/cpp-httplib?arch=source&distro=esm-apps%2Fresolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.26.0+ds-2ubuntu3+esm1"}]}],"versions":["0.18.7-1","0.26.0+ds-2ubuntu2","0.26.0+ds-2ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_name":"libcpp-httplib0.26","binary_version":"0.26.0+ds-2ubuntu3+esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45372.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L"},{"type":"Ubuntu","score":"medium"}]}