CVE-2021-42550 RCE from attacker with configuration edit priviledges through JNDI lookup

Medium 6.6 Published Updated

An attacker with configuration edit privileges can execute arbitrary code via malicious JNDI lookups in Logback.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-42550?

CVE-2021-42550 is a medium-severity code injection vulnerability in Redhat Satellite, published on 16 Dec 2021. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

In logback version 1.2.7 and prior versions, an attacker with the required privileges to edit configurations files could craft a malicious configuration allowing to execute arbitrary code loaded from LDAP servers.

Weakness: CWE-502

Which versions are affected by CVE-2021-42550?

2 open source packages ship an affected version, including ch.qos.logback:logback-core. It affects 6 products.

PackageAffectedFixed in
ch.qos.logback:logback-core MavenAll versions1.2.9
ch.qos.logback:logback-core MavenAll versions1.2.9
Linux distribution packages (38)
maven SUSE:Enterprise Storage 7All versions3.8.6-150200.4.9.8
minlog SUSE:Enterprise Storage 7All versions1.3.1-150200.3.7.8
xmvn SUSE:Enterprise Storage 7All versions4.0.0-150200.3.7.1
xmvn-connector SUSE:Enterprise Storage 7All versions4.0.0-150200.3.7.3
xmvn-mojo SUSE:Enterprise Storage 7All versions4.0.0-150200.3.7.8
xmvn-tools SUSE:Enterprise Storage 7All versions4.0.0-150200.3.7.1
maven SUSE:Enterprise Storage 7.1All versions3.8.6-150200.4.9.8
minlog SUSE:Enterprise Storage 7.1All versions1.3.1-150200.3.7.8
xmvn SUSE:Enterprise Storage 7.1All versions4.0.0-150200.3.7.1
xmvn-connector SUSE:Enterprise Storage 7.1All versions4.0.0-150200.3.7.3
xmvn-mojo SUSE:Enterprise Storage 7.1All versions4.0.0-150200.3.7.8
xmvn-tools SUSE:Enterprise Storage 7.1All versions4.0.0-150200.3.7.1
maven SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions3.8.6-150200.4.9.8
minlog SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.3.1-150200.3.7.8
xmvn SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions4.0.0-150200.3.7.1
xmvn-connector SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions4.0.0-150200.3.7.3
xmvn-mojo SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions4.0.0-150200.3.7.8
xmvn-tools SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions4.0.0-150200.3.7.1
maven SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions3.8.6-150200.4.9.8
minlog SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions1.3.1-150200.3.7.8
xmvn SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions4.0.0-150200.3.7.1
xmvn-connector SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions4.0.0-150200.3.7.3
xmvn-mojo SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions4.0.0-150200.3.7.8
xmvn-tools SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions4.0.0-150200.3.7.1
maven SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions3.8.6-150200.4.9.8
minlog SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.3.1-150200.3.7.8
xmvn SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions4.0.0-150200.3.7.1
xmvn-connector SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions4.0.0-150200.3.7.3
xmvn-mojo SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions4.0.0-150200.3.7.8
xmvn-tools SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions4.0.0-150200.3.7.1
maven SUSE:Linux Enterprise Module for Development Tools 15 SP4All versions3.8.6-150200.4.9.8
minlog SUSE:Linux Enterprise Module for Development Tools 15 SP4All versions1.3.1-150200.3.7.8
xmvn SUSE:Linux Enterprise Module for Development Tools 15 SP4All versions4.0.0-150200.3.7.1
xmvn-connector SUSE:Linux Enterprise Module for Development Tools 15 SP4All versions4.0.0-150200.3.7.3
xmvn-mojo SUSE:Linux Enterprise Module for Development Tools 15 SP4All versions4.0.0-150200.3.7.8
xmvn-tools SUSE:Linux Enterprise Module for Development Tools 15 SP4All versions4.0.0-150200.3.7.1
maven SUSE:Linux Enterprise Real Time 15 SP3All versions3.8.6-150200.4.9.8
minlog SUSE:Linux Enterprise Real Time 15 SP3All versions1.3.1-150200.3.7.8

Products include Netapp Cloud Manager, Netapp Service Level Manager, Netapp Snap Creator Framework, Qos Logback, Redhat Satellite, Siemens Sinec Nms.

How do I fix CVE-2021-42550?

Upgrade ch.qos.logback:logback-core to 1.2.9 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-42550 being exploited?

There is no known exploitation of CVE-2021-42550 in the wild and no public exploit code.

All Redhat Satellite vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-42550, GHSA-668q-qrv7-99fm, OESA-2021-1476, OESA-2022-1946, ROOT-APP-MAVEN-CVE-2021-42550, SUSE-SU-2023:2097-1 and 3 more.

Is CVE-2021-42550 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free