CVE-2022-28981 Liferay Portal Path Traversal Vulnerability via the Hypermedia REST APIs Module

High 7.5 Published Updated

Remote attackers can access arbitrary files outside the intended directory via a path traversal flaw in the Hypermedia REST APIs module.

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-28981?

CVE-2022-28981 is a high-severity path traversal vulnerability in Liferay Liferay Portal, published on 22 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Path traversal vulnerability in the Hypermedia REST APIs module in Liferay Portal 7.4.0 through 7.4.2 allows remote attackers to access files outside of com.liferay.headless.discovery.web/META-INF/resources via the `parameter` parameter.

Weakness: CWE-22

Which versions are affected by CVE-2022-28981?

2 open source packages ship an affected version, including com.liferay:com.liferay.headless.discovery.web. It affects 1 product.

PackageAffectedFixed in
com.liferay:com.liferay.headless.discovery.web MavenAll versions4.0.12
com.liferay:com.liferay.headless.discovery.web MavenAll versions4.0.12

Products include Liferay Liferay Portal.

How do I fix CVE-2022-28981?

Upgrade com.liferay:com.liferay.headless.discovery.web to 4.0.12 or later.

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

Is CVE-2022-28981 being exploited?

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

All Liferay Liferay Portal vulnerabilities

Sources

Also known as GHSA-5j86-vmpx-42pc.

Is CVE-2022-28981 in your software?

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

Check your SBOMs for free