XXE in Apache Cloudstack

CVE-2022-35741

Apache CloudStack version 4.5.0 and later has a SAML 2.0 authentication Service Provider plugin which is found to be vulnerable to XML external entity (XXE) injection. This plugin is not enabled by default and the attacker would require that this plugin be enabled to exploit the vulnerability. When the SAML 2.0 plugin is enabled in affected versions of Apache CloudStack could potentially allow the exploitation of XXE vulnerabilities. The SAML 2.0 messages constructed during the authentication flow in Apache CloudStack are XML-based and the XML data is parsed by various standard libraries that are now understood to be vulnerable to XXE injection attacks such as arbitrary file reading, possible denial of service, server-side request forgery (SSRF) on the CloudStack management server.

Vulnerability class: XXE (XML External Entity)

EPSS: 0.079 (94.3th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

  • security@apache.org (Patch, Mailing List, x_refsource_MISC, Mitigation, Issue Tracking, Vendor Advisory)
  • security@apache.org (mailing-list, x_refsource_MLIST, Mailing List, Third Party Advisory, Mitigation)
  • security@apache.org (mailing-list, x_refsource_MLIST, Mailing List, Third Party Advisory, Mitigation)

Frequently asked questions

What is CVE-2022-35741?
CVE-2022-35741 is a critical-severity vulnerability in Apache Cloudstack, classified under Improper Restriction of XML External Entity Reference (XXE). CVSS score: 9.8/10. Published 2022-07-18.
How severe is CVE-2022-35741?
Critical severity. CVSS v3 base score is 9.8 out of 10.
Is CVE-2022-35741 known to be exploited?
5 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.