CRITICAL 9.8

CVE-2022-35912

Grails framework Remote Code Execution via Data Binding

Description

Impact

A vulnerability has been discovered in the Grails data-binding logic which allows for Remote Code Execution in a Grails application. This exploit requires the application to be running on Java 8, either deployed as a WAR to a servlet container, or an executable JAR.

Patches

Grails framework versions 5.2.1, 5.1.9, 4.1.1, and 3.3.15

References

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-35912 https://grails.org/blog/2022-07-18-rce-vulnerability.html

For more information

If you have any questions or comments about this advisory:

  • https://grails.org/blog/2022-07-18-rce-vulnerability.html
  • https://github.com/grails/grails-core/issues/12626
  • Email us at info@grails.org

Credit

This vulnerability was discovered by meizjm3i and codeplutos of AntGroup FG Security Lab

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.grails » grails-databinding
>= 3.3.10, < 3.3.15>= 4.0.0, < 4.1.1>= 5.0.0, < 5.1.9>= 5.2.0, < 5.2.1
3.3.15, 4.1.1, 5.1.9, 5.2.1

Blast radius

1affected artifacts
39affected versions
100dependent artifacts (est.)
1,349dependent versions

18% of the dependent artifacts (18) still pull an affected version in their latest release.

DepthDependent versions
Direct
79
2 hops
344
3 hops
619
4 hops
187
5 hops
102
6 hops
18

Most used dependents

Computed from the dependency graph of build 20261201.0702 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.