GLSA-202105-38 : nginx: Remote code execution

high Nessus Plugin ID 156987

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-202105-38 (nginx: Remote code execution)

It was discovered that nginx did not properly handle DNS responses when “resolver” directive is used.
Impact :

A remote attacker, able to provide DNS responses to a nginx instance, could cause the execution of arbitrary code with the privileges of the process or a Denial of Service condition.
Workaround :

There is no known workaround at this time.

Solution

All nginx users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=www-servers/nginx-1.20.1' All nginx mainline users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=www-servers/nginx-1.21.0:mainline'

See Also

https://security.gentoo.org/glsa/202105-38

Plugin Details

Severity: High

ID: 156987

File Name: gentoo_GLSA-202105-38.nasl

Version: 1.3

Type: local

Published: 1/24/2022

Updated: 9/21/2022

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2021-23017

CVSS v3

Risk Factor: High

Base Score: 7.7

Temporal Score: 6.9

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:gentoo:linux, p-cpe:/a:gentoo:linux:nginx

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/26/2021

Vulnerability Publication Date: 6/1/2021

Reference Information

CVE: CVE-2021-23017

GLSA: 202105-38