nginx: Remote code execution — GLSA 202105-38

A vulnerability in nginx could lead to remote code execution.

Affected packages

www-servers/nginx on all architectures
Affected versions < 1.21.0
Unaffected versions >= 1.20.1
>= 1.21.0

Background

nginx is a robust, small, and high performance HTTP and reverse proxy server.

Description

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.

Resolution

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"
 

References

Release date
May 26, 2021

Latest revision
May 26, 2021: 1

Severity
high

Exploitable
remote

Bugzilla entries