CVE-2022-27772 Temporary Directory Hijacking to Local Privilege Escalation Vulnerability in org.springframework.boot:spring-boot

High 7.8 Published Updated

Attackers can hijack temporary directories in Spring Boot to escalate privileges or read sensitive data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-27772?

CVE-2022-27772 is a high-severity path traversal vulnerability in n/a, published on 30 Mar 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

spring-boot versions prior to version v2.2.11.RELEASE was vulnerable to temporary directory hijacking. This vulnerability impacted the org.springframework.boot.web.server.AbstractConfigurableWebServerFactory.createTempDir method. NOTE: This vulnerability only affects products and/or versions that are no longer supported by the maintainer

Weakness: CWE-668

Which versions are affected by CVE-2022-27772?

2 open source packages ship an affected version, including org.springframework.boot:spring-boot. It affects 1 product.

PackageAffectedFixed in
org.springframework.boot:spring-boot MavenAll versions2.2.11.RELEASE
org.springframework.boot:spring-boot MavenAll versions2.2.11.RELEASE

Products include Vmware Spring Boot.

How do I fix CVE-2022-27772?

Upgrade org.springframework.boot:spring-boot to 2.2.11.RELEASE or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-27772 being exploited?

There is no known exploitation of CVE-2022-27772 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-cm59-pr5q-cw85.

Is CVE-2022-27772 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free