Apache Log4j < 2.15.0 Remote Code Execution (Nix)

critical Nessus Plugin ID 155999

Synopsis

A package installed on the remote host is affected by a remote code execution vulnerability.

Description

The version of Apache Log4j on the remote host is 2.x < 2.3.1 / 2.4 < 2.12.3 / 2.13 < 2.15.0. It is, therefore, affected by a remote code execution vulnerability in the JDNI parser due to improper log validation. An unauthenticated, remote attacker can exploit this to bypass authentication and execute arbitrary commands.

Log4j 1.x, which reached its End of Life prior to 2016, comes with JMSAppender which will perform a JNDI lookup if enabled in Log4j's configuration file, hence customers should evaluate triggers in 1.x based on the risk that it is EOL and whether JNDI lookups are enabled.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Apache Log4j version 2.3.1 / 2.12.3 / 2.15.0 or later, or apply the vendor mitigation.

Upgrading to the latest versions for Apache Log4j is highly recommended as intermediate versions / patches have known high severity vulnerabilities and the vendor is updating their advisories often as new research and knowledge about the impact of Log4j is discovered. Refer to https://logging.apache.org/log4j/2.x/security.html for the latest versions.

See Also

https://github.com/apache/logging-log4j2/pull/608

https://logging.apache.org/log4j/2.x/security.html

Plugin Details

Severity: Critical

ID: 155999

File Name: apache_log4j_2_15_0.nasl

Version: 1.21

Type: local

Agent: unix

Family: Misc.

Published: 12/10/2021

Updated: 4/15/2022

Configuration: Enable thorough checks

Supported Sensors: Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent

Risk Information

VPR

Risk Factor: Critical

Score: 10

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 8.1

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

Temporal Vector: E:H/RL:OF/RC:C

CVSS Score Source: CVE-2021-44228

CVSS v3

Risk Factor: Critical

Base Score: 10

Temporal Score: 9.5

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

Temporal Vector: E:H/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:oracle:linux:log4j, p-cpe:/a:fedoraproject:fedora:log4j, p-cpe:/a:fermilab:scientific_linux:log4j, p-cpe:/a:novell:opensuse:log4j, p-cpe:/a:redhat:enterprise_linux:log4j

Required KB Items: installed_sw/Apache Log4j, Host/local_checks_enabled

Excluded KB Items: SMB/Registry/Enumerated

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/9/2021

Vulnerability Publication Date: 12/9/2021

CISA Known Exploited Dates: 12/24/2021

Reference Information

CVE: CVE-2021-44228

IAVA: 2021-A-0573, 0001-A-0650