# CVE-2021-29040: Liferay Portal and Liferay DXP Reveals Data via Overly Verbose Error Messages

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.08%, higher than 65% of CVEs (2026-11-30)
- Published: 2021-05-16T15:03:16.000Z
- Modified: 2026-07-09T01:16:50.860Z
- Also known as: GHSA-87x7-pwrx-jch7
- Weaknesses: CWE-209
- Assigned by: mitre

## Description

The JSON web services in Liferay Portal 7.3.4 and earlier, and Liferay DXP 7.0 before fix pack 97, 7.1 before fix pack 20 and 7.2 before fix pack 10 may provide overly verbose error messages, which allows remote attackers to use the contents of error messages to help launch another, more focused attacks via crafted inputs.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- com.liferay.portal:release.portal.bom (Maven): before 7.3.5
- com.liferay.portal:release.dxp.bom (Maven): before 7.0.10.fp97; from 7.1.0 before 7.1.10.fp20; from 7.2.0 before 7.2.10.fp10
- liferay digital_experience_platform: before 7.0; 7.0
- liferay liferay_portal: up to 7.3.4

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/id/120743429> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29040> (advisory)
- <https://github.com/liferay/liferay-portal> (package)
- <https://web.archive.org/web/20220828222656/https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/id/120743429> (web)
- <http://liferay.com> (web)

## Sources

- CVE List: [CVE-2021-29040](https://www.cve.org/CVERecord?id=CVE-2021-29040), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-87x7-pwrx-jch7](https://github.com/advisories/GHSA-87x7-pwrx-jch7), CC-BY-4.0, modified 2025-05-28
- NVD: [CVE-2021-29040](https://nvd.nist.gov/vuln/detail/CVE-2021-29040), Public domain, modified 2026-07-09

---

Page: https://cve.day/CVE-2021-29040 · Whole record: https://cve.day/CVE-2021-29040.json · Rebuilt by cve.day 2026-11-25T22:58:01.433Z
