{"id":"CVE-2022-42120","aliases":["CVE-2022-42120","GHSA-r5fj-j449-vqw2"],"related":[],"kind":"vulnerability","state":"published","title":"Liferay Portal and Liferay DXP Vulnerable to SQL Injection via the Fragment Module","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de inyección SQL en el módulo Fragment en Liferay Portal 7.3.3 a 7.4.3.16, y Liferay DXP 7.3 antes de la actualización 4, y 7.4 antes de la actualización 17 permite a los atacantes ejecutar comandos SQL arbitrarios a través del atributo `namespace` de PortletPreferences.","source":"nvd"}],"published":"2022-11-15T00:00:00.000Z","modified":"2026-07-09T01:17:47.810Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.33"}],"ecosystem":"Maven","package":"com.liferay:com.liferay.fragment.service","purl":"pkg:maven/com.liferay/com.liferay.fragment.service","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.3.0","status":"affected","fixed":"7.3.10.u4"}],"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.4.0","status":"affected","fixed":"7.4.13.u17"}],"ecosystem":"Maven","package":"com.liferay.portal:release.dxp.bom","purl":"pkg:maven/com.liferay.portal/release.dxp.bom","source":"ghsa"},{"ranges":[{"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"},{"ranges":[{"status":"affected","introduced":"7.3.3","lastAffected":"7.4.3.16"}],"vendor":"liferay","product":"liferay_portal","cpe":"cpe:2.3:a:liferay:liferay_portal:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://issues.liferay.com/browse/LPE-17513","tags":["issue-tracking","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42120","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/liferay/liferay-portal/commit/6f94d203f5a194a64055e1e0ba0224d26ec54e47","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/liferay/liferay-portal","tags":["package"],"sources":["ghsa"]},{"url":"https://web.archive.org/web/20220801000000*/https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120","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-09-05T17:26:30.427Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-42120","url":"https://www.cve.org/CVERecord?id=CVE-2022-42120","licence":"CVE Terms of Use","modified":"2026-07-09T00:21:50.457Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r5fj-j449-vqw2","url":"https://github.com/advisories/GHSA-r5fj-j449-vqw2","licence":"CC-BY-4.0","modified":"2025-09-05T19:56:19.713Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-42120","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42120","licence":"Public domain","modified":"2026-07-09T01:17:47.810Z"}],"updatedAt":"2026-11-25T22:58:16.470Z","epss":{"score":0.00888,"percentile":0.60375,"date":"2026-12-01T12:00:22.000Z"}}