CVE-2025-32959: Cuba core Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-w3mp-6vrj-875g
CVSS 6.5
CWE-770
Published
Advisory Summary

CVE-2025-32959 is a MODERATE (CVSS 6.5) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Cuba core libraries in the Maven ecosystem. The issue involves cuba has a dos in the file storage. Remediation is available by upgrading affected packages to version 7.2.23.

CVE-2025-32959 at a Glance

CVE Identifier CVE-2025-32959
GHSA Identifier GHSA-w3mp-6vrj-875g
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Cuba core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2025-32959

To remediate this vulnerability, upgrade all affected Cuba core 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.haulmont.cuba:cuba-core fixed: 7.2.23
<dependency>
    <groupId>com.haulmont.cuba</groupId>
    <artifactId>cuba-core</artifactId>
    <version>7.2.23</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.haulmont.cuba

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=com.haulmont.cuba

Analyze the terminal output to locate any version of Cuba core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.2.23), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.haulmont.cuba 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Cuba core, 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

### Impact The local file storage implementation does not restrict the size of uploaded files. An attacker could exploit this by uploading excessively large files, potentially causing the server to run out of space and return HTTP 500 error, resulting in a denial of service. The severity of the vulnerability is mitigated by the fact that the application UI and the generic REST API are typically accessible only to authenticated users. ### Patches The problem has been fixed in CUBA 7.2.23. ### Workarounds A workaround for those who are unable to upgrade: [Disable Files Endpoint in CUBA Application](https://docs.jmix.io/jmix/files-vulnerabilities.html#disable-files-endpoint-in-cuba-application). ### References [Files Functionality Vulnerabilities :: Jmix Documentation](https://docs.jmix.io/jmix/files-vulnerabilities.html) Similar vulnerability in Jmix: [DoS in the Local File Storage · Advisory · jmix-framework/jmix](https://github.com/jmix-framework/jmix/security/advisories/GHSA-f3gv-cwwh-758m)

CVE-2025-32959 Affected Cuba core Versions

1 component(s)
Fixed Versions:
7.2.23
Product / Package Ecosystem Affected Versions Fixed Version
com.haulmont.cuba:cuba-core
Maven
< 7.2.23
7.2.23

References

Frequently Asked Questions

What is CVE-2025-32959?
CVE-2025-32959 is a security vulnerability in Cuba core involving Cuba has a DoS in the File Storage under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Cuba core versions are affected?
Affected versions include releases prior to 7.2.23 across affected packages: com.haulmont.cuba:cuba-core.
What version fixes CVE-2025-32959?
Upgrading to 7.2.23 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cuba-core affected?
Yes, com.haulmont.cuba:cuba-core is affected in releases prior to 7.2.23. Upgrade your dependency to 7.2.23 or later.
What is the CVSS score of CVE-2025-32959?
CVE-2025-32959 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2025-32959?
CVE-2025-32959 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Maven dependencies for CVE-2025-32959?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.haulmont.cuba'. 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-w3mp-6vrj-875g",
  "modified" : "2025-04-23T15:21:19Z",
  "published" : "2025-04-22T16:57:36Z",
  "aliases" : [ "CVE-2025-32959" ],
  "summary" : "Cuba has a DoS in the File Storage",
  "details" : "### Impact\n\nThe local file storage implementation does not restrict the size of uploaded files. An attacker could exploit this by uploading excessively large files, potentially causing the server to run out of space and return HTTP 500 error, resulting in a denial of service.\n\nThe severity of the vulnerability is mitigated by the fact that the application UI and the generic REST API are typically accessible only to authenticated users.\n\n### Patches\n\nThe problem has been fixed in CUBA 7.2.23.\n\n### Workarounds\n\nA workaround for those who are unable to upgrade: [Disable Files Endpoint in CUBA Application](https://docs.jmix.io/jmix/files-vulnerabilities.html#disable-files-endpoint-in-cuba-application).\n\n### References\n\n[Files Functionality Vulnerabilities :: Jmix Documentation](https://docs.jmix.io/jmix/files-vulnerabilities.html)\n\nSimilar vulnerability in Jmix: [DoS in the Local File Storage · Advisory · jmix-framework/jmix](https://github.com/jmix-framework/jmix/security/advisories/GHSA-f3gv-cwwh-758m)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.haulmont.cuba:cuba-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.2.23"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cuba-platform/cuba/security/advisories/GHSA-w3mp-6vrj-875g"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jmix-framework/jmix/security/advisories/GHSA-f3gv-cwwh-758m"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-32959"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cuba-platform/cuba/commit/42b6c00fd0572b8e52ae31afd1babc827a3161a1"
  }, {
    "type" : "WEB",
    "url" : "https://docs.jmix.io/jmix/files-vulnerabilities.html"
  }, {
    "type" : "WEB",
    "url" : "https://docs.jmix.io/jmix/files-vulnerabilities.html#disable-files-endpoint-in-cuba-application"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cuba-platform/cuba"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-22T16:57:36Z",
    "nvd_published_at" : "2025-04-22T18:16:00Z"
  }
}