← Vulnerability feed

Vulnerability record · CVE-2021-23017 · published 1 June 2021

CVE-2021-23017: nginx resolver off-by-one allows 1-byte memory overwrite via forged DNS response

F5 · Nginx

The nginx resolver contains an off-by-one error (CWE-193) that lets an attacker who can forge UDP packets from the configured DNS server trigger a 1-byte memory overwrite. This can crash the worker process and may have other impacts. The flaw is remotely reachable but requires the ability to spoof DNS responses, which raises the attack complexity.

7.7 CVSS 3.1 High EPSS 53% · top 1.0% CWE-193 · CWE-193
7.7CVSS 3.1 base score, v2 6.8
53%EPSS exploitation probability, 30 days
NoNot in CISA KEV
13Affected product versions listed by NVD
28References
17 Jun 2026Last modified by NVD

Description

A security issue in nginx resolver was identified, which might allow an attacker who is able to forge UDP packets from the DNS server to cause 1-byte memory overwrite, resulting in worker process crash or potential other impact.

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: medium.

high priorityHigh CVSS (7.7) and very high EPSS percentile (98.9) indicate significant risk, though exploitation requires DNS spoofing capability and the flaw is not in CISA KEV.

What it is

The nginx resolver contains an off-by-one error (CWE-193) that lets an attacker who can forge UDP packets from the configured DNS server trigger a 1-byte memory overwrite. This can crash the worker process and may have other impacts. The flaw is remotely reachable but requires the ability to spoof DNS responses, which raises the attack complexity.

Impact

An attacker can crash nginx worker processes, causing denial of service, and the 1-byte overwrite may enable further memory corruption. The CVSS vector rates confidentiality and integrity impact as high, though the description only confirms crash and 'potential other impact'.

Attack surface

Reached over the network through the DNS resolver path when nginx is configured to resolve names; no authentication or user interaction is required. The attacker must be positioned to forge UDP packets from the DNS server, which is reflected in the high attack complexity rating.

Exploitation

CVE-2021-23017 is not listed in CISA KEV, but EPSS shows a 30-day probability of 0.53461 (98.9th percentile), indicating high predicted exploitation activity. References include a vendor patch advisory and a Packet Storm denial-of-service writeup, but no public exploit code is confirmed in the record.

What to do

  • Upgrade nginx to a version containing the resolver fix as directed by the vendor advisory (mailman.nginx.org/pipermail/nginx-announce/2021/000300.html).
  • Apply vendor patches for downstream products (F5, OpenResty, Fedora, NetApp, Oracle) that bundle the affected nginx resolver.
  • Restrict or disable DNS resolution in nginx configurations that do not require it, reducing exposure to forged DNS responses.
  • Where possible, use DNS over TCP or trusted resolver paths that are harder to spoof than plain UDP.
  • Monitor for unexpected nginx worker crashes and investigate resolver-related failures.

Detection

  • Monitor nginx error logs for worker process crashes or resolver-related errors that may indicate exploitation attempts.
  • Watch for anomalous DNS response traffic to nginx hosts, especially spoofed or unexpected UDP packets from DNS servers.
  • Use host-based crash monitoring to detect repeated nginx worker terminations.
  • Correlate nginx version inventory against the vendor advisory to identify unpatched instances.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

13 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://mailman.nginx.org/pipermail/nginx-announce/2021/000300.html Mailing ListPatchVendor Advisory
http://packetstormsecurity.com/files/167720/Nginx-1.20.0-Denial-Of-Service.html Third Party AdvisoryVDB Entry
https://lists.apache.org/thread.html/r37e6b2165f7c910d8e15fd54f4697857619ad2625f56583802004009%40%3Cnotifications.apisix
https://lists.apache.org/thread.html/r4d4966221ca399ce948ef34884652265729d7d9ef8179c78d7f17e7f%40%3Cnotifications.apisix
https://lists.apache.org/thread.html/r6fc5c57b38e93e36213e9a18c8a4e5dbd5ced1c7e57f08a1735975ba%40%3Cnotifications.apisix
https://lists.apache.org/thread.html/rf232eecd47fdc44520192810560303073cefd684b321f85e311bad31%40%3Cnotifications.apisix
https://lists.apache.org/thread.html/rf318aeeb4d7a3a312734780b47de83cefb7e6995da0b2cae5c28675c%40%3Cnotifications.apisix
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7SFVYHC7OXTEO4SMBWXDVK6
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GNKOP2JR5L7KCIZTJRZDCUP
https://security.netapp.com/advisory/ntap-20210708-0006/ Third Party Advisory
https://support.f5.com/csp/article/K12331123%2C
https://www.oracle.com/security-alerts/cpuapr2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.html PatchThird Party Advisory
http://mailman.nginx.org/pipermail/nginx-announce/2021/000300.html Mailing ListPatchVendor Advisory
http://packetstormsecurity.com/files/167720/Nginx-1.20.0-Denial-Of-Service.html Third Party AdvisoryVDB Entry
https://lists.apache.org/thread.html/r37e6b2165f7c910d8e15fd54f4697857619ad2625f56583802004009%40%3Cnotifications.apisix
https://lists.apache.org/thread.html/r4d4966221ca399ce948ef34884652265729d7d9ef8179c78d7f17e7f%40%3Cnotifications.apisix
https://lists.apache.org/thread.html/r6fc5c57b38e93e36213e9a18c8a4e5dbd5ced1c7e57f08a1735975ba%40%3Cnotifications.apisix
https://lists.apache.org/thread.html/rf232eecd47fdc44520192810560303073cefd684b321f85e311bad31%40%3Cnotifications.apisix
https://lists.apache.org/thread.html/rf318aeeb4d7a3a312734780b47de83cefb7e6995da0b2cae5c28675c%40%3Cnotifications.apisix
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7SFVYHC7OXTEO4SMBWXDVK6
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GNKOP2JR5L7KCIZTJRZDCUP
https://security.netapp.com/advisory/ntap-20210708-0006/ Third Party Advisory
https://support.f5.com/csp/article/K12331123%2C
https://www.oracle.com/security-alerts/cpuapr2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.html PatchThird Party Advisory

Track CVE-2021-23017 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2021-44026Roundcube Webmail SQL injection via search parametersRoundcube Webmail before 1.3.17 and 1.4.x before 1.4.12 is prone to SQL injection through the search or search_params input. The flaw is remotely rea…KEVEPSS 70%analysed9.8CVE-2021-42013Apache HTTP Server path traversal and RCE via incomplete fixThe fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient, leaving a path traversal flaw that lets attackers map URLs to files outside…KEVEPSS 100%analysed9.8CVE-2021-41773Apache HTTP Server 2.4.49 path traversal and RCEA path normalization flaw introduced in Apache HTTP Server 2.4.49 lets attackers map URLs to files outside directories configured by Alias-like direc…KEVEPSS 100%analysed9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed9.8CVE-2021-1871Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions. It affects macOS Big Sur, Catalina, Mojave, iOS and iPadOS, and a remote at…KEVEPSS 7.0%analysed9.8CVE-2020-16846SaltStack Salt API shell injection via crafted web requestsSaltStack Salt through 3002 is vulnerable to OS command injection when the SSH client is enabled and crafted web requests are sent to the Salt API. T…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2021-23017), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.