Miggo Logo

CVE-2014-0109: Uncontrolled Resource Consumption in Apache CXF

4.3

CVSS Score

Basic Information

EPSS Score
0.903%
Published
5/13/2022
Updated
12/21/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
AV:N/AC:M/Au:N/C:N/I:N/A:P
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.cxf:cxf-coremaven< 2.6.142.6.14
org.apache.cxf:cxf-coremaven>= 2.7.0, < 2.7.112.7.11

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from how CXF handles unexpected text/html content in SOAP responses. The commit 6dd839a modifies StaxInInterceptor.java to add size limits when reading HTML error messages. The original implementation used IOUtils.toString() without sufficient constraints, allowing attackers to trigger memory exhaustion via large payloads. The fix introduces a controlled read loop with a 64KB limit, confirming the vulnerability existed in the unconstrained input handling of this function.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*p**** *X* ***or* *.*.** *n* *.*.x ***or* *.*.** *llows r*mot* *tt**k*rs to **us* * **ni*l o* s*rvi** (m*mory *onsumption) vi* * l*r** r*qu*st wit* t** *ont*nt-Typ* s*t to t*xt/*tml to * SO*P *n*point, w*i** tri***rs *n *rror.

Reasoning

T** vuln*r**ility st*ms *rom *ow *X* **n*l*s un*xp**t** t*xt/*tml *ont*nt in SO*P r*spons*s. T** *ommit `*******` mo*i*i*s `St*xInInt*r**ptor.j*v*` to *** siz* limits w**n r***in* *TML *rror m*ss***s. T** ori*in*l impl*m*nt*tion us** `IOUtils.toStrin