NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
HIGH severity

Liferay Portal and Liferay DXP Vulnerable to SQL Injection via the Layout ModuleGHSA-gxxj-fhmr-37j9

HIGHFix: liferay/liferay-portal@14c8fbb

GHSA-gxxj-fhmr-37j9 is a high-severity (CVSS 8.8) SQL Injection vulnerability in com.liferay:com.liferay.layout.page.template.service. A fix is available for com.liferay:com.liferay.layout.page.template.service — see the affected versions and patch details below.

Also known asCVE-2022-42121
Published
Updated
Affected
3 pkgs
Patched
3 / 3
Exploits
None indexed
Exploitation data as of Nov 9, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • A successful exploit gives an attacker total control of the affected component, not partial access.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-gxxj-fhmr-37j9.

EPSS Exploitation Probability

via FIRST.org ↗
1.1%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs65th percentile — riskier than 65% of all scored CVEsHighest risk
0.10%0.59%1.07%1.55%0.6%1.1%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

3 pkgs affected
☕com.liferay:com.liferay.layout.page.template.service☕com.liferay.portal:release.dxp.bom☕com.liferay.portal:release.dxp.bom

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

Description

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.

Affected Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
☕Mavencom.liferay:com.liferay.layout.page.template.serviceall versions4.0.17com.liferay:com.liferay.layout.page.template.service:4.0.17
☕Mavencom.liferay.portal:release.dxp.bom≥ 7.1.0&&< 7.1.10.fp277.1.10.fp27com.liferay.portal:release.dxp.bom:7.1.10.fp27
☕Mavencom.liferay.portal:release.dxp.bom≥ 7.2.0&&< 7.2.10.fp177.2.10.fp17com.liferay.portal:release.dxp.bom:7.2.10.fp17

Affected Products

3 products · 48 configurations
Application
digital experience platformliferay
2 versions
7.17.2
Application
dxpliferay
2 versions
7.37.4
Application
liferay portalliferay
≥ 7.1.0 && ≤ 7.4.2
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.liferay:com.liferay.layout.page.template.service, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update com.liferay:com.liferay.layout.page.template.service to 4.0.17 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-gxxj-fhmr-37j9 is resolved across your whole dependency graph.

  3. Workarounds

    Until you can upgrade, make sure every query built from user input uses parameterised statements or a prepared-statement API rather than string concatenation, and reduce the database account's privileges so an injected query cannot read or alter data beyond what the feature needs.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is GHSA-gxxj-fhmr-37j9 in your dependencies?

Find it across Maven, including transitive dependencies.

Liferay Portal and Liferay DXP Vulnerable to SQL Injection…