CVE-2022-2712 Path Traversal In Eclipse GlassFish

Medium 6.5 Published Updated

Remote unauthenticated attackers can access critical data like configuration files and source code via path traversal in Eclipse GlassFish.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-2712?

CVE-2022-2712 is a medium-severity path traversal vulnerability in The Eclipse Foundation Eclipse GlassFish, published on 27 Jan 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

In Eclipse GlassFish versions 5.1.0 to 6.2.5, there is a vulnerability in relative path traversal because it does not filter request path starting with './'. Successful exploitation could allow an remote unauthenticated attacker to access critical data, such as configuration files and deployed application source code. This is fixed in GlassFish 7.0.0.

Weakness: CWE-22

Which versions are affected by CVE-2022-2712?

2 open source packages ship an affected version, including org.glassfish.main.web:web. It affects 1 product.

PackageAffectedFixed in
org.glassfish.main.web:web MavenFrom 5.1.07.0.0
org.glassfish.main.web:web MavenFrom 5.1.07.0.0

Products include Eclipse Glassfish.

How do I fix CVE-2022-2712?

Upgrade org.glassfish.main.web:web to 7.0.0 or later.

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

Is CVE-2022-2712 being exploited?

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

Sources

Also known as GHSA-3g5w-6pw7-6hrp, UBUNTU-CVE-2022-2712.

Is CVE-2022-2712 in your software?

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

Check your SBOMs for free