Vulnocalypse
Back to feed
45impact

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

Apache Software Foundation Apache Commons BeanUtils · CVE-2025-48734
0 news outlets2 CERTs and agencies0 researchers

What is it?

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 behav

Evidence

CERTs and agencies (2)

Exploitation

  • Public proof of concept
  • Exploited in the wild
  • Listed as known exploited
CVSS
8.8
EPSS
1.8%
First seen
2 d ago
Status
confirmed

All Apache Software Foundation vulnerabilities