CVE-2021-42550 is a medium-severity (CVSS 6.6) Deserialization of Untrusted Data vulnerability in ch.qos.logback:logback-core. 3 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for ch.qos.logback:logback-core — see the affected versions and patch details below.
Deserialization of Untrusted Data in logback
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
ch.qos.logback:logback-coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | ch.qos.logback:logback-core | all versions | 1.2.9ch.qos.logback:logback-core:1.2.9 |
Affected Products
cloud managernetappservice level managernetappsnap creator frameworknetapplogbackqossatelliteredhatsinec nmssiemensResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for ch.qos.logback:logback-core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update ch.qos.logback:logback-core to 1.2.9 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-42550 is resolved across your whole dependency graph.
Workarounds
Do not deserialise data from untrusted sources: where the format allows it, restrict deserialisation to an explicit allowlist of expected types, and prefer a data-only format (JSON, Protobuf) over one that can reconstruct arbitrary objects until you can upgrade.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Red Hat Satellite shipped affected versions, however, it is not vulnerable because the product doesn't meet the conditions needed to perform the attack.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Fuse 7.11 | logback-classic | RHSA-2022:5532 |
| Red Hat Satellite 6.11 for RHEL 7 | candlepin-0:4.1.13-1.el7sat | RHSA-2022:5498 |
| RHDM 7.12.1 | logback-classic | RHSA-2022:1110 |
| RHPAM 7.12.1 | logback-classic | RHSA-2022:1108 |
Frequently Asked Questions
Is CVE-2021-42550 in your dependencies?
Find it across Maven, including transitive dependencies.