Apache Log4j Remote Code Execution (Log4Shell)

critical Web App Scanning Plugin ID 113075

Synopsis

Apache Log4j Remote Code Execution (Log4Shell)

Description

Apache Log4j is an open source Java-based logging framework leveraged within numerous Java applications. Apache Log4j versions 2.0-beta9 to 2.15.0 suffer from insufficient protections on message lookup substitutions when dealing with user controlled input. By crafting a malicious string, an attacker could leverage this issue to achieve a remote code execution on the Log4j instance used by the target application.

Solution

Upgrade to version 2.16.0 or later.

See Also

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

https://www.lunasec.io/docs/blog/log4j-zero-day-severity-of-cve-2021-45046-increased/

https://www.lunasec.io/docs/blog/log4j-zero-day/

Plugin Details

Severity: Critical

ID: 113075

Type: remote

Published: 12/11/2021

Updated: 3/6/2024

Scan Template: api, basic, full, log4shell, mcp, pci, scan

Risk Information

VPR

Risk Factor: Critical

Score: 10.0

CVSS v2

Risk Factor: High

Base Score: 9.3

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

CVSS Score Source: CVE-2021-44228

CVSS v3

Risk Factor: Critical

Base Score: 10

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

CVSS Score Source: CVE-2021-44228

Vulnerability Information

CPE: cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/10/2021

Vulnerability Publication Date: 11/14/2021

CISA Known Exploited Vulnerability Due Dates: 12/24/2021, 5/22/2023

Reference Information

CVE: CVE-2021-44228, CVE-2021-45046

CWE: 20, 400, 502, 917

OWASP: 2010-A1, 2010-A4, 2013-A1, 2013-A4, 2013-A9, 2017-A1, 2017-A5, 2017-A8, 2017-A9, 2021-A3, 2021-A6, 2021-A8, 2025-A5, 2025-A6, 2025-A8

WASC: Denial of Service, Improper Input Handling

CAPEC: 10, 101, 104, 108, 109, 110, 120, 13, 135, 136, 14, 147, 153, 182, 197, 209, 22, 23, 230, 231, 24, 250, 261, 267, 273, 28, 3, 31, 34, 42, 43, 45, 46, 47, 473, 492, 51, 52, 53, 586, 588, 6, 63, 64, 67, 7, 71, 72, 73, 76, 78, 79, 8, 80, 81, 83, 84, 85, 88, 9

DISA STIG: APSC-DV-002400, APSC-DV-002560, APSC-DV-002630

HIPAA: 164.306(a)(1), 164.306(a)(2)

ISO: 27001-A.12.6.1, 27001-A.14.2.5

NIST: sp800_53-CM-6b, sp800_53-SC-5, sp800_53-SI-10, sp800_53-SI-10(5)

OWASP API: 2019-API7, 2019-API8, 2023-API8

OWASP ASVS: 4.0.2-14.2.1, 4.0.2-5.1.3, 4.0.2-5.2.5, 4.0.2-5.5.1

PCI-DSS: 3.2-2.2, 3.2-6.2, 3.2-6.5, 3.2-6.5.1