Code Injection in Spring Cloud Gateway - CVE-2022-22947

 

Code Injection in Spring Cloud Gateway - CVE-2022-22947

Published: March 3, 2022 / Updated: June 21, 2024


Vulnerability identifier: #VU60982
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-22947
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a code injection attack when the Gateway Actuator endpoint is enabled. A remote attacker can send a specially crafted HTTP POST request and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Spring Cloud Gateway
Oracle Communications Cloud Native Core Network Exposure Function
Oracle Communications Cloud Native Core Network Repository Function
Oracle Communications Cloud Native Core Binding Support Function
Oracle Communications Cloud Native Core Network Slice Selection Function
Oracle Communications Cloud Native Core Security Edge Protection Proxy
Oracle Communications Cloud Native Core Console

How to mitigate CVE-2022-22947

Install updates from vendor's website.

Spring Cloud Gateway - addressed in versions 3.0.7, 3.1.1

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins