CVE-2021-30468 — apache-cxf
HIGHCVE-2021-30468 is a high-severity (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in org.apache.cxf:apache-cxf. A fix is available for org.apache.cxf:apache-cxf — see the affected versions and patch details below.
Infinite loop in Apache CFX
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
org.apache.cxf:apache-cxf☕org.apache.cxf:apache-cxf☕org.apache.cxf:cxf☕org.apache.cxf:cxfReal-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
A vulnerability in the JsonMapObjectReaderWriter of Apache CXF allows an attacker to submit malformed JSON to a web service, which results in the thread getting stuck in an infinite loop, consuming CPU indefinitely. This issue affects Apache CXF versions prior to 3.4.4; Apache CXF versions prior to 3.3.11.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.cxf:apache-cxf | ≥ 3.4.0&&< 3.4.4 | 3.4.4org.apache.cxf:apache-cxf:3.4.4 |
| ☕Maven | org.apache.cxf:apache-cxf | all versions | 3.3.11org.apache.cxf:apache-cxf:3.3.11 |
| ☕Maven | org.apache.cxf:cxf | ≥ 3.4.0&&< 3.4.4 | 3.4.4org.apache.cxf:cxf:3.4.4 |
| ☕Maven | org.apache.cxf:cxf | all versions | 3.3.11org.apache.cxf:cxf:3.3.11 |
Affected Products
cxfapachetomeeapachebusiness intelligenceoraclecommunications element manageroraclecommunications messaging serveroracleDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.cxf:apache-cxf, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.cxf:apache-cxf to 3.4.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-30468 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
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.
In OpenShift Container Platform (OCP) the openshift4/ose-logging-elasticsearch6 container bundles the vulnerable version of apache-cxf, but OCP 4.6 is Out Of Support Scope (OOSS) for Moderate and Low impact vulnerabilities because it is now in the Maintenance Phase of the support, hence this component is marked as…
| Product | Fixed in | Advisory |
|---|---|---|
| JWS 5.7.0 | cxf-rt-rs-json-basic | RHSA-2022:7273 |
| Red Hat Fuse 7.10 | cxf-rt-rs-json-basic | RHSA-2021:5134 |
| Red Hat Integration | cxf-rt-rs-json-basic | RHSA-2021:3205 |
Frequently Asked Questions
Is CVE-2021-30468 in your dependencies?
Find it across Maven, including transitive dependencies.