CVE-2025-48734: Commons beanutils Apache Commons Improper Access Control Vulnerability

HIGH
Advisory Identifier: GHSA-wxr5-93ph-8wr9
CVSS 8.8
CWE-284
Published
Advisory Summary

CVE-2025-48734 is a HIGH (CVSS 8.8) apache commons improper access control vulnerability (CWE-284: Improper Access Control) affecting Commons beanutils libraries in the Maven ecosystem. The issue involves apache commons improper access control vulnerability. Remediation is available by upgrading affected packages to version 1.11.0, 2.0.0-M2.

CVE-2025-48734 at a Glance

CVE Identifier CVE-2025-48734
GHSA Identifier GHSA-wxr5-93ph-8wr9
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-284: Improper Access Control
Affected Product Commons beanutils
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.8

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:H/I:H/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 High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-48734

To remediate this vulnerability, upgrade all affected Commons beanutils 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-beanutils:commons-beanutils fixed: 1.11.0
<dependency>
    <groupId>commons-beanutils</groupId>
    <artifactId>commons-beanutils</artifactId>
    <version>1.11.0</version>
</dependency>
org.apache.commons:commons-beanutils2 fixed: 2.0.0-M2
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-beanutils2</artifactId>
    <version>2.0.0-M2</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-beanutils

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=commons-beanutils

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

Note: The mvn dependency:tree -Dincludes=commons-beanutils 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Commons beanutils, 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

Improper Access Control vulnerability in Apache Commons. A special BeanIntrospector class was added in version 1.9.2. This can be used to stop attackers from using the declared class property of Java enum objects to get access to the classloader. However this protection was not enabled by default. PropertyUtilsBean (and consequently BeanUtilsBean) now disallows declared class level property access by default. Releases 1.11.0 and 2.0.0-M2 address a potential security issue when accessing enum properties in an uncontrolled way. If an application using Commons BeanUtils passes property paths from an external source directly to the getProperty() method of PropertyUtilsBean, an attacker can access the enum’s class loader via the “declaredClass” property available on all Java “enum” objects. Accessing the enum’s “declaredClass” allows remote attackers to access the ClassLoader and execute arbitrary code. The same issue exists with PropertyUtilsBean.getNestedProperty(). Starting in versions 1.11.0 and 2.0.0-M2 a special BeanIntrospector suppresses the “declaredClass” property. Note that this new BeanIntrospector is enabled by default, but you can disable it to regain the old behavior; see section 2.5 of the user's guide and the unit tests. This issue affects Apache Commons BeanUtils 1.x before 1.11.0, and 2.x before 2.0.0-M2.Users of the artifact commons-beanutils:commons-beanutils 1.x are recommended to upgrade to version 1.11.0, which fixes the issue. Users of the artifact org.apache.commons:commons-beanutils2 2.x are recommended to upgrade to version 2.0.0-M2, which fixes the issue.

CVE-2025-48734 Affected Commons beanutils Versions

2 component(s)
Fixed Versions:
1.11.02.0.0-M2
Product / Package Ecosystem Affected Versions Fixed Version
commons-beanutils:commons-beanutils
Maven
≥ 1.0
< 1.11.0
1.11.0
org.apache.commons:commons-beanutils2
Maven
≥ 2.0.0-M1
< 2.0.0-M2
2.0.0-M2

References

Frequently Asked Questions

What is CVE-2025-48734?
CVE-2025-48734 is a security vulnerability in Commons beanutils involving Apache Commons Improper Access Control vulnerability under CWE-284: Improper Access Control.
Which Commons beanutils versions are affected?
Affected versions include releases prior to 1.11.0, 2.0.0-M2 across affected packages: commons-beanutils:commons-beanutils, org.apache.commons:commons-beanutils2.
What version fixes CVE-2025-48734?
Upgrading to 1.11.0, 2.0.0-M2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is commons-beanutils affected?
Yes, commons-beanutils:commons-beanutils is affected in releases prior to 1.11.0. Upgrade your dependency to 1.11.0 or later.
Is commons-beanutils2 affected?
Yes, org.apache.commons:commons-beanutils2 is affected in releases prior to 2.0.0-M2. Upgrade your dependency to 2.0.0-M2 or later.
What is the CVSS score of CVE-2025-48734?
CVE-2025-48734 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2025-48734?
CVE-2025-48734 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Maven dependencies for CVE-2025-48734?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=commons-beanutils'. 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-wxr5-93ph-8wr9",
  "modified" : "2025-11-03T21:33:58Z",
  "published" : "2025-05-28T15:34:34Z",
  "aliases" : [ "CVE-2025-48734" ],
  "summary" : "Apache Commons Improper Access Control vulnerability",
  "details" : "Improper Access Control vulnerability in Apache Commons.\n\n\n\nA special BeanIntrospector class was added in version 1.9.2. This can be used to stop attackers from using the declared class property of Java enum objects to get access to the classloader. However this protection was not enabled by default. PropertyUtilsBean (and consequently BeanUtilsBean) now disallows declared class level property access by default.\n\n\n\n\n\nReleases 1.11.0 and 2.0.0-M2 address a potential security issue when accessing enum properties in an uncontrolled way. If an application using Commons BeanUtils passes property paths from an external source directly to the getProperty() method of PropertyUtilsBean, an attacker can access the enum’s class loader via the “declaredClass” property available on all Java “enum” objects. Accessing the enum’s “declaredClass” allows remote attackers to access the ClassLoader and execute arbitrary code. The same issue exists with PropertyUtilsBean.getNestedProperty().\nStarting in versions 1.11.0 and 2.0.0-M2 a special BeanIntrospector suppresses the “declaredClass” property. Note that this new BeanIntrospector is enabled by default, but you can disable it to regain the old behavior; see section 2.5 of the user's guide and the unit tests.\n\nThis issue affects Apache Commons BeanUtils 1.x before 1.11.0, and 2.x before 2.0.0-M2.Users of the artifact commons-beanutils:commons-beanutils\n\n 1.x are recommended to upgrade to version 1.11.0, which fixes the issue.\n\n\nUsers of the artifact org.apache.commons:commons-beanutils2\n\n 2.x are recommended to upgrade to version 2.0.0-M2, which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "commons-beanutils:commons-beanutils"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0"
      }, {
        "fixed" : "1.11.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.10.1"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.commons:commons-beanutils2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0-M1"
      }, {
        "fixed" : "2.0.0-M2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48734"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/commons-beanutils/commit/bd20740da25b69552ddef8523beec0837297eaf9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/commons-beanutils"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/s0hb3jkfj5f3ryx6c57zqtfohb0of1g9"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2025/06/msg00027.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/05/28/6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-28T17:37:18Z",
    "nvd_published_at" : "2025-05-28T14:15:34Z"
  }
}