CVE-2021-23017
nginx: Off-by-one in ngx_resolver_copy() when labels are followed by a pointer to a root domain name
Overview
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.
Source: OX vulnerability database
Severity
7.7 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
Weakness: CWE-193
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | nginx | >=0.6.18, <1.20.1 | 1.20.1 |
| Bitnami | nginx-gateway | >=0.6.18, <1.20.1 | 1.20.1 |
Open a package to see all its vulnerabilities.
Operating systems · 37 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | nginx +7 | 1:1.20.1-1.0.1.module+el8.5.0+20483+2c28049e |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nginx | 1.19.3-2.ph4 |
Red Hat 5 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rh-nginx116-nginx +5 | 1:1.16.1-6.el7 | RHSA-2021:2278 |
| 7 | rh-nginx118-nginx +5 | 1:1.18.0-3.el7 | RHSA-2021:2258 |
| 8 (nginx:1.14) | nginx +8 | wont fix | — |
| 8 (nginx:1.16) | nginx +7 | 1:1.16.1-1.module+el8.1.0+11153+6c3a40a9.1 | RHSA-2021:2290 |
| 8 (nginx:1.16) | nginx +7 | 1:1.16.1-1.module+el8.2.0+11154+636e4c3b.1 | RHSA-2021:2290 |
| 8 (nginx:1.16) | nginx +7 | 1:1.16.1-2.module+el8.4.0+11155+68135136.1 | RHSA-2021:2290 |
2 more rows
alma 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 (nginx:1.16) | nginx +7 | 1:1.16.1-2.module_el8.4.0+2470+68135136.1.alma |
| 8 (nginx:1.18) | nginx +7 | 1:1.18.0-3.module_el8.4.0+2472+f736ed63.1.alma |
| 8 (nginx:1.20) | nginx +7 | 1:1.20.1-1.module_el8.5.0+2611+ab304644.alma |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | nginx | 1.20.1-r0 |
| 3.23 | nginx | 1.20.1-r0 |
| 3.24 | nginx | 1.20.1-r0 |
| edge | nginx | 1.20.1-r0 |
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | nginx | 1.14.2-2+deb10u4 |
| 11 | nginx | 1.18.0-6.1 |
| 12 | nginx | 1.18.0-6.1 |
| 13 | nginx | 1.18.0-6.1 |
| 14 | nginx | 1.18.0-6.1 |
| 9 | nginx | 1.10.3-1+deb9u6 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nginx | 1.18.0-6.1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | nginx +2 | 1.21.3-1.4 | openSUSE-SU-2024:11092-1 |
rocky 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | nginx +7 | 1:1.16.1-2.module+el8.4.0+543+efbf198b.1 |
| 8 | nginx +7 | 1:1.18.0-3.module+el8.4.0+544+e40554cf.1 |
| 8 (nginx:1.16) | nginx +7 | 1:1.16.1-2.module+el8.4.0+543+efbf198b.1 |
| 8 (nginx:1.18) | nginx +7 | 1:1.18.0-3.module+el8.4.0+544+e40554cf.1 |
| 8 (nginx:1.20) | nginx +7 | 1:1.20.1-1.module+el8.5.0+729+3f70613e |
| 8 (nginx:1.20) | nginx +7 | 1:1.20.1-1.module+el8.6.0+791+48a2bb9d |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-nginx | 1.18.0-6.1 |
ubuntu 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | nginx | 1.14.0-0ubuntu1.9 |
| 18.04-ESM | nginx | 1.14.0-0ubuntu1.9 |
| 20.04 | nginx | 1.18.0-0ubuntu1.2 |
| 20.04-ESM | nginx | 1.18.0-0ubuntu1.2 |
| 22.04 | nginx | 1.18.0-6ubuntu9 |
References
- mailman.nginx.org http://mailman.nginx.org/pipermail/nginx-announce/2021/000300.html
- packetstormsecurity.com http://packetstormsecurity.com/files/167720/Nginx-1.20.0-Denial-Of-Service.html
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-23017
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1963121
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23017
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2022-0323.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2022:0323
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-23017.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2022-0323.html
- lists.apache.org https://lists.apache.org/thread.html/r37e6b2165f7c910d8e15fd54f4697857619ad2625f56583802004009%40%3Cnotifications.apisix.apache.org%3E
Show all 26 references
- lists.apache.org https://lists.apache.org/thread.html/r4d4966221ca399ce948ef34884652265729d7d9ef8179c78d7f17e7f%40%3Cnotifications.apisix.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/r6fc5c57b38e93e36213e9a18c8a4e5dbd5ced1c7e57f08a1735975ba%40%3Cnotifications.apisix.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/rf232eecd47fdc44520192810560303073cefd684b321f85e311bad31%40%3Cnotifications.apisix.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/rf318aeeb4d7a3a312734780b47de83cefb7e6995da0b2cae5c28675c%40%3Cnotifications.apisix.apache.org%3E
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7SFVYHC7OXTEO4SMBWXDVK6E5IMEYMEE/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GNKOP2JR5L7KCIZTJRZDCUPJTUONMC5I/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-23017
- security.netapp.com https://security.netapp.com/advisory/ntap-20210708-0006/
- support.f5.com https://support.f5.com/csp/article/K12331123%2C
- ubuntu.com https://ubuntu.com/security/notices/USN-4967-1
- ubuntu.com https://ubuntu.com/security/notices/USN-4967-2
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-23017
- www.oracle.com https://www.oracle.com/security-alerts/cpuapr2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpujan2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpuoct2021.html
- www.x41-dsec.de https://www.x41-dsec.de/lab/advisories/x41-2021-002-nginx-resolver-copy/
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.