# CVE-2025-48734: Apache Commons BeanUtils: PropertyUtilsBean does not suppresses an enum's declaredClass property by default

> Attackers can access enum class loaders via declaredClass property to execute arbitrary code if external input controls property paths.

- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 28 May 2025
- **Updated:** 29 Apr 2026
- **Also known as:** ALSA-2025:9114, ALSA-2025:9166, AZL-109472, CLEANSTART-2026-CD91859, CLEANSTART-2026-FV16777, CLSA-2025-1754006614, CLSA-2026-1780361388, CLSA-2026-1782435541, CLSA-2026-1784077478, CLSA-2026-1788757915, DEBIAN-CVE-2025-48734, DLA-4229-1, ECHO-9c6d-1a9a-a0fd, GHSA-wxr5-93ph-8wr9, MGASA-2025-0299, MINI-2cxh-ppgj-g2hp, MINI-2j52-wf6v-mmh3, MINI-3cv8-9wvv-5c6g, MINI-59cr-8g3w-8832, MINI-665m-4pcp-q27m, MINI-9m2c-5qc5-3pxh, MINI-fw6x-hw6c-62qx, MINI-gf7v-4mf2-rg23, MINI-gpqc-vx7g-336f, MINI-mxrw-j294-9rc9, MINI-p2qj-c8mw-3m7h, MINI-q8h7-v5pq-9rpm, MINI-qgrj-2f6x-9963, MINI-rpvj-hhqf-7hqf, MINI-v2vx-7h57-xj66, MINI-vwp9-gf3w-qx35, MINI-x8xg-3rm7-h6qv, MINI-x9f4-3x3p-m2v6, OESA-2025-1715, OESA-2025-1803, RHLW-2026-1a7bd97b99988e1c, RHLW-2026-89f4dbc7818c5084, RHLW-2026-be2f564b0bee4a36, RHSA-2025:10814, RHSA-2025:15810, RHSA-2025:15811, RHSA-2025:15812, RHSA-2025:15813, RHSA-2025:15814, RHSA-2025:15815, RHSA-2025:15816, RHSA-2025:15817, RHSA-2025:9114, RHSA-2025:9115, RHSA-2025:9166, RHSA-2025:9696, RLSA-2025:9114, RLSA-2025:9166, ROOT-APP-MAVEN-CVE-2025-48734, SUSE-SU-2025:01815-1, UBUNTU-CVE-2025-48734, USN-8322-1, openSUSE-SU-2025:15175-1

## What is CVE-2025-48734?

CVE-2025-48734 is a high-severity vulnerability in Apache Commons BeanUtils 1.x, published on 28 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.

### Official 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.

Weakness: CWE-284 (Improper Access Control)

## Which versions are affected by CVE-2025-48734?

4 open source packages ship an affected version, including org.apache.commons:commons-beanutils2 and commons-beanutils:commons-beanutils. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.apache.commons:commons-beanutils2` | Maven | From 2.0.0-M1 | 2.0.0-M2 |
| `org.apache.commons:commons-beanutils2` | Maven | From 2.0.0-M1 | 2.0.0-M2 |
| `commons-beanutils:commons-beanutils` | Maven | From 1.0 | 1.11.0 |
| `commons-beanutils:commons-beanutils` | Maven | From 1.0 | 1.11.0 |
| `apache-commons-beanutils` | AlmaLinux:10 | All versions | 1.9.4-21.el10_0 |
| `apache-commons-beanutils-javadoc` | AlmaLinux:10 | All versions | 1.9.4-21.el10_0 |
| `apache-commons-beanutils` | AlmaLinux:9 | All versions | 1.9.4-10.el9_6 |
| `apache-commons-beanutils` | Red Hat:enterprise_linux:10.0 | All versions | 0:1.9.4-21.el10_0 |
| `apache-commons-beanutils-javadoc` | Red Hat:enterprise_linux:10.0 | All versions | 0:1.9.4-21.el10_0 |
| `apache-commons-beanutils` | Red Hat:enterprise_linux:9::crb | All versions | 0:1.9.4-10.el9_6 |
| `eap7-apache-commons-beanutils` | Red Hat:jboss_enterprise_application_platform:7.4::el7 | All versions | 0:1.11.0-1.redhat_00001.1.el7eap |
| `eap7-apache-commons-beanutils` | Red Hat:jboss_enterprise_application_platform:7.4::el8 | All versions | 0:1.11.0-1.redhat_00001.1.el8eap |
| `eap7-apache-commons-beanutils` | Red Hat:jboss_enterprise_application_platform:7.4::el9 | All versions | 0:1.11.0-1.redhat_00001.1.el9eap |
| `jenkins` | Red Hat:ocp_tools:4.12::el8 | All versions | 0:2.516.2.1756902453-3.el8 |
| `jenkins-2-plugins` | Red Hat:ocp_tools:4.12::el8 | All versions | 0:4.12.1756902839-1.el8 |
| `jenkins` | Red Hat:ocp_tools:4.13::el8 | All versions | 0:2.516.2.1756902120-3.el8 |
| `jenkins-2-plugins` | Red Hat:ocp_tools:4.13::el8 | All versions | 0:4.13.1756901992-1.el8 |
| `jenkins` | Red Hat:ocp_tools:4.14::el8 | All versions | 0:2.516.2.1757087588-3.el8 |
| `jenkins-2-plugins` | Red Hat:ocp_tools:4.14::el8 | All versions | 0:4.14.1757087858-1.el8 |
| `jenkins` | Red Hat:ocp_tools:4.15::el8 | All versions | 0:2.516.2.1756738247-3.el8 |
| `jenkins-2-plugins` | Red Hat:ocp_tools:4.15::el8 | All versions | 0:4.15.1756735456-1.el8 |
| `jenkins` | Red Hat:ocp_tools:4.16::el9 | All versions | 0:2.516.2.1756733848-3.el9 |
| `jenkins-2-plugins` | Red Hat:ocp_tools:4.16::el9 | All versions | 0:4.16.1756734507-1.el9 |
| `jenkins` | Red Hat:ocp_tools:4.17::el9 | All versions | 0:2.516.2.1756732303-3.el9 |
| `jenkins-2-plugins` | Red Hat:ocp_tools:4.17::el9 | All versions | 0:4.17.1756732064-1.el9 |
| `jenkins` | Red Hat:ocp_tools:4.18::el9 | All versions | 0:2.516.2.1756731431-3.el9 |
| `jenkins-2-plugins` | Red Hat:ocp_tools:4.18::el9 | All versions | 0:4.18.1756731677-1.el9 |
| `jenkins` | Red Hat:ocp_tools:4.19::el9 | All versions | 0:2.516.2.1756903379-3.el9 |
| `jenkins-2-plugins` | Red Hat:ocp_tools:4.19::el9 | All versions | 0:4.19.1756901647-1.el9 |
| `apache-commons-beanutils` | Red Hat:rhel_els:7 | All versions | 0:1.8.3-15.el7_9.1 |
| `apache-commons-beanutils-javadoc` | Red Hat:rhel_els:7 | All versions | 0:1.8.3-15.el7_9.1 |
| `apache-commons-beanutils` | Red Hat:rhel_eus:9.4::crb | All versions | 0:1.9.4-9.el9_4.1 |
| `apache-commons-beanutils` | Rocky Linux:10 | All versions | 0:1.9.4-21.el10_0 |
| `apache-commons-beanutils` | Rocky Linux:9 | All versions | 0:1.9.4-10.el9_6 |
| `apache-commons-beanutils` | SUSE:Enterprise Storage 7.1 | All versions | 1.11.0-150200.3.9.1 |
| `apache-commons-beanutils` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.11.0-150200.3.9.1 |
| `apache-commons-beanutils` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 1.11.0-150200.3.9.1 |
| `apache-commons-beanutils` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 1.11.0-150200.3.9.1 |
| `apache-commons-beanutils` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 1.11.0-150200.3.9.1 |
| `apache-commons-beanutils` | SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | All versions | 1.11.0-150200.3.9.1 |

Products: Apache Commons Beanutils.

## How do I fix CVE-2025-48734?

Upgrade org.apache.commons:commons-beanutils2 to 2.0.0-M2 or later.

## Is CVE-2025-48734 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-48734 exists.

Public exploit code:

- CVE-2025-48734 - Affects Apache Commons BeanUtils in versions prior to 1.11.0 (and the 2.x branch before 2.0.0-M2). (github_poc): https://github.com/h3raklez/CVE-2025-48734

## Other vulnerabilities in Apache Commons BeanUtils 1.x

- [CVE-2014-0114](https://insights.sbomify.com/CVE-2014-0114/): Arbitrary code execution in Apache Commons BeanUtils (high 7.5)
- [CVE-2019-10086](https://insights.sbomify.com/CVE-2019-10086/): Insecure Deserialization in Apache Commons Beanutils (high 7.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-48734 and fix it if it is affected.

What it is: CVE-2025-48734 is a high-severity vulnerability in Apache Commons BeanUtils 1.x, published on 28 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-48734 exists.

Affected packages and fixed versions:
- org.apache.commons:commons-beanutils2 (Maven): affected from 2.0.0-M1; fixed in 2.0.0-M2
- org.apache.commons:commons-beanutils2 (Maven): affected from 2.0.0-M1; fixed in 2.0.0-M2
- commons-beanutils:commons-beanutils (Maven): affected from 1.0; fixed in 1.11.0
- commons-beanutils:commons-beanutils (Maven): affected from 1.0; fixed in 1.11.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-48734/ (Markdown: https://insights.sbomify.com/CVE-2025-48734/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-48734
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-48734
- OSV: https://osv.dev/vulnerability/CVE-2025-48734

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-48734/
Summaries are generated and may contain mistakes; the official description above is the record.
