Skip to main content
Vulnerability Database/CVE-2026-77630

CVE-2026-77630: Pupnp_project Pupnp DOS Vulnerability

CVE-2026-77630 is a denial of service flaw in Pupnp_project Pupnp that allows remote attackers to exhaust thread pools and deny UPnP service. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-77630 Overview

CVE-2026-77630 is a denial of service vulnerability in pupnp, a widely used SDK for building Universal Plug and Play (UPnP) device and control point applications. Versions prior to 22.0.4 perform synchronous DNS resolution through getaddrinfo while parsing attacker-supplied hostnames in inbound HTTP request targets and GENA SUBSCRIBE callback headers. A remote unauthenticated attacker can supply slow or unresponsive hostnames to block miniserver worker threads for the full resolver timeout. A small volume of requests exhausts the bounded thread pool and halts UPnP service availability. The flaw is tracked as [CWE-400] Uncontrolled Resource Consumption.

Critical Impact

Remote unauthenticated attackers can exhaust the pupnp miniserver thread pool with a small number of crafted requests, causing complete denial of UPnP service.

Affected Products

  • pupnp versions prior to 22.0.4
  • Applications and devices embedding the pupnp SDK for UPnP functionality
  • GENA event subscription endpoints exposed by pupnp-based devices

Discovery Timeline

  • 2026-10-16 - CVE-2026-77630 published to NVD
  • 2026-10-20 - Last updated in NVD database

Technical Details for CVE-2026-77630

Vulnerability Analysis

The vulnerability resides in the URI parsing path of the pupnp library. The function parse_hostport in upnp/src/genlib/net/uri/uri.c invokes getaddrinfo synchronously while parse_uri processes hostnames received over the network. Two code paths trigger this behavior with untrusted input: inbound HTTP request targets handled in upnp/src/genlib/net/http/httpparser.c, and GENA SUBSCRIBE callback URLs processed by create_url_list in upnp/src/gena/gena_device.c.

Because the miniserver uses a bounded worker thread pool, each request that references an unresponsive hostname occupies a worker for the duration of the DNS resolver timeout. An attacker needs only a handful of concurrent requests pointing at a sinkhole or non-responsive authoritative nameserver to saturate every worker and stall legitimate UPnP traffic.

Root Cause

The root cause is the coupling of URI parsing with blocking network I/O. Hostname resolution occurs inside the parser rather than being deferred to post-validation stages. There is no timeout bound on the resolver call that is independent of the system resolver configuration, and parsing is executed on the same bounded thread pool that services all inbound requests.

Attack Vector

An unauthenticated remote attacker sends crafted HTTP requests or GENA SUBSCRIBE headers containing hostnames under their control that intentionally delay DNS responses. Each request blocks a worker thread for the full resolver timeout window. Repeating this at low volume exhausts the pool and denies service to other UPnP peers.

c
// Patch excerpt: upnp/src/gena/gena_device.c
// Reject parsed URLs whose address family was not resolved,
// avoiding reliance on blocking resolution during GENA callback parsing.
            if (((return_code = parse_uri(&URLS->buff[i + 1],
                      URLS->size - i + 1,
                      &temp)) == HTTP_SUCCESS) &&
                (temp.hostport.text.size != 0) &&
                (temp.hostport.IPaddress.ss_family !=
                    (sa_family_t)AF_UNSPEC)) {
                URLcount++;
            } else {
                if (return_code == UPNP_E_OUTOF_MEMORY) {
// Source: https://github.com/pupnp/pupnp/commit/5dba8070b4d64d976f8e6fc13f1f301befebe7d2
c
// Patch excerpt: upnp/src/genlib/net/http/httpreadwrite.c
// Resolution is moved out of the parser and performed explicitly,
// returning UPNP_E_INVALID_URL on failure rather than blocking parsing.
    if (fixed_url->hostport.text.size == (size_t)0) {
        return UPNP_E_INVALID_URL;
    }
    if (resolve_hostport(&fixed_url->hostport) != HTTP_SUCCESS) {
        return UPNP_E_INVALID_URL;
    }
    /* set pathquery to "/" if it is empty */
    if (fixed_url->pathquery.size == (size_t)0) {
        fixed_url->pathquery.buff = temp_path;
// Source: https://github.com/pupnp/pupnp/commit/5dba8070b4d64d976f8e6fc13f1f301befebe7d2

Detection Methods for CVE-2026-77630

Indicators of Compromise

  • Inbound HTTP requests to UPnP miniserver ports containing URIs with uncommon or externally hosted hostnames
  • GENA SUBSCRIBE requests whose CALLBACK header references hostnames that resolve slowly or time out
  • Sustained saturation of pupnp worker threads coinciding with repeated DNS queries to attacker-controlled zones

Detection Strategies

  • Monitor DNS egress from devices running pupnp for repeated queries to low-reputation or newly registered domains originating from the UPnP service process
  • Alert on growth in the number of concurrent in-flight requests to UPnP ports with elevated per-request latency
  • Flag GENA SUBSCRIBE requests whose CALLBACK URL points to hostnames outside the expected control-point network

Monitoring Recommendations

  • Track response-time percentiles for UPnP miniserver endpoints to detect worker-pool saturation early
  • Log and review failed hostname resolutions tied to inbound URI parsing events
  • Correlate pupnp process CPU and thread utilization with external DNS lookup volume

How to Mitigate CVE-2026-77630

Immediate Actions Required

  • Upgrade pupnp to version 22.0.4 or later across all devices and products embedding the SDK
  • Inventory firmware, routers, and media servers that bundle pupnp and prioritize updates for internet-exposed instances
  • Restrict exposure of UPnP services to trusted network segments until patched builds are deployed

Patch Information

The fix is included in pupnp release 22.0.4. The upstream commit 5dba8070b4d64d976f8e6fc13f1f301befebe7d2 decouples DNS resolution from URI parsing and rejects URLs whose address family was not resolved. Additional details are available in the GitHub Security Advisory GHSA-46ph-jff5-5h77 and the GitHub Release 22.0.4 notes. The issue was identified through OSS-Fuzz Issue #531780528.

Workarounds

  • Block inbound UPnP traffic (typically TCP/UDP 1900 and the device-chosen miniserver port) at the network perimeter
  • Place pupnp-based devices behind firewalls that deny outbound DNS to arbitrary resolvers, forcing resolution through controlled infrastructure with tight timeouts
  • Where feasible, disable GENA event subscriptions from untrusted peers until an upgrade is applied
bash
# Example iptables rules to limit exposure of a pupnp miniserver
# Replace eth0 and 192.0.2.0/24 with the trusted management subnet.
iptables -A INPUT -i eth0 -p udp --dport 1900 -s 192.0.2.0/24 -j ACCEPT
iptables -A INPUT -i eth0 -p udp --dport 1900 -j DROP
iptables -A INPUT -i eth0 -p tcp --dport 49152:65535 -s 192.0.2.0/24 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 49152:65535 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.