Loading...
Skip to main content

CVE-2025-48734 — Vulnerability in...

HIGH

Apache Commons Improper Access Control vulnerability

Published May 28, 2025Updated September 10, 2026Source: osv

Summary

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.

Advisory Timeline

  • First published May 28, 2025 (502 days ago).
  • Last revised September 10, 2026 — 470 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update commons-beanutils:commons-beanutils to 1.11.0 or later
<!-- Update pom.xml dependency version to 1.11.0 for commons-beanutils:commons-beanutils -->
Maven
Update org.apache.commons:commons-beanutils2 to 2.0.0-M2 or later
<!-- Update pom.xml dependency version to 2.0.0-M2 for org.apache.commons:commons-beanutils2 -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: maven (2).

PackageEcosystemAffectedFixed In
commons-beanutils:commons-beanutils
maven
1.0, 1.10.0, 1.10.1, 1.2 (+17 more)1.11.0
org.apache.commons:commons-beanutils2
maven
2.0.0-M12.0.0-M2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2025-48734?
Apache Commons Improper Access Control vulnerability This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2025-48734?
CVE-2025-48734 affects commons-beanutils:commons-beanutils and org.apache.commons:commons-beanutils2. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-48734 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-wxr5-93ph-8wr9

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies