Arch Linux Security Advisory ASA-202106-48

Severity: Medium
Date    : 2021-06-22
CVE-ID  : CVE-2021-23017
Package : nginx-mainline
Type    : arbitrary code execution
Remote  : Yes
Link    :


The package nginx-mainline before version 1.21.0-1 is vulnerable to
arbitrary code execution.


Upgrade to 1.21.0-1.

# pacman -Syu "nginx-mainline>=1.21.0-1"

The problem has been fixed upstream in version 1.21.0.


The issue can be mitigated by removing the "resolver" directive from
the configuration file.


A security issue in nginx resolver was identified, which might allow an
attacker to cause 1-byte memory overwrite by using a specially crafted
DNS response, resulting in worker process crash or, potentially, in
arbitrary code execution.

The issue only affects nginx if the "resolver" directive is used in the
configuration file. Further, the attack is only possible if an attacker
is able to forge UDP packets from the DNS server.


A remote attacker could crash the nginx server, or potentially execute
arbitrary code, using a crafted DNS server response.