CVE-2022-42120
Liferay Portal and Liferay DXP Vulnerable to SQL Injection via the Fragment Module
Summary
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 4.0.33 for com.liferay:com.liferay.fragment.service -->
<!-- Update pom.xml dependency version to 7.3.10.u4 for com.liferay.portal:release.dxp.bom -->
<!-- Update pom.xml dependency version to 7.4.13.u17 for com.liferay.portal:release.dxp.bom -->
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (3)
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| com.liferay:com.liferay.fragment.service | maven | 1.0.0, 1.0.1, 1.0.10, 1.0.11 (+266 more) | 4.0.33 |
| com.liferay.portal:release.dxp.bom | maven | 7.3.10, 7.3.10.ep3, 7.3.10.ep4, 7.3.10.ep5 (+2 more) | 7.3.10.u4 |
| com.liferay.portal:release.dxp.bom | maven | 7.4.10.ep1, 7.4.11, 7.4.12, 7.4.13 (+12 more) | 7.4.13.u17 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-42120ADVISORY
- https://github.com/liferay/liferay-portal/commit/6f94d203f5a194a64055e1e0ba0224d26ec54e47WEB
- https://github.com/liferay/liferay-portalPACKAGE
- https://issues.liferay.com/browse/LPE-17513WEB
- https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120WEB
- https://web.archive.org/web/20220801000000*/https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120WEB
- https://liferay.comWEB
Frequently Asked Questions
- What is CVE-2022-42120?
- Liferay Portal and Liferay DXP Vulnerable to SQL Injection via the Fragment Module This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2022-42120?
- CVE-2022-42120 affects com.liferay:com.liferay.fragment.service and com.liferay.portal:release.dxp.bom. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-42120 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2023-42498CRITICAL
Liferay Portal Language Override edit screen and Liferay DXP vulnerable to reflected Cross-site Scripting
- CVE-2024-25145CRITICAL
Liferay Portal stored cross-site scripting (XSS) vulnerability
- CVE-2024-8980CRITICAL
Liferay Portal and Liferay DXP Vulnerable to CSRF in the Script Console
- CVE-2024-25601CRITICAL
Liferay Portal Expando module and Liferay DXP vulnerable to stored Cross-site Scripting
- CVE-2023-42628CRITICAL
Liferay Portal and Liferay DXP Vulnerable to XSS in the Wiki Widget
- CVE-2022-42122CRITICAL
Liferay Portal and Liferay DXP Vulnerable to SQL Injection via Friendly URL Module
- CVE-2024-26271HIGH
Liferay Portal and Liferay DXP Vulnerable to Cross-Site Request Forgery (CSRF) via the My Account Widget
- CVE-2024-26273HIGH
Liferay Portal and Liferay DXP Vulnerable to Cross-Site Request Forgery (CSRF) via the Content Page Editor
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies