CVE-2021-42550 RCE from attacker with configuration edit priviledges through JNDI lookup
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.
| Package | Affected | Fixed in |
|---|---|---|
ch.qos.logback:logback-core Maven | All versions | 1.2.9 |
ch.qos.logback:logback-core Maven | All versions | 1.2.9 |
Linux distribution packages (38)
maven SUSE:Enterprise Storage 7 | All versions | 3.8.6-150200.4.9.8 |
minlog SUSE:Enterprise Storage 7 | All versions | 1.3.1-150200.3.7.8 |
xmvn SUSE:Enterprise Storage 7 | All versions | 4.0.0-150200.3.7.1 |
xmvn-connector SUSE:Enterprise Storage 7 | All versions | 4.0.0-150200.3.7.3 |
xmvn-mojo SUSE:Enterprise Storage 7 | All versions | 4.0.0-150200.3.7.8 |
xmvn-tools SUSE:Enterprise Storage 7 | All versions | 4.0.0-150200.3.7.1 |
maven SUSE:Enterprise Storage 7.1 | All versions | 3.8.6-150200.4.9.8 |
minlog SUSE:Enterprise Storage 7.1 | All versions | 1.3.1-150200.3.7.8 |
xmvn SUSE:Enterprise Storage 7.1 | All versions | 4.0.0-150200.3.7.1 |
xmvn-connector SUSE:Enterprise Storage 7.1 | All versions | 4.0.0-150200.3.7.3 |
xmvn-mojo SUSE:Enterprise Storage 7.1 | All versions | 4.0.0-150200.3.7.8 |
xmvn-tools SUSE:Enterprise Storage 7.1 | All versions | 4.0.0-150200.3.7.1 |
maven SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 3.8.6-150200.4.9.8 |
minlog SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 1.3.1-150200.3.7.8 |
xmvn SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 4.0.0-150200.3.7.1 |
xmvn-connector SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 4.0.0-150200.3.7.3 |
xmvn-mojo SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 4.0.0-150200.3.7.8 |
xmvn-tools SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 4.0.0-150200.3.7.1 |
maven SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 3.8.6-150200.4.9.8 |
minlog SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 1.3.1-150200.3.7.8 |
xmvn SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 4.0.0-150200.3.7.1 |
xmvn-connector SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 4.0.0-150200.3.7.3 |
xmvn-mojo SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 4.0.0-150200.3.7.8 |
xmvn-tools SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 4.0.0-150200.3.7.1 |
maven SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 3.8.6-150200.4.9.8 |
minlog SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.3.1-150200.3.7.8 |
xmvn SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.0.0-150200.3.7.1 |
xmvn-connector SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.0.0-150200.3.7.3 |
xmvn-mojo SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.0.0-150200.3.7.8 |
xmvn-tools SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.0.0-150200.3.7.1 |
maven SUSE:Linux Enterprise Module for Development Tools 15 SP4 | All versions | 3.8.6-150200.4.9.8 |
minlog SUSE:Linux Enterprise Module for Development Tools 15 SP4 | All versions | 1.3.1-150200.3.7.8 |
xmvn SUSE:Linux Enterprise Module for Development Tools 15 SP4 | All versions | 4.0.0-150200.3.7.1 |
xmvn-connector SUSE:Linux Enterprise Module for Development Tools 15 SP4 | All versions | 4.0.0-150200.3.7.3 |
xmvn-mojo SUSE:Linux Enterprise Module for Development Tools 15 SP4 | All versions | 4.0.0-150200.3.7.8 |
xmvn-tools SUSE:Linux Enterprise Module for Development Tools 15 SP4 | All versions | 4.0.0-150200.3.7.1 |
maven SUSE:Linux Enterprise Real Time 15 SP3 | All versions | 3.8.6-150200.4.9.8 |
minlog SUSE:Linux Enterprise Real Time 15 SP3 | All versions | 1.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.
Other vulnerabilities in Redhat Satellite
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.