Vulnerabilities in pkg:maven/com.liferay.commerce/com.liferay.commerce.account.web
PACKAGECVE-2021-29038 is a MODERATE (CVSS 6.3) liferay portal and liferay dxp vulnerability (CWE-640: Weak Password Recovery Mechanism for Forgotten Password) affecting Portal impl libraries in the Maven ecosystem. The issue involves liferay portal and liferay dxp does not obfuscate password reminder answers. Remediation is available by upgrading affected packages to version 5.18.4, 5.0.33, 5.0.18, 3.0.7, 7.2.10.fp17, 7.3.10.fp1.
pkg:maven/com.liferay.commerce/com.liferay.commerce.account.web
Vulnerability advisories affecting package pkg:maven/com.liferay.commerce/com.liferay.commerce.account.web. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-mwhf-6mjm-6w3h | CVE-2021-29038 | MODERATE | Liferay Portal and Liferay DXP Does Not Obfuscate Password Reminder Answers |
CVE-2021-29038 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L).
How to Fix CVE-2021-29038
To remediate this vulnerability, upgrade all affected Portal impl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>portal-impl</artifactId>
<version>5.18.4</version>
</dependency>
<dependency>
<groupId>com.liferay</groupId>
<artifactId>com.liferay.users.admin.web</artifactId>
<version>5.0.33</version>
</dependency>
<dependency>
<groupId>com.liferay</groupId>
<artifactId>com.liferay.login.web</artifactId>
<version>5.0.18</version>
</dependency>
<dependency>
<groupId>com.liferay.commerce</groupId>
<artifactId>com.liferay.commerce.account.web</artifactId>
<version>3.0.7</version>
</dependency>
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>release.dxp.bom</artifactId>
<version>7.2.10.fp17</version>
</dependency>
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>release.dxp.bom</artifactId>
<version>7.3.10.fp1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.liferay.portal
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2021-29038, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.liferay.portal
Analyze the terminal output to locate any version of Portal impl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.18.4), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.liferay.portal command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-640: Weak Password Recovery Mechanism for Forgotten Password, where the product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak. In Portal impl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-29038 Affected Portal impl Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.liferay.portal:portal-impl
|
Maven |
< 5.18.4
|
5.18.4
|
|
com.liferay:com.liferay.users.admin.web
|
Maven |
< 5.0.33
|
5.0.33
|
|
com.liferay:com.liferay.login.web
|
Maven |
< 5.0.18
|
5.0.18
|
|
com.liferay.commerce:com.liferay.commerce.account.web
|
Maven |
< 3.0.7
|
3.0.7
|
|
com.liferay.portal:release.dxp.bom
|
Maven |
< 7.2.10.fp17
|
7.2.10.fp17
|
|
com.liferay.portal:release.dxp.bom
|
Maven |
≥ 7.3.0
< 7.3.10.fp1
|
7.3.10.fp1
|
References
Frequently Asked Questions
What is CVE-2021-29038?
Which Portal impl versions are affected?
What version fixes CVE-2021-29038?
Is portal-impl affected?
Is com.liferay.users.admin.web affected?
What is the CVSS score of CVE-2021-29038?
What CWE is associated with CVE-2021-29038?
How can I check Maven dependencies for CVE-2021-29038?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mwhf-6mjm-6w3h",
"modified" : "2025-07-29T13:05:27Z",
"published" : "2024-02-21T00:31:31Z",
"aliases" : [ "CVE-2021-29038" ],
"summary" : "Liferay Portal and Liferay DXP Does Not Obfuscate Password Reminder Answers",
"details" : "In Liferay Impl before 5.18.4, Liferay Users Admin Web before 5.0.33, Liferay Login Web before 5.0.18, and Liferay Commerce Account Web before 3.0.7 from Liferay Portal (7.2.0 through 7.3.5), and older unsupported versions, and Liferay DXP 7.3 before fix pack 1, 7.2 before fix pack 17, and older unsupported versions does not obfuscate password reminder answers on the page, which allows attackers to use man-in-the-middle or shoulder surfing attacks to steal user's password reminder answers.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.liferay.portal:portal-impl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.18.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.liferay:com.liferay.users.admin.web"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.0.33"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.liferay:com.liferay.login.web"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.0.18"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.liferay.commerce:com.liferay.commerce.account.web"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.liferay.portal:release.dxp.bom"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "7.2.10.fp17"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.liferay.portal:release.dxp.bom"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.3.0"
}, {
"fixed" : "7.3.10.fp1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-29038"
}, {
"type" : "WEB",
"url" : "https://github.com/liferay/liferay-portal/commit/5e2da784aeefce64107abd0411590db2b55faf0b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/liferay/liferay-portal"
}, {
"type" : "WEB",
"url" : "https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2021-29038"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-640" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-29T13:05:27Z",
"nvd_published_at" : "2024-02-20T22:15:08Z"
}
}