CVE-2025-32959: Cuba core Denial of Service Vulnerability
MODERATECVE-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
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).
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.
<dependency>
<groupId>com.haulmont.cuba</groupId>
<artifactId>cuba-core</artifactId>
<version>7.2.23</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.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
CVE-2025-32959 Affected Cuba core Versions
1 component(s)| 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?
Which Cuba core versions are affected?
What version fixes CVE-2025-32959?
Is cuba-core affected?
What is the CVSS score of CVE-2025-32959?
What CWE is associated with CVE-2025-32959?
How can I check Maven dependencies for CVE-2025-32959?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}