Apache Commons BeanUtils Remote Code Execution (CVE-2014-0114)
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
Related vulnerabilities
Recent vulnerabilities recorded for commons-beanutils.