Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.liferay.portal/release.dxp.bom
  4. ›
  5. CVE-2022-42120

CVE-2022-42120: Liferay Portal and Liferay DXP Vulnerable to SQL Injection via the Fragment Module

November 15, 2022 (updated July 15, 2025)

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.

References

  • github.com/advisories/GHSA-r5fj-j449-vqw2
  • github.com/liferay/liferay-portal
  • github.com/liferay/liferay-portal/commit/6f94d203f5a194a64055e1e0ba0224d26ec54e47
  • issues.liferay.com/browse/LPE-17513
  • nvd.nist.gov/vuln/detail/CVE-2022-42120
  • web.archive.org/web/20220801000000*/https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120

Code Behaviors & Features

Detect and mitigate CVE-2022-42120 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 7.3.0 before 7.3.10.u4, all versions starting from 7.4.0 before 7.4.13.u17

Fixed versions

  • 7.3.10.u4
  • 7.4.13.u17

Solution

Upgrade to versions 7.3.10.u4, 7.4.13.u17 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

maven/com.liferay.portal/release.dxp.bom/CVE-2022-42120.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:13 +0000.