cbcvebase.
CVE-2021-23017
published 2021-06-01

CVE-2021-23017: 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…

PriorityP272high7.7CVSS 3.1
AVNACHPRNUINSUCHIHAL
EXPLOIT
EPSS
53.46%
98.9th percentile
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.

Affected

31 ranges· showing 25
VendorProductVersion rangeFixed in
debiannginx< nginx 1.18.0-6.1 (bookworm)nginx 1.18.0-6.1 (bookworm)
f5nginx
f5nginx>= 0 < 1.18.0-6.11.18.0-6.1
f5nginx>= 0 < 1.18.0-6.11.18.0-6.1
f5nginx>= 0 < 1.18.0-6.11.18.0-6.1
f5nginx>= 0 < 1.18.0-6.11.18.0-6.1
f5nginx>= 0.6.18 < 1.20.11.20.1
fedoraprojectfedora
fedoraprojectfedora
msrccm1_nginx_1.20.1-1_on_cbl_mariner_1.0
openrestyopenresty< 1.19.3.21.19.3.2
oracleblockchain_platform< 21.1.221.1.2
oraclecommunications_control_plane_monitor
oraclecommunications_control_plane_monitor
oraclecommunications_control_plane_monitor
oraclecommunications_control_plane_monitor
oraclecommunications_fraud_monitor3.4 – 4.4
oraclecommunications_operations_monitor
oraclecommunications_operations_monitor
oraclecommunications_operations_monitor
oraclecommunications_operations_monitor
oraclecommunications_session_border_controller
oraclecommunications_session_border_controller
oracleenterprise_communications_broker
oracleenterprise_session_border_controller

Detection & IOCsextracted from sources · hover to see the quote

port53/UDP
bytes
\x81\x80\x00\x01\x00\x01\x00\x00\x00\x00
bytes
\xC0\x0C\x00\x05\x00\x01\x00\x00\x0E\x10
bytes
\x00\x0B\x18\x41\x41\x41\x41\x41\x41\x41
  • The exploit requires ARP poisoning to intercept DNS UDP traffic between the nginx worker and its configured DNS resolver, then injects a crafted DNS response with a malicious CNAME pointer (\xC0\x04) to trigger a 1-byte memory overwrite. Detect ARP spoofing on the network segment hosting the nginx resolver.
  • The attack forges UDP packets from the DNS server port 53 toward the nginx worker. Monitor for spoofed UDP/53 responses containing oversized or malformed CNAME records with compressed pointer offsets (\xC0\x0C, \xC0\x04) and large label lengths (\x18 = 24 bytes) in DNS answers.
  • The exploit drops forwarded UDP/53 packets via iptables to prevent legitimate DNS responses from reaching nginx, ensuring only the crafted response is processed. Detect unexpected iptables FORWARD DROP rules on UDP port 53 on hosts in the network path.
  • Vulnerability affects nginx versions 0.6.18 through 1.20.0 (and up to 1.20.1 per F5 advisory) when the resolver directive is configured. Audit nginx configurations for active resolver directives and prioritize patching instances in that version range.
  • The vulnerability is only exploitable when nginx is configured to use a DNS resolver. Identify and monitor all nginx deployments with the 'resolver' directive enabled as the attack surface.
  • ·The vulnerability is only exploitable when nginx has a resolver directive configured. Deployments without a resolver directive are not affected.
  • ·The attacker must be able to forge UDP packets from the DNS server (e.g., via ARP poisoning or network-level MITM), meaning the attack is most feasible from within the same network segment as the nginx resolver.

CVSS provenance

nvdv3.17.7HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv7.7HIGH
vendor_oracle9.8HIGH
vendor_debian7.7HIGH
vendor_msrc7.7HIGH
vendor_redhat7.7HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.