# CVE-2026-57487: libupnp chunked HTTP bodies can bypass g_maxContentLength and be fully buffered

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-16T15:33:56.394Z
- Modified: 2026-10-23T16:07:21.000Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

pupnp is an SDK for development of UPnP device and control point applications. Prior to 2.0.2, Transfer-Encoding: chunked causes the HTTP parser in upnp/src/genlib/net/http/httpparser.c to leave parser->content_length at zero while parser_parse_chunky_entity and parser_parse_chunky_body accumulate decoded bytes in parser->msg.entity. The g_maxContentLength checks in http_RecvMessage in upnp/src/genlib/net/http/httpreadwrite.c therefore reject oversized numeric Content-Length bodies but do not enforce the same limit on decoded chunked bodies. A remote peer that can reach a SOAP, GENA, miniserver, or control-point HTTP response path can make the process buffer an entity larger than the configured maximum, causing resource exhaustion and denial of service. This issue is fixed in 2.0.2.

(As written by CVE List.)

## Affected

- pupnp pupnp: < 2.0.2
- pupnp_project pupnp: before 2.0.2

## References

- <https://github.com/pupnp/pupnp/security/advisories/GHSA-gcj7-j9f7-q84c> (exploit, vendor-advisory)
- <https://github.com/pupnp/pupnp/commit/9ff9bc583ad8ee4ba022634434a7b71db9bd96e1> (patch)
- <https://github.com/pupnp/pupnp/releases/tag/release-2.0.2> (release-notes)

## Sources

- CVE List: [CVE-2026-57487](https://www.cve.org/CVERecord?id=CVE-2026-57487), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2026-57487](https://nvd.nist.gov/vuln/detail/CVE-2026-57487), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-57487 · Whole record: https://cve.day/CVE-2026-57487.json · Rebuilt by cve.day 2026-11-25T22:59:45.064Z
