QID 376843

Date Published: 2022-08-23

QID 376843: Grails Framework Remote Code Execution (RCE) Vulnerability

Grails is an open source web application framework that uses the Apache Groovy programming language. It is intended to be a high-productivity framework by following the "coding by convention" paradigm, providing a stand-alone development environment and hiding much of the configuration detail from the developer.

CVE-2022-35912: The vulnerability allows an attacker to remotely execute code within a Grails application runtime by issuing a specially crafted web request that grants the attacker access to the class loader. This attack exploits a section of the Grails data-binding logic.

Affected Versions:
Grails framework version 5.2.0
Grails framework versions from 5.0.0 prior to 5.1.9
Grails framework versions from 4.0.0 prior to 4.1.1
Grails framework versions from 3.3.10 and prior to 3.3.15

NOTE:
Vulnerability only exists if application is using embedded Tomcat runtime, as well as those deployed to a Servlet Container and running on java 8.

QID Detection Logic (Authenticated): Checks for vulnerable versions of Grails Framework installed along with running java version by executing command "grails -version".
Detection requires the path to binaries exist in environment path variables.

Successful exploitation of this vulnerability may allow an attacker to execute arbitrary code on the target system.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as High - 7.5 severity.
  • Solution
    For more information regarding the update, please refer to Grails framework Security Advisory.
    Vendor References

    CVEs related to QID 376843

    Software Advisories
    Advisory ID Software Component Link
    Grails Framework Security Advisory URL Logo grails.org/blog/2022-07-18-rce-vulnerability.html

    © CVE.report 2026

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report