CVE-2021-42550RCE from attacker with configuration edit priviledges through JNDI lookup
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | logback | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | logback | Fix pending | 1:1.2.3-5ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2021-42550 |
| Ubuntu 18.04 | logback | Fix pending | 1:1.2.3-2ubuntu1~18.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2021-42550 |
| Ubuntu 16.04 | logback | Fix pending | 1:1.1.3-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2021-42550 |
| Ubuntu 14.04 | logback | Fix pending | ||
| Debian 14 | logback | Fixed | 1:1.2.8-1 | DEBIAN-CVE-2021-42550 |
| Debian 13 | logback | Fixed | 1:1.2.8-1 | DEBIAN-CVE-2021-42550 |
| Debian 12 | logback | Fixed | 1:1.2.8-1 | DEBIAN-CVE-2021-42550 |
| Rocky Linux 8 | libdb | Fixed | 0:5.3.28-42.el8_4 | RLSA-2022:5498 |
| Maven library | ch.qos.logback:logback-core | Fixed | 1.2.9 | GHSA-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.
- QOS.ch logback: affected: unspecified to before 1.2.9, unspecified to before 1.3.0-alpha11; fixed in
1.2.9,1.3.0-alpha11
Solution: upgrade to >=1.2.9 or >=1.3.0-alpha11
References
- http://logback.qos.ch/news.html
- https://github.com/cn-panda/logbackRceDemo
- https://jira.qos.ch/browse/LOGBACK-1591
- https://security.netapp.com/advisory/ntap-20211229-0001/
- http://seclists.org/fulldisclosure/2022/Jul/11
- http://packetstormsecurity.com/files/167794/Open-Xchange-App-Suite-7.10.x-Cross-Site-Scripting-Command-Injection.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-371761.pdf
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.