{"id":"CVE-2026-57487","aliases":["DEBIAN-CVE-2026-57487","EUVD-2026-102929","GHSA-gcj7-j9f7-q84c","UBUNTU-CVE-2026-57487"],"status":"published","title":"libupnp chunked HTTP bodies can bypass g_maxContentLength and be fully buffered","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-\u003econtent_length at zero while parser_parse_chunky_entity and parser_parse_chunky_body accumulate decoded bytes in parser-\u003emsg.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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.0041,"percentile":0.35501,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-770"],"published":"2026-10-16T15:33:56Z","modified":"2026-10-28T20:17:35Z","fixes":[{"ecosystem":"Debian:14","package":"pupnp","fixed_in":["1:22.1.8-2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:13","package":"pupnp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.14.20-1","1:1.14.20-1+deb13u1","1:1.14.23-1","1:1.14.24-1","1:1.14.24-2","1:1.14.24-3","1:1.14.25-1","1:1.14.31-1","1:1.18.0-1","1:1.18.4-1","1:1.18.5-1","1:22.1.8-1","1:22.1.8-2"]},{"source":"osv","ecosystem":"Debian:14","package":"pupnp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:22.1.8-2"}]}],"versions":["1:1.14.20-1","1:1.14.23-1","1:1.14.24-1","1:1.14.24-2","1:1.14.24-3","1:1.14.25-1","1:1.14.31-1","1:1.18.0-1","1:1.18.4-1","1:1.18.5-1","1:22.1.8-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"libupnp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.6.19+git20141001-1","1:1.6.19+git20141001-1ubuntu1","1:1.6.19+git20160116-1","1:1.6.19+git20160116-1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"mediatomb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.12.1-47-g7ab7616-1ubuntu1","0.12.1-47-g7ab7616-1ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libupnp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.6.22-1","1:1.6.24-1","1:1.6.24-2","1:1.6.24-3","1:1.6.24-4"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"pupnp-1.8","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.8.2-2","1:1.8.2-3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"pupnp-1.8","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.8.4-2ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"pupnp-1.8","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.8.4-2ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"pupnp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.14.18-1ubuntu1","1:1.14.18-1.1ubuntu1","1:1.14.18-1.1ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"pupnp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.14.25-1ubuntu1","1:1.14.31-1ubuntu1","1:1.14.31-1ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"pupnp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.14.24-3ubuntu1","1:1.14.25-1ubuntu1"]}],"products":[{"vendor":"pupnp","product":"pupnp"},{"vendor":"pupnp_project","product":"pupnp"}],"references":[{"url":"https://github.com/pupnp/pupnp/security/advisories/GHSA-gcj7-j9f7-q84c","tags":["x_refsource_CONFIRM","Exploit","Vendor Advisory","advisory","report"]},{"url":"https://github.com/pupnp/pupnp/commit/9ff9bc583ad8ee4ba022634434a7b71db9bd96e1","tags":["x_refsource_MISC","Patch","fix","report"]},{"url":"https://github.com/pupnp/pupnp/releases/tag/release-2.0.2","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57487.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57487","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-57487","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-57487","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-57487","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-57487","title":"libupnp chunked HTTP bodies can bypass g_maxContentLength and be fully buffered","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-\u003econtent_length at zero while parser_parse_chunky_entity and parser_parse_chunky_body accumulate decoded bytes in parser-\u003emsg.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.","status":"published","published":"2026-10-16T15:33:56.394Z","modified":"2026-10-21T02:21:37.115Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T13:43:56.024247Z"}],"euvd":[{"id":"EUVD-2026-102929","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-\u003econtent_length at zero while parser_parse_chunky_entity and parser_parse_chunky_body accumulate decoded bytes in parser-\u003emsg.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.","status":"published","published":"2026-10-16T15:33:56Z","modified":"2026-10-21T02:21:37Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:59:40.989797Z"}],"nvd":[{"id":"CVE-2026-57487","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-\u003econtent_length at zero while parser_parse_chunky_entity and parser_parse_chunky_body accumulate decoded bytes in parser-\u003emsg.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.","status":"published","published":"2026-10-16T16:18:44.663Z","modified":"2026-10-23T16:07:21Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T14:13:00.123071Z"}],"osv":[{"id":"CVE-2026-57487","title":"libupnp chunked HTTP bodies can bypass g_maxContentLength and be fully buffered","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-\u003econtent_length at zero while parser_parse_chunky_entity and parser_parse_chunky_body accumulate decoded bytes in parser-\u003emsg.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.","status":"published","published":"2026-10-16T15:33:56.394Z","modified":"2026-10-28T10:57:56.658707621Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T15:45:12.016252Z"},{"id":"DEBIAN-CVE-2026-57487","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-\u003econtent_length at zero while parser_parse_chunky_entity and parser_parse_chunky_body accumulate decoded bytes in parser-\u003emsg.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.","status":"published","published":"2026-10-16T16:18:44.663Z","modified":"2026-10-24T09:47:32.951712028Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:57.590991Z"},{"id":"UBUNTU-CVE-2026-57487","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-\u003econtent_length at zero while parser_parse_chunky_entity and parser_parse_chunky_body accumulate decoded bytes in parser-\u003emsg.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.","status":"published","published":"2026-10-16T16:18:00Z","modified":"2026-10-28T20:17:35.175808717Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:56:41.911783Z"}]}}
