The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-35912

CVE-2022-35912: Grails Data Binding RCE Vulnerability

CVE-2022-35912 is a remote code execution vulnerability in Grails data binding that allows attackers to execute arbitrary code via class loader access. This article covers technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-35912 Overview

CVE-2022-35912 is a critical remote code execution vulnerability affecting the grails-databinding component in multiple versions of the Grails framework. This vulnerability allows remote attackers to execute arbitrary code by exploiting the data binding mechanism to gain access to the Java class loader. The flaw is particularly dangerous when certain Java 8 configurations are in use, enabling attackers to manipulate the class loader through crafted HTTP requests.

Critical Impact

Remote attackers can achieve full system compromise through arbitrary code execution by exploiting the data binding mechanism to access the class loader, potentially leading to complete takeover of affected Grails applications.

Affected Products

  • Grails versions before 3.3.15
  • Grails 4.x versions before 4.1.1
  • Grails 5.x versions before 5.1.9
  • Grails 5.2.x versions before 5.2.1

Discovery Timeline

  • 2022-07-19 - CVE-2022-35912 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-35912

Vulnerability Analysis

The vulnerability resides in the grails-databinding component, which is responsible for binding HTTP request parameters to domain objects and command objects in Grails applications. The core issue is that the data binding mechanism does not properly restrict access to sensitive properties, allowing attackers to manipulate the class loader through specially crafted request parameters.

When processing HTTP requests, Grails' data binding automatically maps request parameters to object properties. However, insufficient restrictions on which properties can be bound allows attackers to traverse the object graph and reach the class loader. Once an attacker gains access to the class loader, they can load and instantiate arbitrary classes, ultimately achieving remote code execution on the server.

This vulnerability shares similarities with the infamous Spring4Shell (CVE-2022-22965) vulnerability, which also exploited class loader access through data binding mechanisms in Java web frameworks.

Root Cause

The root cause of this vulnerability is improper access control in the grails-databinding component. The data binding mechanism fails to adequately block access to dangerous properties that can lead to class loader manipulation. When certain Java 8 configurations are used, the attack path through the class loader becomes accessible, allowing parameter binding to reach security-sensitive objects that should never be exposed through user-controlled input.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending specially crafted HTTP requests to a vulnerable Grails application. The malicious parameters are designed to traverse the object hierarchy and access the class loader through the data binding mechanism.

The exploitation process involves:

  1. Identifying a Grails endpoint that performs data binding on user-supplied parameters
  2. Crafting request parameters that navigate through the object graph to reach the class loader
  3. Using class loader access to load malicious classes or modify application behavior
  4. Executing arbitrary code on the target server

For detailed technical information about the exploitation mechanism, refer to the GitHub Security Advisory and the Grails Blog RCE Vulnerability Disclosure.

Detection Methods for CVE-2022-35912

Indicators of Compromise

  • Unusual HTTP request parameters containing class loader references (e.g., class.module.classLoader)
  • Web application logs showing unexpected parameter binding errors or class loading attempts
  • Unexpected processes spawned by the Grails application server
  • Suspicious modifications to application files or configurations
  • Network connections initiated from the application server to unexpected external hosts

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests containing class loader manipulation patterns
  • Monitor application logs for data binding errors involving restricted properties like class, classLoader, or module
  • Deploy runtime application self-protection (RASP) solutions to detect class loader access attempts
  • Analyze HTTP traffic for parameter patterns commonly associated with class loader exploitation

Monitoring Recommendations

  • Enable verbose logging for the grails-databinding component to capture parameter binding activity
  • Configure alerting for application server process spawning or unusual system calls
  • Implement network monitoring to detect outbound connections from application servers to suspicious destinations
  • Establish baseline behavior for Grails applications and alert on deviations

How to Mitigate CVE-2022-35912

Immediate Actions Required

  • Immediately upgrade Grails to a patched version: 3.3.15+, 4.1.1+, 5.1.9+, or 5.2.1+
  • Review application logs for any signs of exploitation attempts
  • Implement WAF rules to block requests containing class loader manipulation patterns
  • Consider temporarily disabling affected endpoints until patches can be applied
  • Audit all Grails applications in your environment for vulnerable versions

Patch Information

The Grails team has released security patches addressing this vulnerability across all affected version branches. Organizations should upgrade to the following minimum versions:

  • Grails 3.x: Upgrade to version 3.3.15 or later
  • Grails 4.x: Upgrade to version 4.1.1 or later
  • Grails 5.0.x/5.1.x: Upgrade to version 5.1.9 or later
  • Grails 5.2.x: Upgrade to version 5.2.1 or later

Detailed patch information is available in the GitHub Issue Report and the Grails Blog Security Advisory.

Workarounds

  • Implement a servlet filter or interceptor to strip dangerous parameter names before they reach the data binding mechanism
  • Configure explicit allow-lists for bindable properties in domain classes and command objects using bindable: false constraints
  • Deploy a web application firewall (WAF) with rules to block requests containing patterns like class.module.classLoader
  • Use network segmentation to limit the impact of potential compromise by restricting outbound connections from application servers
bash
# Example: Grails domain class with restricted binding
# In your domain class, explicitly mark dangerous properties as non-bindable:
# static constraints = {
#     class bindable: false
#     metaClass bindable: false
# }

# Verify Grails version after upgrade
grails --version
# Expected output should show 3.3.15+, 4.1.1+, 5.1.9+, or 5.2.1+

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGrails

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability4.71%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Openwall OSS Security Discussion

  • GitHub Security Advisory
  • Vendor Resources
  • GitHub Issue Report

  • Grails Blog RCE Vulnerability
  • Related CVEs
  • CVE-2022-41923: Grails Spring Security Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English