UBUNTU-CVE-2025-46728

Source
https://ubuntu.com/security/CVE-2025-46728
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-46728.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2025-46728
Related
Published
2025-05-06T01:15:00Z
Modified
2025-05-07T16:35:54Z
Summary
[none]
Details

cpp-httplib is a C++ header-only HTTP/HTTPS server and client library. Prior to version 0.20.1, the library fails to enforce configured size limits on incoming request bodies when Transfer-Encoding: chunked is used or when no Content-Length header is provided. A remote attacker can send a chunked request without the terminating zero-length chunk, causing uncontrolled memory allocation on the server. This leads to potential exhaustion of system memory and results in a server crash or unresponsiveness. Version 0.20.1 fixes the issue by enforcing limits during parsing. If the limit is exceeded at any point during reading, the connection is terminated immediately. A short-term workaround through a Reverse Proxy is available. If updating the library immediately is not feasible, deploy a reverse proxy (e.g., Nginx, HAProxy) in front of the cpp-httplib application. Configure the proxy to enforce maximum request body size limits, thereby stopping excessively large requests before they reach the vulnerable library code.

References

Affected packages

Ubuntu:22.04:LTS / cpp-httplib

Package

Name
cpp-httplib
Purl
pkg:deb/ubuntu/cpp-httplib@0.10.3+ds-1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

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

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / cpp-httplib

Package

Name
cpp-httplib
Purl
pkg:deb/ubuntu/cpp-httplib@0.15.3+ds-3?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.14.3+ds-1.1build2
0.15.3+ds-2
0.15.3+ds-3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / cpp-httplib

Package

Name
cpp-httplib
Purl
pkg:deb/ubuntu/cpp-httplib@0.14.3+ds-1.1build2?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

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

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:25.04 / cpp-httplib

Package

Name
cpp-httplib
Purl
pkg:deb/ubuntu/cpp-httplib@0.18.7-1?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.15.3+ds-3
0.16.3+ds-2
0.18.7-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}