CVE-2022-28981 Liferay Portal Path Traversal Vulnerability via the Hypermedia REST APIs Module
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.
| Package | Affected | Fixed in |
|---|---|---|
com.liferay:com.liferay.headless.discovery.web Maven | All versions | 4.0.12 |
com.liferay:com.liferay.headless.discovery.web Maven | All versions | 4.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.
Other vulnerabilities in Liferay Liferay Portal
- CVE-2020-7961 Liferay Portal Deserialization of Untrusted Data
- CVE-2021-33990 File upload in n/a
- CVE-2019-16891 Liferay Portal Allows RCE via Deserialization of a JSON Payload
- CVE-2023-47797 Liferay Portal XSS with `p_l_back_url_title` on edit content page
- CVE-2020-13445 Liferay Portal and Liferay DXP Vulnerable to Arbitrary Code Execution
Sources
Also known as GHSA-5j86-vmpx-42pc.