GHSA-58p8-9g59-q2hr
MEDIUMGHSA-58p8-9g59-q2hr is a medium-severity (CVSS 6.5) CWE-770 vulnerability in org.apache.cxf:cxf. 4 public exploit references exist, so weaponization risk is real. O3 Security confirms whether GHSA-58p8-9g59-q2hr is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.
Potential DOS attack due to unrestricted attachment count in messages
Real-World Exposure
org.apache.cxf:cxf☕org.apache.cxf:cxf☕org.apache.cxf:apache-cxf☕org.apache.cxf:apache-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
Apache CXF before 3.3.4 and 3.2.11 does not restrict the number of message attachments present in a given message. This leaves open the possibility of a denial of service type attack, where a malicious user crafts a message containing a very large number of message attachments. From the 3.3.4 and 3.2.11 releases, a default limit of 50 message attachments is enforced. This is configurable via the message property "attachment-max-count".
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.cxf:cxf | all versions | 3.2.11 |
| ☕Maven | org.apache.cxf:cxf | ≥ 3.3.0&&< 3.3.4 | 3.3.4 |
| ☕Maven | org.apache.cxf:apache-cxf | all versions | 3.2.11 |
| ☕Maven | org.apache.cxf:apache-cxf | ≥ 3.3.0&&< 3.3.4 | 3.3.4 |
Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Apache CXF before 3.3.4 and 3.2.11 does not restrict the number of messa…
Apache CXF before 3.3.4 and 3.2.11 does not restrict the number of messa…
Apache CXF before 3.3.4 and 3.2.11 does not restrict the number of messa…
Apache CXF before 3.3.4 and 3.2.11 does not restrict the number of messa…
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.cxf:cxf. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update org.apache.cxf:cxf to 3.2.11 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-58p8-9g59-q2hr is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-58p8-9g59-q2hr is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-58p8-9g59-q2hr. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-58p8-9g59-q2hr in your dependencies?
O3 detects GHSA-58p8-9g59-q2hr across Maven dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.