Liferay Portal and Liferay DXP Vulnerable to SQL Injection via the Fragment Module
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | com.liferay:com.liferay.fragment.service | < 4.0.33 | 4.0.33 |
| Java / Kotlin (Maven) | com.liferay.portal:release.dxp.bom | >= 7.3.0, < 7.3.10.u4, >= 7.4.0, < 7.4.13.u17 | 7.3.10.u4, 7.4.13.u17 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-42120
- https://github.com/liferay/liferay-portal/commit/6f94d203f5a194a64055e1e0ba0224d26ec54e47
- https://github.com/liferay/liferay-portal
- https://issues.liferay.com/browse/LPE-17513
- https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120
- https://web.archive.org/web/20220801000000*/https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120
- http://liferay.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-89- Platform
- Java / Kotlin (Maven)
- Package
com.liferay:com.liferay.fragment.service, com.liferay.portal:release.dxp.bom- Disclosed
- 15.11.2022
- Updated
- 11.10.2026 12:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-r5fj-j449-vqw2 - CC BY 4.0
Vulnerability history: com.liferay:com.liferay.fragment.service
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.