Skip to content

Commit d4ab75f

Browse files
committed
Document release of CVE-2025-48734
CVE-2025-48734: Apache Commons BeanUtils: PropertyUtilsBean does not suppresses an enum's declaredClass property by default (https://www.cve.org/CVERecord?id=CVE-2025-48734)
1 parent c6bb32e commit d4ab75f

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
</release>
3535
<release version="2.0.0-M2" date="2025-05-25" description="This is a major release and requires Java 8.">
3636
<!-- FIX -->
37+
<action type="fix" dev="ggregory" due-to="Raj, Muthukumar Marikani, Gary Gregory">CVE-2025-48734: Apache Commons BeanUtils: PropertyUtilsBean does not suppresses an enum's declaredClass property by default (https://www.cve.org/CVERecord?id=CVE-2025-48734).</action>
3738
<action type="fix" dev="ggregory" due-to="Gary Gregory">Javadoc is missing its Overview page.</action>
3839
<action type="fix" dev="ggregory" due-to="Gary Gregory">Remove -nouses directive from maven-bundle-plugin. OSGi package imports now state 'uses' definitions for package imports, this doesn't affect JPMS (from org.apache.commons:commons-parent:80).</action>
3940
<action type="fix" dev="ggregory" due-to="Gary Gregory">The class org.apache.commons.beanutils2.PropertyUtils is now final (the class only contains static methods).</action>

src/site/xdoc/security.xml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@
4949
level property access by default, thus protecting against
5050
CVE-2014-0114.
5151
</li>
52-
5352
<li>Mitigation: 1.X users should migrate to 1.9.4.</li>
54-
5553
<li>Credit: This was discovered by Melloware (https://melloware.com/).</li>
5654
</ul>
5755
<p>
@@ -95,6 +93,26 @@ public void testAllowAccessToClassProperty() throws Exception {
9593
<li>http://commons.apache.org/proper/commons-beanutils/</li>
9694
</ol>
9795
</subsection>
96+
<subsection name="CVE-2025-48734">
97+
<ul>
98+
<li><a href="https://www.cve.org/CVERecord?id=CVE-2025-48734">CVE-2025-48734</a>: Apache Commons BeanUtils: PropertyUtilsBean does not suppresses an enum's declaredClass property by default</li>
99+
<li>Severity: important</li>
100+
<li>Affected versions: 1.x 1.0 before 1.11.0</li>
101+
<li>Affected versions: 2.x 2.0.0-M1 before 2.0.0-M2</li>
102+
<li>Description: Improper Access Control vulnerability in Apache Commons.
103+
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.
104+
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().
105+
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.
106+
This issue affects Apache Commons BeanUtils 1.x before 1.11.0, and 2.x before 2.0.0-M2.
107+
</li>
108+
<li>Mitigation: Users of the artifact commons-beanutils:commons-beanutils 1.x are recommended to upgrade to version 1.11.0, which fixes the issue.</li>
109+
<li>Mitigation: 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.</li>
110+
<li>Credit: Raj (mailto:[email protected]) (reporter)</li>
111+
<li>Credit: Muthukumar Marikani (mailto:[email protected]) (finder)</li>
112+
<li>Reference: https://commons.apache.org/</li>
113+
<li>Reference: <a href="https://www.cve.org/CVERecord?id=CVE-2025-48734">CVE-2025-48734</a></li>
114+
</ul>
115+
</subsection>
98116
</section>
99117
</body>
100118
</document>

0 commit comments

Comments
 (0)