Skip to main content
Public proof of conceptFix available

CVE-2025-48734

Apache Commons BeanUtils: PropertyUtilsBean does not suppresses an enum's declaredClass property by default

A public proof of concept exists; no exploitation attested.

  • Published2025-05-28
  • Fixed in1.11.0
  • WeaknessCWE-284

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2025-05-2813:32CVE publishedCNA
  2. 2025-05-2814:15CVE publishedNVD

Versions per branch

NVD · OSV
Apache commons beanutils
BranchAffectedFixed in
1.x≥ 1.0, < 1.11.01.11.0
2.0= 2.0.0no fix published
commons-beanutils2
BranchAffectedFixed in
2.0≥ 2.0.0-M1, < 2.0.0-M22.0.0-M2

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Apache Software Foundation Apache Commons BeanUtils 1.xother versions: not affected

    package commons-beanutils:commons-beanutilshttps://repo.maven.apache.org/maven2

    Affected
    • ≥ 1.0, < 1.11.0fixed in 1.11.0maven
  • Apache Software Foundation Apache Commons BeanUtils 2.xother versions: not affected

    package org.apache.commons:commons-beanutils2https://repo.maven.apache.org/maven2

    Affected
    • ≥ 2.0.0-M1, < 2.0.0-M2fixed in 2.0.0-M2maven

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-05-28

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • antRocky Linux:8all versions · fixed in 0:1.10.5-1.module+el8.10.0+2003+8aeac9cb
  • antRocky Linux:8all versions · fixed in 0:1.10.5-1.module+el8.3.0+74+855e3f5d
  • antAlmaLinux:8all versions · fixed in 1.10.5-1.module_el8.0.0+6004+2fc32706and 21 other packages
  • ant-contribRocky Linux:8all versions · fixed in 0:1.0-0.32.b3.module+el8.3.0+74+855e3f5d
  • ant-contribAlmaLinux:8all versions · fixed in 1.0-0.32.b3.module_el8.0.0+6004+2fc32706and 1 other package
  • antlrRocky Linux:8all versions · fixed in 0:2.7.7-56.module+el8.3.0+74+855e3f5d
  • antlr-C++AlmaLinux:8all versions · fixed in 2.7.7-56.module_el8.0.0+6004+2fc32706and 3 other packages
  • antlr-C++AlmaLinux:8all versions · fixed in 2.7.7-56.module_el8.5.0+197+0c7f4e0a

511 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-48734 Red Hat Product Security1,281 products fixed · 46 known affected

    commons-beanutils: Apache Commons BeanUtils: PropertyUtilsBean does not suppresses an enum's declaredClass property by default

    commons-beanutils as a component of A-MQ Clients 2 · commons-beanutils-core as a component of A-MQ Clients 2 · commons-beanutils as a component of Red Hat AMQ Clients · +43 more

  • RHSA-2025:16667 Red Hat Product Security38 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.15 security update

  • RHSA-2025:16668 Red Hat Product Security15 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.1.12 on RHEL 7 security update

  • RHSA-2025:16409 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat AMQ Broker 7.12.5 release and security update

  • RHSA-2025:15814 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Product OCP Tools 4.17 OpenShift Jenkins security update

  • RHSA-2025:15816 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Product OCP Tools 4.14 OpenShift Jenkins security update

28 more advisories

Full record on NVD

Fix

  1. Update Apache commons beanutils to 1.11.0
  2. Vendor fix Red Hat Product Security RHSA-2025:16667 · 38 productsBefore applying this update, ensure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications, configuration files, databases and database settings. For details on how to apply this update, refer to: https://access…
  3. Vendor fix Red Hat Product Security RHSA-2025:16409 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings. The References section of this erratum contains a download link (you must log in to download the update).
  4. Vendor fix Red Hat Product Security RHSA-2025:15814 · 4 productsFor more information on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix Red Hat Product Security RHSA-2025:12511 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  6. Vendor fix Red Hat Product Security RHSA-2025:10931 · 1 productBefore applying the update, make sure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications, configuration files, databases and database settings. For details on how to apply this update, refer to: https://acce…
  7. Vendor fix Red Hat Product Security RHSA-2025:10814 · 3 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2025-05-28
Last Modified
2026-11-03
NVD status
Modified
GitHub Advisory
GHSA-wxr5-93ph-8wr9

Frequently asked questions

What is CVE-2025-48734?

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.

Is CVE-2025-48734 actively exploited?

A proof-of-concept exploit exists for CVE-2025-48734, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2025-48734?

CVE-2025-48734 has a CVSS v3 base score of 8.8 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running commons-beanutils? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record