Vulnerabilities in pkg:maven/com.liferay.portal/portal-impl

PACKAGE
Advisory Identifier: GHSA-mwhf-6mjm-6w3h
Advisory Summary

CVE-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.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.liferay.portal/portal-impl

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.liferay.portal/portal-impl. 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
GHSA-97gm-mcv6-cphm CVE-2010-5327 HIGH Shell command injection in Liferay Portal

CVE-2021-29038 at a Glance

CVE Identifier CVE-2021-29038
GHSA Identifier GHSA-mwhf-6mjm-6w3h
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-640: Weak Password Recovery Mechanism for Forgotten Password
Affected Product Portal impl
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

com.liferay.portal:portal-impl fixed: 5.18.4
<dependency>
    <groupId>com.liferay.portal</groupId>
    <artifactId>portal-impl</artifactId>
    <version>5.18.4</version>
</dependency>
com.liferay:com.liferay.users.admin.web fixed: 5.0.33
<dependency>
    <groupId>com.liferay</groupId>
    <artifactId>com.liferay.users.admin.web</artifactId>
    <version>5.0.33</version>
</dependency>
com.liferay:com.liferay.login.web fixed: 5.0.18
<dependency>
    <groupId>com.liferay</groupId>
    <artifactId>com.liferay.login.web</artifactId>
    <version>5.0.18</version>
</dependency>
com.liferay.commerce:com.liferay.commerce.account.web fixed: 3.0.7
<dependency>
    <groupId>com.liferay.commerce</groupId>
    <artifactId>com.liferay.commerce.account.web</artifactId>
    <version>3.0.7</version>
</dependency>
com.liferay.portal:release.dxp.bom fixed: 7.2.10.fp17
<dependency>
    <groupId>com.liferay.portal</groupId>
    <artifactId>release.dxp.bom</artifactId>
    <version>7.2.10.fp17</version>
</dependency>
com.liferay.portal:release.dxp.bom fixed: 7.3.10.fp1
<dependency>
    <groupId>com.liferay.portal</groupId>
    <artifactId>release.dxp.bom</artifactId>
    <version>7.3.10.fp1</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2021-29038 Affected Portal impl Versions

6 component(s)
Fixed Versions:
5.18.45.0.335.0.183.0.77.2.10.fp177.3.10.fp1
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?
CVE-2021-29038 is a security vulnerability in Portal impl involving Liferay Portal and Liferay DXP Does Not Obfuscate Password Reminder Answers under CWE-640: Weak Password Recovery Mechanism for Forgotten Password.
Which Portal impl versions are affected?
Affected versions include releases prior to 5.18.4, 5.0.33, 5.0.18, 3.0.7, 7.2.10.fp17, 7.3.10.fp1 across affected packages: com.liferay.portal:portal-impl, com.liferay:com.liferay.users.admin.web, com.liferay:com.liferay.login.web, com.liferay.commerce:com.liferay.commerce.account.web, com.liferay.portal:release.dxp.bom.
What version fixes CVE-2021-29038?
Upgrading to 5.18.4, 5.0.33, 5.0.18, 3.0.7, 7.2.10.fp17, 7.3.10.fp1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is portal-impl affected?
Yes, com.liferay.portal:portal-impl is affected in releases prior to 5.18.4. Upgrade your dependency to 5.18.4 or later.
Is com.liferay.users.admin.web affected?
Yes, com.liferay:com.liferay.users.admin.web is affected in releases prior to 5.0.33. Upgrade your dependency to 5.0.33 or later.
What is the CVSS score of CVE-2021-29038?
CVE-2021-29038 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2021-29038?
CVE-2021-29038 is classified under CWE-640: Weak Password Recovery Mechanism for Forgotten Password (The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.).
How can I check Maven dependencies for CVE-2021-29038?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.liferay.portal'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}