Bug 2368956 (CVE-2025-48734) - CVE-2025-48734 commons-beanutils: Apache Commons BeanUtils: PropertyUtilsBean does not suppresses an enum's declaredClass property by default
Summary: CVE-2025-48734 commons-beanutils: Apache Commons BeanUtils: PropertyUtilsBean...
Keywords:
Status: NEW
Alias: CVE-2025-48734
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2369089 2369094 2369088 2369090 2369091 2369092 2369093 2369095
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-28 14:01 UTC by OSIDB Bzimport
Modified: 2025-06-23 03:30 UTC (History)
123 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:8265 0 None None None 2025-06-05 02:19:56 UTC
Red Hat Product Errata RHSA-2025:8919 0 None None None 2025-06-11 15:34:20 UTC
Red Hat Product Errata RHSA-2025:9114 0 None None None 2025-06-16 14:56:15 UTC
Red Hat Product Errata RHSA-2025:9115 0 None None None 2025-06-16 15:02:58 UTC
Red Hat Product Errata RHSA-2025:9117 0 None None None 2025-06-16 15:04:18 UTC
Red Hat Product Errata RHSA-2025:9166 0 None None None 2025-06-17 09:05:57 UTC
Red Hat Product Errata RHSA-2025:9318 0 None None None 2025-06-23 03:30:30 UTC

Description OSIDB Bzimport 2025-05-28 14:01:19 UTC
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.

Comment 2 errata-xmlrpc 2025-06-05 02:19:47 UTC
This issue has been addressed in the following products:

  Cryostat 4 on RHEL 9

Via RHSA-2025:8265 https://access.redhat.com/errata/RHSA-2025:8265

Comment 3 errata-xmlrpc 2025-06-11 15:34:12 UTC
This issue has been addressed in the following products:

  Red Hat Build of Apache Camel 4.10 for Quarkus 3.20

Via RHSA-2025:8919 https://access.redhat.com/errata/RHSA-2025:8919

Comment 4 errata-xmlrpc 2025-06-16 14:56:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:9114 https://access.redhat.com/errata/RHSA-2025:9114

Comment 5 errata-xmlrpc 2025-06-16 15:02:49 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7
  Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8
  Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9

Via RHSA-2025:9115 https://access.redhat.com/errata/RHSA-2025:9115

Comment 6 errata-xmlrpc 2025-06-16 15:04:11 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Enterprise Application Platform 7.4.22

Via RHSA-2025:9117 https://access.redhat.com/errata/RHSA-2025:9117

Comment 8 errata-xmlrpc 2025-06-17 09:05:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:9166 https://access.redhat.com/errata/RHSA-2025:9166

Comment 9 errata-xmlrpc 2025-06-23 03:30:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:9318 https://access.redhat.com/errata/RHSA-2025:9318


Note You need to log in before you can comment on or make changes to this bug.