Skip to content

Known exploited

CVE-2021-45046 on Amazon Linux 2: affected packages and fixed versions

32 packages on Amazon Linux 2 are affected by CVE-2021-45046 (Apache Log4j2 Deserialization of Untrusted Data Vulnerability). A host is fixed once the package is at the version below or newer.

This vulnerability is known to be exploited. CISA added it to its catalog on May 1, 2023, with a remediation date of May 22, 2023 for US federal agencies. It has been used in ransomware campaigns.

Affected packages

PackageFixed inSeverityAdvisory
aws-kinesis-agent 2.0.4-1.amzn2 Critical ALAS2-2021-1730
java-1.7.0-openjdk 1:1.7.0.261-2.6.22.2.amzn2.0.2 Critical ALAS2-2021-1731
java-1.7.0-openjdk-accessibility 1:1.7.0.261-2.6.22.2.amzn2.0.2 Critical ALAS2-2021-1731
java-1.7.0-openjdk-demo 1:1.7.0.261-2.6.22.2.amzn2.0.2 Critical ALAS2-2021-1731
java-1.7.0-openjdk-devel 1:1.7.0.261-2.6.22.2.amzn2.0.2 Critical ALAS2-2021-1731
java-1.7.0-openjdk-headless 1:1.7.0.261-2.6.22.2.amzn2.0.2 Critical ALAS2-2021-1731
java-1.7.0-openjdk-javadoc 1:1.7.0.261-2.6.22.2.amzn2.0.2 Critical ALAS2-2021-1731
java-1.7.0-openjdk-src 1:1.7.0.261-2.6.22.2.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-accessibility 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-accessibility-debug 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-debug 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-demo 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-demo-debug 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-devel 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-devel-debug 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-headless 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-headless-debug 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-javadoc 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-javadoc-debug 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-javadoc-zip 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-javadoc-zip-debug 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-src 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-1.8.0-openjdk-src-debug 1:1.8.0.312.b07-1.amzn2.0.2 Critical ALAS2-2021-1731
java-11-amazon-corretto 1:11.0.13+8-2.amzn2 Critical ALAS2-2021-1731
java-11-amazon-corretto-headless 1:11.0.13+8-2.amzn2 Critical ALAS2-2021-1731
java-11-amazon-corretto-javadoc 1:11.0.13+8-2.amzn2 Critical ALAS2-2021-1731
java-17-amazon-corretto 1:17.0.1+12-3.amzn2.1 Critical ALAS2-2021-1731
java-17-amazon-corretto-devel 1:17.0.1+12-3.amzn2.1 Critical ALAS2-2021-1731
java-17-amazon-corretto-headless 1:17.0.1+12-3.amzn2.1 Critical ALAS2-2021-1731
java-17-amazon-corretto-javadoc 1:17.0.1+12-3.amzn2.1 Critical ALAS2-2021-1731
java-17-amazon-corretto-jmods 1:17.0.1+12-3.amzn2.1 Critical ALAS2-2021-1731

Check a host

Show the installed versions and compare with the table above:

rpm -q aws-kinesis-agent java-1.7.0-openjdk java-1.7.0-openjdk-accessibility java-1.7.0-openjdk-demo

Update to the fixed build:

sudo yum update aws-kinesis-agent java-1.7.0-openjdk java-1.7.0-openjdk-accessibility java-1.7.0-openjdk-demo

The fixed version may look older than the upstream release that fixed the bug. Amazon Linux 2 carries the fix in the version it already ships.

What it is

It was found that the fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allows attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC) to craft malicious input data using a JNDI Lookup pattern resulting in a denial of service (DOS) attack. Log4j 2.15.0 makes a best-effort attempt to restrict JNDI LDAP lookups to localhost by default. Log4j 2.16.0 fixes this issue by removing support for message lookup patterns and disabling JNDI functionality by default.

CVE-2021-45046 on other releases

Know which of your hosts are affected

SysWard's agent reports the packages installed on each server and matches them against each distribution's own security data, so you see which hosts still have a vulnerable build, and can patch them from the same screen. Free for five servers.

Get started free Check one server now, no signup