Amazon Linux AMI update for nginx



Published: 2021-06-02 | Updated: 2022-07-31
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-23017
CWE-ID CWE-193
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
Amazon Linux AMI
Operating systems & Components / Operating system

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Off-by-one

EUVDB-ID: #VU53543

Risk: High

CVSSv3.1: 7.3 [CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2021-23017

CWE-ID: CWE-193 - Off-by-one Error

Exploit availability: Yes

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to an off-by-one error within the ngx_resolver_copy() function when processing DNS responses. A remote attacker can trigger an off-by-one error, write a dot character (‘.’, 0x2E) out of bounds in a heap allocated buffer and execute arbitrary code on the system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

The vulnerability can be triggered by a DNS response in reply to a DNS request from nginx when the resolver primitive is configured. A specially crafted packet allows overwriting the least significant byte of next heap chunk metadata with 0x2E.

Mitigation

Update the affected packages:

i686:
    nginx-mod-stream-1.18.0-1.43.amzn1.i686
    nginx-mod-mail-1.18.0-1.43.amzn1.i686
    nginx-mod-http-image-filter-1.18.0-1.43.amzn1.i686
    nginx-mod-http-perl-1.18.0-1.43.amzn1.i686
    nginx-debuginfo-1.18.0-1.43.amzn1.i686
    nginx-mod-http-xslt-filter-1.18.0-1.43.amzn1.i686
    nginx-1.18.0-1.43.amzn1.i686
    nginx-all-modules-1.18.0-1.43.amzn1.i686
    nginx-mod-http-geoip-1.18.0-1.43.amzn1.i686

src:
    nginx-1.18.0-1.43.amzn1.src

x86_64:
    nginx-1.18.0-1.43.amzn1.x86_64
    nginx-mod-http-image-filter-1.18.0-1.43.amzn1.x86_64
    nginx-debuginfo-1.18.0-1.43.amzn1.x86_64
    nginx-mod-http-perl-1.18.0-1.43.amzn1.x86_64
    nginx-mod-http-xslt-filter-1.18.0-1.43.amzn1.x86_64
    nginx-mod-stream-1.18.0-1.43.amzn1.x86_64
    nginx-mod-mail-1.18.0-1.43.amzn1.x86_64
    nginx-mod-http-geoip-1.18.0-1.43.amzn1.x86_64
    nginx-all-modules-1.18.0-1.43.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

External links

http://alas.aws.amazon.com/ALAS-2021-1507.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



###SIDEBAR###