CVE-2022-42121 json
Liferay Portal and Liferay DXP Vulnerable to SQL Injection via the Layout Module
published 2022-11-15 3 y ago modified 2026-07-09 4 mo ago also GHSA-gxxj-fhmr-37j9 , EUVD-2022-45207
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
Summary
A SQL injection vulnerability in the Layout module in Liferay Portal 7.1.3 through 7.4.3.4, and Liferay DXP 7.1 before fix pack 27, 7.2 before fix pack 17, 7.3 before service pack 3, and 7.4 GA allows remote authenticated attackers to execute arbitrary SQL commands via a crafted payload injected into a page template's 'Name' field.
Patch / fix
- maven com.liferay:com.liferay.layout.page.template.service 4.0.17
- maven com.liferay.portal:release.dxp.bom 7.1.10.fp27, 7.2.10.fp17
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
1.05% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | com.liferay:com.liferay.layout.page.template.service | <4.0.17 |
4.0.17 |
| maven | com.liferay.portal:release.dxp.bom | >=7.1.0, <7.1.10.fp27 >=7.2.0, <7.2.10.fp17 |
7.1.10.fp27 7.2.10.fp17 |
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/liferay/liferay-portal/commit/14c8fbbac814c0b511b4f3ade19eafb2182923c7
web
-
github.com
/liferay/liferay-portal/commit/5a17acb714c57e36695b7caff8e6a2789e2cf9d0
web
-
github.com
/liferay/liferay-portal/commit/82de94e9f3a4425e3ee6c187462d670ae9bfef51
web
-
github.com
/liferay/liferay-portal/commit/f245f4b428186c8e5964a9ffe90ccc7e12cf7f66
web
-
portal.liferay.dev
/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42121
web, vendor-advisory
-
issues.liferay.com
/browse/LPE-17414
web, issue-tracking, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-42121
advisory
-
github.com
/liferay/liferay-portal
package
-
liferay.dev
/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2022-42121?p_r_p_assetEntryId=121613
web
-
liferay.com
web
Sources
- CVE List CVE-2022-42121
- GitHub Advisory GHSA-gxxj-fhmr-37j9
- NVD CVE-2022-42121
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.