Vulnerabilities in pkg:maven/org.apache.commons/commons-fileupload2-core

PACKAGE
Advisory Identifier: GHSA-vv7r-c36w-3prj
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.commons/commons-fileupload2-core

1 Known Advisory Record(s)

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

CVE Identifier CVE-2025-48976
GHSA Identifier GHSA-vv7r-c36w-3prj
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Commons fileupload
Package Ecosystem Maven
Published Date
Last Updated

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.

commons-fileupload:commons-fileupload fixed: 1.6.0
<dependency>
    <groupId>commons-fileupload</groupId>
    <artifactId>commons-fileupload</artifactId>
    <version>1.6.0</version>
</dependency>
org.apache.commons:commons-fileupload2-core fixed: 2.0.0-M4
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-fileupload2-core</artifactId>
    <version>2.0.0-M4</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=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

Allocation of resources for multipart headers with insufficient limits enabled a DoS vulnerability in Apache Commons FileUpload. This issue affects Apache Commons FileUpload: from 1.0 before 1.6; from 2.0.0-M1 before 2.0.0-M4. Users are recommended to upgrade to versions 1.6 or 2.0.0-M4, which fix the issue.

CVE-2025-48976 Affected Commons fileupload Versions

2 component(s)
Fixed Versions:
1.6.02.0.0-M4
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?
CVE-2025-48976 is a security vulnerability in Commons fileupload involving FileUpload DoS via part headers under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Commons fileupload versions are affected?
Affected versions include releases prior to 1.6.0, 2.0.0-M4 across affected packages: commons-fileupload:commons-fileupload, org.apache.commons:commons-fileupload2-core.
What version fixes CVE-2025-48976?
Upgrading to 1.6.0, 2.0.0-M4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is commons-fileupload affected?
Yes, commons-fileupload:commons-fileupload is affected in releases prior to 1.6.0. Upgrade your dependency to 1.6.0 or later.
Is commons-fileupload2-core affected?
Yes, org.apache.commons:commons-fileupload2-core is affected in releases prior to 2.0.0-M4. Upgrade your dependency to 2.0.0-M4 or later.
What CWE is associated with CVE-2025-48976?
CVE-2025-48976 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-48976?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=commons-fileupload'. 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-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"
  }
}