CVE-2021-23017·Nginx vulnerability
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.
- Severity
- critical
- Software
- Nginx
- Fixed in
- 1.18.0-6.1
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 53% — in the top 1% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
Until: 1.18.0-6.1
Fixed in: 1.18.0-6.1
How to fix this CVE
Update Nginx to version 1.18.0-6.1 or later to patch a critical DNS resolver vulnerability that allows remote attackers to trigger a single-byte memory overwrite via crafted UDP packets. This flaw can lead to worker process crashes and potential privilege escalation. Prioritize this update immediately as public exploits are available.
sudo dnf update nginxDefensia detects this vulnerability
How to check if you are affected
- Check installed Nginx version: nginx -v
- Verify DNS resolver is enabled in Nginx config: grep -r 'resolver' /etc/nginx/
- Search Nginx error logs for segmentation faults or worker crashes: grep -i 'segmentation\|worker.*crashed' /var/log/nginx/error.log
- Confirm update by running nginx -v again and verifying version is 1.18.0-6.1 or later
FAQ
What is CVE-2021-23017?
A critical vulnerability in Nginx's DNS resolver component that permits attackers sending forged DNS responses to corrupt memory by exactly one byte, destabilizing worker processes and potentially enabling code execution.
Is CVE-2021-23017 being actively exploited?
While not listed in CISA's actively exploited vulnerabilities catalog, public proof-of-concept exploits are available, making active exploitation a realistic threat.
What versions of Nginx are affected by CVE-2021-23017?
All versions prior to and including 1.18.0-6.1 are vulnerable. Installations using the DNS resolver feature are at highest risk.
How do I check if my server is vulnerable to CVE-2021-23017?
Run 'nginx -v' to get your version and compare against 1.18.0-6.1. Then check if DNS resolution is configured: 'grep resolver /etc/nginx/*.conf /etc/nginx/conf.d/*.conf' — if results appear, your setup is exposed.
Does Defensia detect CVE-2021-23017?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Nginx is installed on a monitored server, CVE-2021-23017 will appear in your dashboard with remediation steps.
Related Nginx CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-23017. Free for 1 server.
Get started free