CVE-2022-32287 Apache UIMA prior to 3.3.1 has a path traversal vulnerability when extracting (PEAR) archives

High 7.5 Published Updated

Attackers can create files outside the target directory via crafted PEAR archives, potentially leading to code execution in Apache UIMA.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-32287?

CVE-2022-32287 is a high-severity path traversal vulnerability in Apache UIMA, published on 3 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A relative path traversal vulnerability in a FileUtil class used by the PEAR management component of Apache UIMA allows an attacker to create files outside the designated target directory using carefully crafted ZIP entry names. This issue affects Apache UIMA Apache UIMA version 3.3.0 and prior versions. Note that PEAR files should never be installed into an UIMA installation from untrusted sources because PEAR archives are executable plugins that will be able to perform any actions with the same privileges as the host Java Virtual Machine.

Weakness: CWE-22

Which versions are affected by CVE-2022-32287?

2 open source packages ship an affected version, including org.apache.uima:uimaj-core. It affects 1 product.

PackageAffectedFixed in
org.apache.uima:uimaj-core MavenAll versions3.3.1
org.apache.uima:uimaj-core MavenAll versions3.3.1

Products include Apache Uimaj.

How do I fix CVE-2022-32287?

Upgrade org.apache.uima:uimaj-core to 3.3.1 or later.

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

Is CVE-2022-32287 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-xgqr-5wqw-9fpv, UBUNTU-CVE-2022-32287.

Is CVE-2022-32287 in your software?

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

Check your SBOMs for free