CVE-2025-43808: Com.liferay.commerce.product.type.virtual.service Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-chr3-w547-85hw
CWE-732
Published
Advisory Summary

CVE-2025-43808 is a MODERATE remote code execution vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Com.liferay.commerce.product.type.virtual.service libraries in the Maven ecosystem. The issue involves liferay portal commerce component has incorrect permission assignment for critical resource. Remediation is available by upgrading affected packages to version 4.0.47.

CVE-2025-43808 at a Glance

CVE Identifier CVE-2025-43808
GHSA Identifier GHSA-chr3-w547-85hw
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Com.liferay.commerce.product.type.virtual.service
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-43808

To remediate this vulnerability, upgrade all affected Com.liferay.commerce.product.type.virtual.service 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.commerce:com.liferay.commerce.product.type.virtual.service fixed: 4.0.47
<dependency>
    <groupId>com.liferay.commerce</groupId>
    <artifactId>com.liferay.commerce.product.type.virtual.service</artifactId>
    <version>4.0.47</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.commerce

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-43808, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.liferay.commerce

Analyze the terminal output to locate any version of Com.liferay.commerce.product.type.virtual.service in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.47), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.liferay.commerce 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-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Com.liferay.commerce.product.type.virtual.service, 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

The Commerce component in Liferay Portal 7.3.0 through 7.4.3.112, and Liferay DXP 2023.Q4.0 through 2023.Q4.8, 2023.Q3.1 through 2023.Q3.10, 7.4 GA through update 92, and 7.3 Service Pack 3 through update 35 saves virtual products uploaded to Documents and Media with guest view permission, which allows remote attackers to access and download virtual products for free via a crafted URL.

CVE-2025-43808 Affected Com.liferay.commerce.product.type.virtual.service Versions

1 component(s)
Fixed Versions:
4.0.47
Product / Package Ecosystem Affected Versions Fixed Version
com.liferay.commerce:com.liferay.commerce.product.type.virtual.service
Maven
< 4.0.47
4.0.47

References

Frequently Asked Questions

What is CVE-2025-43808?
CVE-2025-43808 is a security vulnerability in Com.liferay.commerce.product.type.virtual.service involving Liferay Portal Commerce component has Incorrect Permission Assignment for Critical Resource under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Com.liferay.commerce.product.type.virtual.service versions are affected?
Affected versions include releases prior to 4.0.47 across affected packages: com.liferay.commerce:com.liferay.commerce.product.type.virtual.service.
What version fixes CVE-2025-43808?
Upgrading to 4.0.47 (or the latest patched release for your respective branch) resolves the vulnerability.
Is com.liferay.commerce.product.type.virtual.service affected?
Yes, com.liferay.commerce:com.liferay.commerce.product.type.virtual.service is affected in releases prior to 4.0.47. Upgrade your dependency to 4.0.47 or later.
What CWE is associated with CVE-2025-43808?
CVE-2025-43808 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check Maven dependencies for CVE-2025-43808?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.liferay.commerce'. 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-chr3-w547-85hw",
  "modified" : "2025-12-16T23:46:58Z",
  "published" : "2025-09-19T21:31:21Z",
  "aliases" : [ "CVE-2025-43808" ],
  "summary" : "Liferay Portal Commerce component has Incorrect Permission Assignment for Critical Resource",
  "details" : "The Commerce component in Liferay Portal 7.3.0 through 7.4.3.112, and Liferay DXP 2023.Q4.0 through 2023.Q4.8, 2023.Q3.1 through 2023.Q3.10, 7.4 GA through update 92, and 7.3 Service Pack 3 through update 35 saves virtual products uploaded to Documents and Media with guest view permission, which allows remote attackers to access and download virtual products for free via a crafted URL.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.liferay.commerce:com.liferay.commerce.product.type.virtual.service"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.47"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-43808"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/liferay/liferay-portal"
  }, {
    "type" : "WEB",
    "url" : "https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/CVE-2025-43808"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-732" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-19T23:05:46Z",
    "nvd_published_at" : "2025-09-19T21:15:35Z"
  }
}