CVE-2022-42120
CRITICAL 9.8CVSS 3.1Liferay Portal and Liferay DXP Vulnerable to SQL Injection via the Fragment Module
A SQL injection vulnerability in the Fragment module in 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.
- Published
- 15 Nov 2022
- Last modified
- 9 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-r5fj-j449-vqw2
- Sources
- NVDJSONOSV GHSA-r5fj-j449-vqw2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | liferay | dxpcpe:2.3:a:liferay:dxp:7.3:-:*:*:*:*:*:* |
= 7.3 | |
| NVD | liferay | dxpcpe:2.3:a:liferay:dxp:7.4:-:*:*:*:*:*:* |
= 7.4 | |
| NVD | liferay | liferay_portalcpe:2.3:a:liferay:liferay_portal:*:*:*:*:*:*:*:* |
>= 7.3.3, <= 7.4.3.16 | |
| OSV | Maven | com.liferay:com.liferay.fragment.service | < 4.0.33 | 4.0.33 |
| OSV | Maven | com.liferay.portal:release.dxp.bom | >= 7.3.0, < 7.3.10.u4 | 7.3.10.u4 |
| OSV | Maven | com.liferay.portal:release.dxp.bom | >= 7.4.0, < 7.4.13.u17 | 7.4.13.u17 |
References
- https://issues.liferay.com/browse/LPE-17513 · Issue Tracking, Vendor Advisory, WEB
- https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-42120 · ADVISORY
- https://github.com/liferay/liferay-portal/commit/6f94d203f5a194a64055e1e0ba0224d26ec54e47 · WEB
- https://github.com/liferay/liferay-portal · PACKAGE
- https://web.archive.org/web/20220801000000*/https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120 · WEB
- http://liferay.com · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 15 Nov 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 15 Nov 2022)