XML External Entity (XXE) Injection via Schema Validation in Multiple WSO2 Products Allows File Reading and Denial of Service
Impact
The XML and schema validation functionalities within the SchemaValidator Mediator process XML input as part of validation flows. Under certain conditions, the XML parser allows the resolution of external entities when handling user-supplied XML content during validation operations. This behavior can occur when an attacker supplies crafted XML payloads to the relevant mediator flows with sufficient privileges.
Source excerpt · WSO2Under certain conditions, the XML parser allows the resolution of external entities when handling user-supplied XML content during validation operations.
What to do
Affected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
WSO2 · WSO2 API Manager
Other versions: unaffected
| Version / range | Source status |
|---|---|
| 0 to before 3.2.0 | unknown |
| 3.2.0 to before 3.2.0.472 | affected |
| 3.2.1 to before 3.2.1.91 | affected |
| 4.1.0 to before 4.1.0.254 | affected |
| 4.2.0 to before 4.2.0.194 | affected |
| 4.3.0 to before 4.3.0.105 | affected |
| 4.4.0 to before 4.4.0.68 | affected |
| 4.5.0 to before 4.5.0.53 | affected |
| 4.6.0 to before 4.6.0.16 | affected |
WSO2 · WSO2 Universal Gateway
Other versions: unaffected
| Version / range | Source status |
|---|---|
| 4.5.0 to before 4.5.0.53 | affected |
| 4.6.0 to before 4.6.0.16 | affected |
WSO2 · WSO2 Traffic Manager
Other versions: unaffected
| Version / range | Source status |
|---|---|
| 4.5.0 to before 4.5.0.52 | affected |
| 4.6.0 to before 4.6.0.16 | affected |
WSO2 · WSO2 API Control Plane
Other versions: unaffected
| Version / range | Source status |
|---|---|
| 4.5.0 to before 4.5.0.54 | affected |
| 4.6.0 to before 4.6.0.17 | affected |
WSO2 · WSO2 Carbon API Gateway
Other versions: unknown
| Version / range | Source status |
|---|---|
| 6.7.206 to before 6.7.206.594 | affected |
| 6.7.210 to before 6.7.210.95 | affected |
| 9.20.74 to before 9.20.74.398 | affected |
| 9.28.116 to before 9.28.116.412 | affected |
| 9.29.120 to before 9.29.120.228 | affected |
| 9.30.67 to before 9.30.67.158 | affected |
| 9.31.86 to before 9.31.86.147 | affected |
| 9.32.147 to before 9.32.147.38 | affected |
| 9.33.61 through * (inclusive) | unaffected |
WSO2 · WSO2 Carbon API Management Implementation
Other versions: unknown
| Version / range | Source status |
|---|---|
| 6.7.206 to before 6.7.206.594 | affected |
| 6.7.210 to before 6.7.210.95 | affected |
| 9.20.74 to before 9.20.74.398 | affected |
| 9.28.116 to before 9.28.116.412 | affected |
| 9.29.120 to before 9.29.120.228 | affected |
| 9.30.67 to before 9.30.67.158 | affected |
| 9.31.86 to before 9.31.86.147 | affected |
| 9.32.147 to before 9.32.147.38 | affected |
| 9.33.61 through * (inclusive) | unaffected |
Original source description
The XML and schema validation functionalities within the SchemaValidator Mediator process XML input as part of validation flows. Under certain conditions, the XML parser allows the resolution of external entities when handling user-supplied XML content during validation operations. This behavior can occur when an attacker supplies crafted XML payloads to the relevant mediator flows with sufficient privileges.
Successful exploitation may allow a highly privileged actor to read files accessible within the server hosting the affected product. Additionally, it may be possible to trigger outbound requests to unintended internal or external locations, depending on the server environment and network configuration. Specially crafted XML payloads can also lead to excessive resource consumption during parsing, impacting the availability of the product.