CVE-2022-42123 Path Traversal in Liferay Portal

High 7.5 Published Updated

Attackers can overwrite files via malicious plugin installation in Liferay Portal, potentially leading to code execution.

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

CVE-2022-42123 is a high-severity path traversal vulnerability in Liferay Digital Experience Platform, published on 15 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Zip slip vulnerability in the Elasticsearch Connector in Liferay Portal 7.3.3 through 7.4.3.18, and Liferay DXP 7.3 before update 6, and 7.4 before update 19 allows attackers to create or overwrite existing files on the filesystem via the installation of a malicious Elasticsearch Sidecar plugin.

Weakness: CWE-22

Which versions are affected by CVE-2022-42123?

3 open source packages ship an affected version, including com.liferay.portal:release.portal.bom and liferay. It affects 2 products.

PackageAffectedFixed in
com.liferay.portal:release.portal.bom MavenFrom 7.3.37.4.3.19
com.liferay.portal:release.portal.bom MavenFrom 7.3.37.4.3.19
liferay BitnamiFrom 7.3.0 to 7.3.0None

Products include Liferay Digital Experience Platform, Liferay Liferay Portal.

How do I fix CVE-2022-42123?

Upgrade com.liferay.portal:release.portal.bom to 7.4.3.19 or later.

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

Is CVE-2022-42123 being exploited?

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

All Liferay Digital Experience Platform vulnerabilities

Sources

Also known as BIT-liferay-2022-42123, GHSA-hffx-r282-w2g9.

Is CVE-2022-42123 in your software?

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

Check your SBOMs for free