Vulnerabilities in pkg:maven/org.apache.commons/commons-fileupload2-core
PACKAGECVE-2025-48976 is a HIGH denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Commons fileupload libraries in the Maven ecosystem. The issue involves fileupload dos via part headers. Remediation is available by upgrading affected packages to version 1.6.0, 2.0.0-M4.
pkg:maven/org.apache.commons/commons-fileupload2-core
Vulnerability advisories affecting package pkg:maven/org.apache.commons/commons-fileupload2-core. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-vv7r-c36w-3prj | CVE-2025-48976 | HIGH | Apache Commons FileUpload, Apache Commons FileUpload: FileUpload DoS via part headers |
CVE-2025-48976 at a Glance
How to Fix CVE-2025-48976
To remediate this vulnerability, upgrade all affected Commons fileupload 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>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-fileupload2-core</artifactId>
<version>2.0.0-M4</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=commons-fileupload
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-48976, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=commons-fileupload
Analyze the terminal output to locate any version of Commons fileupload in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=commons-fileupload 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 Commons fileupload, 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-48976 Affected Commons fileupload Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
commons-fileupload:commons-fileupload
|
Maven |
≥ 1.0
< 1.6.0
|
1.6.0
|
|
org.apache.commons:commons-fileupload2-core
|
Maven |
≥ 2.0.0-M1
< 2.0.0-M4
|
2.0.0-M4
|
References
Frequently Asked Questions
What is CVE-2025-48976?
Which Commons fileupload versions are affected?
What version fixes CVE-2025-48976?
Is commons-fileupload affected?
Is commons-fileupload2-core affected?
What CWE is associated with CVE-2025-48976?
How can I check Maven dependencies for CVE-2025-48976?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vv7r-c36w-3prj",
"modified" : "2025-11-03T22:59:04Z",
"published" : "2025-06-16T15:32:28Z",
"aliases" : [ "CVE-2025-48976" ],
"summary" : "Apache Commons FileUpload, Apache Commons FileUpload: FileUpload DoS via part headers",
"details" : "Allocation of resources for multipart headers with insufficient limits enabled a DoS vulnerability in Apache Commons FileUpload.\n\nThis issue affects Apache Commons FileUpload: from 1.0 before 1.6; from 2.0.0-M1 before 2.0.0-M4.\n\nUsers are recommended to upgrade to versions 1.6 or 2.0.0-M4, which fix the issue.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "commons-fileupload:commons-fileupload"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0"
}, {
"fixed" : "1.6.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.commons:commons-fileupload2-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0-M1"
}, {
"fixed" : "2.0.0-M4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48976"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/commons-fileupload/commit/b247774a72a044f5d5380ae947140ee80af4e78b"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/commons-fileupload/commit/bf68f63cfb312ef4710fb3dfb4d8e4e1665f4497"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/97790a35a27d236fa053e660676c3f8196284d93"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/commons-fileupload"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/fbs3wrr3p67vkjcxogqqqqz45pqtso12"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2025/07/msg00008.html"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2025/07/msg00009.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2025/06/16/4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-16T16:52:30Z",
"nvd_published_at" : "2025-06-16T15:15:24Z"
}
}