CVE-2026-5720
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-5720 is an integer underflow vulnerability in miniupnpd's SOAPAction header parsing that allows remote attackers to cause denial of service or information disclosure. It affects miniupnpd versions prior to 2.3.10 and was disclosed on April 17, 2026, with a patch released in miniupnpd 2.3.10 (March 25, 2026). The vulnerability carries a CVSS v3.1 base score of 9.1 (Critical) and a CVSS v4.0 base score of 7.1 (High) (Github Advisory, bugzilla.redhat.com).

Technical details

The root cause is an integer underflow (CWE-191) combined with an out-of-bounds read (CWE-125) in the ParseHttpHeaders() function within miniupnpd/upnphttp.c. When a malformed SOAPAction header containing only a single quote character is received, the code attempts to strip enclosing quotes by decrementing the parsed length n by 2 without first verifying that n >= 2. This causes n to underflow to a very large unsigned integer value, which is then passed to memchr(), causing the process to scan memory far beyond the allocated HTTP request buffer. The fix, committed as f56bd09, adds a guard condition if(n >= 2) before the quote-stripping logic to prevent the underflow (github.com, Github Advisory).

Impact

Successful exploitation can result in denial of service through process crashes and information disclosure by leaking sensitive data from memory regions adjacent to the HTTP request buffer. Because the out-of-bounds read can expose arbitrary process memory, sensitive configuration data, credentials, or internal state held in memory could be disclosed to an unauthenticated attacker. No integrity impact has been identified, and exploitation does not require authentication or user interaction (Github Advisory, bugzilla.redhat.com).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.054% (17th percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation requires adjacent network access (e.g., LAN or local network segment), which limits the attacker pool compared to fully internet-facing vulnerabilities (Github Advisory).

Exploitation steps

  1. Reconnaissance: Identify hosts on the local network segment running miniupnpd (versions < 2.3.10) by scanning for the UPnP HTTP/SOAP service port (typically TCP 5000 or as configured), using tools such as nmap or UPnP discovery utilities.
  2. Craft malicious HTTP request: Construct an HTTP POST request targeting the miniupnpd SOAP endpoint (e.g., /ctl/IPConn or similar UPnP control URL) with a SOAPAction header containing only a single quote character: SOAPAction: '.
  3. Send the request: Transmit the crafted request from an adjacent network position to the miniupnpd service. No authentication is required.
  4. Trigger integer underflow: The ParseHttpHeaders() function processes the single-quote SOAPAction value, attempts to strip enclosing quotes by computing n -= 2 without bounds checking, causing n to underflow to a large unsigned value.
  5. Out-of-bounds memory read: The underflowed length is passed to memchr(), which scans far beyond the allocated HTTP request buffer, potentially crashing the process (DoS) or returning data from adjacent memory regions (information disclosure) (github.com, Github Advisory).

Indicators of compromise

  • Network: Unusual HTTP POST requests to miniupnpd SOAP control URLs with a SOAPAction header value consisting of a single quote (') or other minimal/malformed values; repeated connection attempts to the UPnP HTTP port from unexpected LAN hosts.
  • Logs: miniupnpd syslog entries showing segmentation faults, abnormal process termination, or repeated restarts; HTTP access logs recording POST requests with anomalous SOAPAction header values.
  • Process: Unexpected crashes or restarts of the miniupnpd process; core dump files generated in the miniupnpd working directory following a segmentation fault.

Mitigation and workarounds

Upgrade miniupnpd to version 2.3.10 or later, which includes the fix for this vulnerability (commit f56bd09) (github.com, Github Advisory). As a workaround prior to patching, implement network segmentation to restrict access to the UPnP/SOAP service port to trusted LAN segments only, preventing untrusted adjacent-network hosts from sending crafted requests. Monitor miniupnpd for unexpected crashes or restarts that may indicate exploitation attempts.

Community reactions

Red Hat tracked the vulnerability via Bugzilla (Bug 2459328) and classified it as high severity, with the Red Hat Product Security team assigned to the issue (bugzilla.redhat.com). The vulnerability was assigned by VulnCheck and published to the GitHub Advisory Database on April 18, 2026. Coverage appeared in Linux-focused security news outlets including pro-linux.de, and the vulnerability was indexed by Tenable Nessus (plugin 307450) shortly after disclosure.

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-72898CRITICAL10
  • NixOS logoNixOS
  • metabase
YesYesAug 10, 2026
CVE-2026-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util-sqlite-debuginfo
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util-odbc
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util-mysql
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management