Apache Struts2 RCE

Published on 16 Jun 2021
Vulnerability

Apache Struts is a free and open-source framework used to build Java web applications. The use of Object Graph Navigation Language (OGNL) expressions in the Apache Struts smooth the way for attackers to execute arbitrary code remotely. On sending a malicious Content-Type, Content-Disposition, or Content-Length HTTP header with a Content-Type header containing a #cmd= string an incorrect exception handling and error message will be generated as the Jakarta Multipart parser fails to validate the file-upload attempts. This permits remote attackers to execute arbitrary commands on the vulnerable servers.

Mitigation / Precaution

  • We advise you to update Apache Struts installation to Struts 2.3.32 or Struts 2.5.10.1 or above to fix this vulnerability.
Jijith Rajan
Written by
Cyber Security Engineer

His passion for staying abreast of the latest security threats and trends, coupled with his hands-on experience, allows him to actively contribute to the protection of digital assets. Jijith's dedication and enthusiasm make him a promising talent in the ever-evolving realm of cybersecurity, promising a safer digital future.

Experience the Beagle Security platform
Unlock one full penetration test and all Advanced plan features free for 14 days
4.8 on G2 • ISO 27001 certified
See How Beagle Security Works
No credit card • No setup required
Launch interactive demo