<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
	<DocumentTitle xml:lang="en">An update for cpp-httplib is now available for openEuler-24.03-LTS-SP3</DocumentTitle>
	<DocumentType>Security Advisory</DocumentType>
	<DocumentPublisher Type="Vendor">
		<ContactDetails>openeuler-security@openeuler.org</ContactDetails>
		<IssuingAuthority>openEuler security committee</IssuingAuthority>
	</DocumentPublisher>
	<DocumentTracking>
		<Identification>
			<ID>openEuler-SA-2026-2585</ID>
		</Identification>
		<Status>Final</Status>
		<Version>1.0</Version>
		<RevisionHistory>
			<Revision>
				<Number>1.0</Number>
				<Date>2026-06-05</Date>
				<Description>Initial</Description>
			</Revision>
		</RevisionHistory>
		<InitialReleaseDate>2026-06-05</InitialReleaseDate>
		<CurrentReleaseDate>2026-06-05</CurrentReleaseDate>
		<Generator>
			<Engine>openEuler SA Tool V1.0</Engine>
			<Date>2026-06-05</Date>
		</Generator>
	</DocumentTracking>
	<DocumentNotes>
		<Note Title="Synopsis" Type="General" Ordinal="1" xml:lang="en">cpp-httplib security update</Note>
		<Note Title="Summary" Type="General" Ordinal="2" xml:lang="en">An update for cpp-httplib is now available for openEuler-24.03-LTS-SP3</Note>
		<Note Title="Description" Type="General" Ordinal="3" xml:lang="en">A C++11 single-file header-only cross platform HTTP/HTTPS library. It&amp;apos;s extremely easy to setup. Just include httplib.h file in your code!

Security Fix(es):

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.43.4, negative chunk-size in chunked Transfer-Encoding causes unbounded memory allocation and process crash. The ChunkedDecoder::read_payload function in cpp-httplib (httplib.h) parses the chunk-size field of HTTP chunked transfer encoding using std::strtoul(). Per the C standard (§7.22.1.4), strtoul silently accepts a leading minus sign, performing unsigned wrap-around: strtoul(&quot;-2&quot;, …, 16) returns ULONG_MAX − 1 (0xFFFFFFFFFFFFFFFE). The library&apos;s only guard (line 12833) rejects ULONG_MAX (the result of &quot;-1&quot;), but any other negative value such as &quot;-2&quot; passes validation. The resulting near-maximum value is stored in chunk_remaining and controls how many bytes the server&apos;s read loop consumes from the network. This vulnerability is fixed in 0.43.4.(CVE-2026-45352)

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.44.0, when cpp-httplib&apos;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.(CVE-2026-45372)

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.44.0, When the server has called Server::set_trusted_proxies() with a non-empty trusted-proxy list, an attacker can send an HTTP request that includes an X-Forwarded-For header whose value parses to no valid IP segments. The code path then executes get_client_ip(), which calls front() on an empty std::vector—undefined behavior in C++. On typical implementations this manifests as abnormal process termination (denial of service). With Sanitizers enabled, you get an explicit runtime diagnostic. This vulnerability is fixed in 0.44.0.(CVE-2026-46527)</Note>
		<Note Title="Topic" Type="General" Ordinal="4" xml:lang="en">An update for cpp-httplib is now available for master/openEuler-22.03-LTS-SP4/openEuler-24.03-LTS/openEuler-24.03-LTS-Next/openEuler-24.03-LTS-SP1/openEuler-24.03-LTS-SP3/openEuler-24.03-LTS-SP4.

openEuler Security has rated this update as having a security impact of critical. A Common Vunlnerability Scoring System(CVSS)base score,which gives a detailed severity rating, is available for each vulnerability from the CVElink(s) in the References section.</Note>
		<Note Title="Severity" Type="General" Ordinal="5" xml:lang="en">Critical</Note>
		<Note Title="Affected Component" Type="General" Ordinal="6" xml:lang="en">cpp-httplib</Note>
	</DocumentNotes>
	<DocumentReferences>
		<Reference Type="Self">
			<URL>https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-2585</URL>
		</Reference>
		<Reference Type="openEuler CVE">
			<URL>https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2026-45352</URL>
			<URL>https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2026-45372</URL>
			<URL>https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2026-46527</URL>
		</Reference>
		<Reference Type="Other">
			<URL>https://nvd.nist.gov/vuln/detail/CVE-2026-45352</URL>
			<URL>https://nvd.nist.gov/vuln/detail/CVE-2026-45372</URL>
			<URL>https://nvd.nist.gov/vuln/detail/CVE-2026-46527</URL>
		</Reference>
	</DocumentReferences>
	<ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
		<Branch Type="Product Name" Name="openEuler">
			<FullProductName ProductID="openEuler-24.03-LTS-SP3" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">openEuler-24.03-LTS-SP3</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="aarch64">
			<FullProductName ProductID="cpp-httplib-0.46.0-1" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">cpp-httplib-0.46.0-1.oe2403sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="cpp-httplib-debuginfo-0.46.0-1" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">cpp-httplib-debuginfo-0.46.0-1.oe2403sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="cpp-httplib-debugsource-0.46.0-1" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">cpp-httplib-debugsource-0.46.0-1.oe2403sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="cpp-httplib-devel-0.46.0-1" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">cpp-httplib-devel-0.46.0-1.oe2403sp3.aarch64.rpm</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="src">
			<FullProductName ProductID="cpp-httplib-0.46.0-1" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">cpp-httplib-0.46.0-1.oe2403sp3.src.rpm</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="x86_64">
			<FullProductName ProductID="cpp-httplib-0.46.0-1" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">cpp-httplib-0.46.0-1.oe2403sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="cpp-httplib-debuginfo-0.46.0-1" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">cpp-httplib-debuginfo-0.46.0-1.oe2403sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="cpp-httplib-debugsource-0.46.0-1" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">cpp-httplib-debugsource-0.46.0-1.oe2403sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="cpp-httplib-devel-0.46.0-1" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">cpp-httplib-devel-0.46.0-1.oe2403sp3.x86_64.rpm</FullProductName>
		</Branch>
	</ProductTree>
	<Vulnerability Ordinal="1" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
		<Notes>
			<Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.43.4, negative chunk-size in chunked Transfer-Encoding causes unbounded memory allocation and process crash. The ChunkedDecoder::read_payload function in cpp-httplib (httplib.h) parses the chunk-size field of HTTP chunked transfer encoding using std::strtoul(). Per the C standard (§7.22.1.4), strtoul silently accepts a leading minus sign, performing unsigned wrap-around: strtoul(&quot;-2&quot;, …, 16) returns ULONG_MAX − 1 (0xFFFFFFFFFFFFFFFE). The library&apos;s only guard (line 12833) rejects ULONG_MAX (the result of &quot;-1&quot;), but any other negative value such as &quot;-2&quot; passes validation. The resulting near-maximum value is stored in chunk_remaining and controls how many bytes the server&apos;s read loop consumes from the network. This vulnerability is fixed in 0.43.4.</Note>
		</Notes>
		<ReleaseDate>2026-06-05</ReleaseDate>
		<CVE>CVE-2026-45352</CVE>
		<ProductStatuses>
			<Status Type="Fixed">
				<ProductID>openEuler-24.03-LTS-SP3</ProductID>
			</Status>
		</ProductStatuses>
		<Threats>
			<Threat Type="Impact">
				<Description>Medium</Description>
			</Threat>
		</Threats>
		<CVSSScoreSets>
			<ScoreSet>
				<BaseScore>5.3</BaseScore>
				<Vector>AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L</Vector>
			</ScoreSet>
		</CVSSScoreSets>
		<Remediations>
			<Remediation Type="Vendor Fix">
				<Description>cpp-httplib security update</Description>
				<DATE>2026-06-05</DATE>
				<URL>https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-2585</URL>
			</Remediation>
		</Remediations>
	</Vulnerability>
	<Vulnerability Ordinal="2" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
		<Notes>
			<Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.44.0, when cpp-httplib&apos;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.</Note>
		</Notes>
		<ReleaseDate>2026-06-05</ReleaseDate>
		<CVE>CVE-2026-45372</CVE>
		<ProductStatuses>
			<Status Type="Fixed">
				<ProductID>openEuler-24.03-LTS-SP3</ProductID>
			</Status>
		</ProductStatuses>
		<Threats>
			<Threat Type="Impact">
				<Description>Critical</Description>
			</Threat>
		</Threats>
		<CVSSScoreSets>
			<ScoreSet>
				<BaseScore>9.9</BaseScore>
				<Vector>AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L</Vector>
			</ScoreSet>
		</CVSSScoreSets>
		<Remediations>
			<Remediation Type="Vendor Fix">
				<Description>cpp-httplib security update</Description>
				<DATE>2026-06-05</DATE>
				<URL>https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-2585</URL>
			</Remediation>
		</Remediations>
	</Vulnerability>
	<Vulnerability Ordinal="3" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
		<Notes>
			<Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.44.0, When the server has called Server::set_trusted_proxies() with a non-empty trusted-proxy list, an attacker can send an HTTP request that includes an X-Forwarded-For header whose value parses to no valid IP segments. The code path then executes get_client_ip(), which calls front() on an empty std::vector—undefined behavior in C++. On typical implementations this manifests as abnormal process termination (denial of service). With Sanitizers enabled, you get an explicit runtime diagnostic. This vulnerability is fixed in 0.44.0.</Note>
		</Notes>
		<ReleaseDate>2026-06-05</ReleaseDate>
		<CVE>CVE-2026-46527</CVE>
		<ProductStatuses>
			<Status Type="Fixed">
				<ProductID>openEuler-24.03-LTS-SP3</ProductID>
			</Status>
		</ProductStatuses>
		<Threats>
			<Threat Type="Impact">
				<Description>High</Description>
			</Threat>
		</Threats>
		<CVSSScoreSets>
			<ScoreSet>
				<BaseScore>8.7</BaseScore>
				<Vector>AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X</Vector>
			</ScoreSet>
		</CVSSScoreSets>
		<Remediations>
			<Remediation Type="Vendor Fix">
				<Description>cpp-httplib security update</Description>
				<DATE>2026-06-05</DATE>
				<URL>https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-2585</URL>
			</Remediation>
		</Remediations>
	</Vulnerability>
</cvrfdoc>