cve.bz

CVE-2022-42121 liferay: SQL Injection

8.8 highEPSS 1.2%Fix available

High (8.8) in liferay. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in com.liferay:com.liferay.layout.page.template.service 4.0.17.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 68th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-04-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-42121 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-42121?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-42121?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-42121 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
liferay:liferay_portalfrom 7.1.3 through 7.4.3.4
liferay:digital_experience_platform7.1
liferay:digital_experience_platform7.1:fix_pack_1
liferay:digital_experience_platform7.1:fix_pack_10
liferay:digital_experience_platform7.1:fix_pack_11
liferay:digital_experience_platform7.1:fix_pack_12
liferay:digital_experience_platform7.1:fix_pack_13
liferay:digital_experience_platform7.1:fix_pack_14
liferay:digital_experience_platform7.1:fix_pack_15
liferay:digital_experience_platform7.1:fix_pack_16
liferay:digital_experience_platform7.1:fix_pack_17
liferay:digital_experience_platform7.1:fix_pack_18
liferay:digital_experience_platform7.1:fix_pack_19
liferay:digital_experience_platform7.1:fix_pack_2
liferay:digital_experience_platform7.1:fix_pack_20
liferay:digital_experience_platform7.1:fix_pack_21
liferay:digital_experience_platform7.1:fix_pack_22
liferay:digital_experience_platform7.1:fix_pack_23
liferay:digital_experience_platform7.1:fix_pack_24
liferay:digital_experience_platform7.1:fix_pack_25
liferay:digital_experience_platform7.1:fix_pack_3
liferay:digital_experience_platform7.1:fix_pack_4
liferay:digital_experience_platform7.1:fix_pack_5
liferay:digital_experience_platform7.1:fix_pack_6
liferay:digital_experience_platform7.1:fix_pack_7
liferay:digital_experience_platform7.1:fix_pack_8
liferay:digital_experience_platform7.1:fix_pack_9
liferay:digital_experience_platform7.2
liferay:digital_experience_platform7.2:fix_pack_1
liferay:digital_experience_platform7.2:fix_pack_10
liferay:digital_experience_platform7.2:fix_pack_11
liferay:digital_experience_platform7.2:fix_pack_12
liferay:digital_experience_platform7.2:fix_pack_13
liferay:digital_experience_platform7.2:fix_pack_14
liferay:digital_experience_platform7.2:fix_pack_15
liferay:digital_experience_platform7.2:fix_pack_2
liferay:digital_experience_platform7.2:fix_pack_3
liferay:digital_experience_platform7.2:fix_pack_4
liferay:digital_experience_platform7.2:fix_pack_5
liferay:digital_experience_platform7.2:fix_pack_6
liferay:digital_experience_platform7.2:fix_pack_7
liferay:digital_experience_platform7.2:fix_pack_8
liferay:digital_experience_platform7.2:fix_pack_9
liferay:dxp7.3
liferay:dxp7.3:sp1
liferay:dxp7.3:sp2
liferay:dxp7.4:ga1
liferay:liferay_portalfrom 7.1.0 through 7.4.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gxxj-fhmr-37j9Mavencom.liferay:com.liferay.layout.page.template.service<4.0.174.0.17
GHSA-gxxj-fhmr-37j9Mavencom.liferay.portal:release.dxp.bom>=7.1.0 <7.1.10.fp277.1.10.fp27
GHSA-gxxj-fhmr-37j9Mavencom.liferay.portal:release.dxp.bom>=7.2.0 <7.2.10.fp177.2.10.fp17

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON