{"id":"CVE-2022-42121","aliases":["CVE-2022-42121","GHSA-gxxj-fhmr-37j9"],"related":[],"kind":"vulnerability","state":"published","title":"Liferay Portal and Liferay DXP Vulnerable to SQL Injection via the Layout Module","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"A SQL injection vulnerability in the Layout module before 4.0.17 from 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de inyección SQL en el módulo Layout en Liferay Portal 7.1.3 hasta 7.4.3.4, y Liferay DXP 7.1 anterior al fix pack 27, 7.2 anterior al fix pack 17, 7.3 anterior al service pack 3 y 7.4 GA permite a atacantes remotos autenticados ejecutar arbitrariamente Comandos SQL a través de un payload manipulado inyectado en el campo 'Nombre' de una plantilla de página.","source":"nvd"}],"published":"2022-11-15T00:00:00.000Z","modified":"2026-07-09T01:17:48.003Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.17"}],"ecosystem":"Maven","package":"com.liferay:com.liferay.layout.page.template.service","purl":"pkg:maven/com.liferay/com.liferay.layout.page.template.service","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.1.0","status":"affected","fixed":"7.1.10.fp27"}],"ecosystem":"Maven","package":"com.liferay.portal:release.dxp.bom","purl":"pkg:maven/com.liferay.portal/release.dxp.bom","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.2.0","status":"affected","fixed":"7.2.10.fp17"}],"ecosystem":"Maven","package":"com.liferay.portal:release.dxp.bom","purl":"pkg:maven/com.liferay.portal/release.dxp.bom","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"7.1.3","lastAffected":"7.4.3.4"},{"status":"affected","introduced":"7.1.0","lastAffected":"7.4.2"}],"vendor":"liferay","product":"liferay_portal","cpe":"cpe:2.3:a:liferay:liferay_portal:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"}],"vendor":"liferay","product":"digital_experience_platform","cpe":"cpe:2.3:a:liferay:digital_experience_platform:7.1:-:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"7.3"},{"status":"affected","version":"7.3"},{"status":"affected","version":"7.3"},{"status":"affected","version":"7.4"}],"vendor":"liferay","product":"dxp","cpe":"cpe:2.3:a:liferay:dxp:7.3:-:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42121","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://issues.liferay.com/browse/LPE-17414","tags":["issue-tracking","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42121","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/liferay/liferay-portal/commit/14c8fbbac814c0b511b4f3ade19eafb2182923c7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/liferay/liferay-portal/commit/5a17acb714c57e36695b7caff8e6a2789e2cf9d0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/liferay/liferay-portal/commit/82de94e9f3a4425e3ee6c187462d670ae9bfef51","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/liferay/liferay-portal/commit/f245f4b428186c8e5964a9ffe90ccc7e12cf7f66","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/liferay/liferay-portal","tags":["package"],"sources":["ghsa"]},{"url":"https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2022-42121?p_r_p_assetEntryId=121613426&_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt_redirect=https%3A%2F%2Fliferay.dev%3A443%2Fportal%2Fsecurity%2Fknown-vulnerabilities%3Fp_p_id%3Dcom_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_r_p_assetEntryId%3D121613426%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt_cur%3D0%26p_r_p_resetCur%3Dfalse","tags":["web"],"sources":["ghsa"]},{"url":"http://liferay.com","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-04-30T15:01:37.304Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-42121","url":"https://www.cve.org/CVERecord?id=CVE-2022-42121","licence":"CVE Terms of Use","modified":"2026-07-09T00:21:51.699Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gxxj-fhmr-37j9","url":"https://github.com/advisories/GHSA-gxxj-fhmr-37j9","licence":"CC-BY-4.0","modified":"2025-09-05T19:46:22.437Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-42121","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42121","licence":"Public domain","modified":"2026-07-09T01:17:48.003Z"}],"updatedAt":"2026-11-25T22:58:16.470Z","epss":{"score":0.01085,"percentile":0.64869,"date":"2026-11-30T12:00:22.000Z"}}