CVEfocus › CVE database › CVE-2021-42550

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

CVSS 6.6 MediumEPSS 4.8% (higher than 93% of CVEs)Published 2021-12-16Updated 2024-08-04Assigner: NCSC.ch

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.

CWE-502

What to do

Fixed builds are available from Debian, Maven, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
4Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04logbackNot affected
vulnerable_code_not_present
Ubuntu 20.04logbackFix pending1:1.2.3-5ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-42550
Ubuntu 18.04logbackFix pending1:1.2.3-2ubuntu1~18.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-42550
Ubuntu 16.04logbackFix pending1:1.1.3-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-42550
Ubuntu 14.04logbackFix pending
Debian 14logbackFixed1:1.2.8-1DEBIAN-CVE-2021-42550
Debian 13logbackFixed1:1.2.8-1DEBIAN-CVE-2021-42550
Debian 12logbackFixed1:1.2.8-1DEBIAN-CVE-2021-42550
Rocky Linux 8libdbFixed0:5.3.28-42.el8_4RLSA-2022:5498
Maven librarych.qos.logback:logback-coreFixed1.2.9GHSA-668q-qrv7-99fm

What the vendor says

As published in the CVE record by NCSC.ch, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: upgrade to >=1.2.9 or >=1.3.0-alpha11

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.