Apache Commons BeanUtils Remote Code Execution (CVE-2014-0114)

commons-beanutils Updated 02 Oct 2025

Summary

30/04/2014
N/A
Yes i
Unrated
Not published

CVE-2014-0114: Apache Commons BeanUtils, as distributed in lib/commons-beanutils-1.8.0.jar in Apache Struts 1.x through 1.3.10 and in other products requiring commons-beanutils through 1.9.2, does not suppress the class property, which... Affects commons-beanutils versions < 1.9.2-1. Fixed in 1.9.2-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Apache Commons BeanUtils is a Java library that provides utility methods for manipulating JavaBeans. It is commonly used in various projects, including Apache Struts 1.x. This vulnerability affects versions of Apache Commons BeanUtils up to 1.9.2 and can be exploited to execute arbitrary code remotely.

Vulnerability Detail

The vulnerability, identified as CVE-2014-0114, exists due to a flaw in the way Apache Commons BeanUtils handles the class property. Attackers can manipulate the ClassLoader and execute arbitrary code by passing a specially crafted class parameter to the getClass method of the ActionForm object in Struts 1. This can lead to remote code execution and potential compromise of the affected system.

How To Fix

Minimum fixed version

1.9.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade commons-beanutils

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the fixed version is not immediately possible, a temporary workaround is to disable or block access to the vulnerable functionality. This can be achieved by modifying the application code or configuration to prevent the use of the vulnerable method or by implementing proper input validation and sanitization to mitigate the risk of code injection.

Conclusion

The Apache Commons BeanUtils remote code execution vulnerability (CVE-2014-0114) poses a significant risk to systems using affected versions of the commons-beanutils package. It is crucial to promptly upgrade to the fixed version or implement appropriate workarounds to mitigate the risk of exploitation. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for commons-beanutils →

Share this vulnerability

FAQ

Apache Commons BeanUtils is a Java library that provides utility methods for manipulating JavaBeans. It is commonly used in various projects, including Apache Struts 1.x.

This vulnerability allows remote attackers to execute arbitrary code on the affected system. It can lead to a complete compromise of the system and potential unauthorized access or data leakage.

To fix this vulnerability, it is recommended to upgrade the commons-beanutils package to version 1.9.2-1 or later. This version includes a fix that suppresses the class property and prevents the exploitation of this vulnerability.

If upgrading to the fixed version is not immediately possible, a temporary workaround is to disable or block access to the vulnerable functionality. This can be achieved by modifying the application code or configuration to prevent the use of the vulnerable method or by implementing proper input validation and sanitization to mitigate the risk of code injection.

Yes, there are known exploits for this vulnerability. Attackers can manipulate the ClassLoader and execute arbitrary code by passing a specially crafted class parameter to the getClass method of the ActionForm object in Struts 1.

References

View More

Related vulnerabilities

Recent vulnerabilities recorded for commons-beanutils.

How To Fix

Minimum fixed version

1.9.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade commons-beanutils

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback