CVE-2022-42120
CRITICAL9.8EPSS 0.81%Liferay Portal and Liferay DXP Vulnerable to SQL Injection via the Fragment Module
Published: 11/15/2022Modified: 9/5/2025
Description
A SQL injection vulnerability in the Fragment module before 4.0.33 from Liferay Portal (7.3.3 through 7.4.3.16), and Liferay DXP 7.3 before update 4, and 7.4 before update 17 allows attackers to execute arbitrary SQL commands via a PortletPreferences' `namespace` attribute.
Affected packages (2)
- Maven/com.liferay:com.liferay.fragment.servicefrom 0, < 4.0.33
- Maven/com.liferay.portal:release.dxp.bom>= 7.3.0, < 7.3.10.u4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-42120
- PATCHhttps://github.com/liferay/liferay-portal
- WEBhttp://liferay.com
- WEBhttps://github.com/liferay/liferay-portal/commit/6f94d203f5a194a64055e1e0ba0224d26ec54e47
- WEBhttps://issues.liferay.com/browse/LPE-17513
- WEBhttps://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120
- WEBhttps://web.archive.org/web/20220801000000*/https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120