CVE-2022-42120: SQL Injection
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.
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/com.liferay.portal:release.dxp.bomto a version that resolves this vulnerability.Fixed in 7.4.13.u17 - Upgrade
Upgrade
maven/com.liferay.portal:release.dxp.bomto a version that resolves this vulnerability.Fixed in 7.3.10.u4 - Upgrade
Upgrade
maven/com.liferay:com.liferay.fragment.serviceto a version that resolves this vulnerability.Fixed in 4.0.33 - Upgrade
Upgrade
Liferay Portal Fragment moduleto a version that resolves this vulnerability.Fixed in 4.0.33
Event History
Frequently Asked Questions
What is the vulnerability ID for this SQL injection vulnerability?
The vulnerability ID for this SQL injection vulnerability is CVE-2022-42120.
What software versions are affected by this vulnerability?
This vulnerability affects Liferay Portal versions 7.3.3 through 7.4.3.16, Liferay DXP versions 7.3 before update 4, and 7.4 before update 17.
What is the severity of CVE-2022-42120?
The severity of CVE-2022-42120 is critical with a CVSS score of 9.8.
How can an attacker exploit this vulnerability?
An attacker can exploit this vulnerability by executing arbitrary SQL commands via a PortletPreferences' `namespace` attribute.
Are there any references related to CVE-2022-42120?
Yes, you can find more information about CVE-2022-42120 at the following references: [1] http://liferay.com, [2] https://issues.liferay.com/browse/LPE-17513, [3] https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120