Lucene search

K
archlinuxArchLinuxASA-202106-48
HistoryJun 22, 2021 - 12:00 a.m.

[ASA-202106-48] nginx-mainline: arbitrary code execution

2021-06-2200:00:00
security.archlinux.org
228

7.7 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

LOW

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

6.8 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

0.582 Medium

EPSS

Percentile

97.7%

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 : https://security.archlinux.org/AVG-1987

Summary

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

Resolution

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.

Workaround

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

Description

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.

Impact

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

References

https://www.x41-dsec.de/lab/advisories/x41-2021-002-nginx-resolver-copy/
https://mailman.nginx.org/pipermail/nginx-announce/2021/000300.html
http://nginx.org/download/patch.2021.resolver.txt
https://github.com/nginx/nginx/commit/7199ebc203f74fd9e44595474de6bdc41740c5cf
https://security.archlinux.org/CVE-2021-23017

OSVersionArchitecturePackageVersionFilename
ArchLinuxanyanynginx-mainline< 1.21.0-1UNKNOWN

7.7 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

LOW

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

6.8 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

0.582 Medium

EPSS

Percentile

97.7%