Pupnp
pupnp: Denial of service via blocking DNS resolution in parse_uri()/GENA callback parsing
pupnp is an SDK for development of UPnP device and control point applications. Prior to 22.0.4, parse_hostport in upnp/src/genlib/net/uri/uri.c synchronously calls getaddrinfo while parse_uri is processing attacker-supplied hostnames from inbound HTTP request targets in upnp/src/genlib/net/http/httpparser.c and GENA SUBSCRIBE CALLBACK headers handled by create_url_list in upnp/src/gena/gena_device.c. A remote unauthenticated peer can choose a slow or nonresponsive hostname and block a bounded miniserver worker for the resolver timeout, allowing a small number of requests to exhaust the thread pool and deny UPnP service. This issue is fixed in 22.0.4.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 22.0.4
Fixed in 22.0.4
Mitigation
Upgrade pupnp to 22.0.4 or later.
References
- Vendor advisory github.com/pupnp/pupnp/security/advisories/GHS…
- Patch github.com/pupnp/pupnp/commit/5dba8070b4d64d97…
- Release notes github.com/pupnp/pupnp/releases/tag/release-22…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.