QID 376508

Date Published: 2022-04-01

QID 376508: Spring Cloud Function Remote Code Execution (RCE) Vulnerability (Authenticated)

A Remote Code Execution(RCE) Vulnerability exists in the Spring Cloud Function by a malicious Spring Expression.

Affected Versions:
Spring Cloud Function versions 3.1.6, 3.2.2 and older unsupported versions.

QID Detection: (Authenticated) - Linux
Detection logic checks for the presence of vulnerable versions of spring-cloud-function-core jar files by using locate and ls -l /proc/*/fd commands.

QID Detection: (Authenticated) - Windows
On Windows system, the QID identifies vulnerable instance of Spring Cloud via WMI to check spring-cloud-function-core jar is included in the running processes via command-line.
QID Detection: (Authenticated) - MacOS
Detection logic checks the presence of vulnerable versions of spring-cloud-function-core jar files by using the locate command.

By using routing functionality, it is possible for a user to provide a specially crafted SpEL as a routing-expression that may result in remote code execution and access to local resources.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as High - 7.5 severity.
  • Solution
    The vendor has released an advisory to resolve these issues.

    Customers are advised to visit Spring Cloud Function RCE for more information on this.

    Vendor References

    CVEs related to QID 376508

    Software Advisories
    Advisory ID Software Component Link
    Spring Cloud Function URL Logo tanzu.vmware.com/security/cve-2022-22963