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)
| Artifact | Affected versions | Fixed 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
18% of the dependent artifacts (18) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 79 |
| 2 hops | 344 |
| 3 hops | 619 |
| 4 hops | 187 |
| 5 hops | 102 |
| 6 hops | 18 |
Most used dependents
- com.bertramlabs.plugins » asset-pipeline-grails92 usages
- org.grails » grails-web-boot68 usages
- org.grails.plugins » spring-security-core68 usages
- org.grails » grails-plugin-rest54 usages
- org.grails » grails-plugin-url-mappings54 usages
- org.grails » grails-plugin-databinding46 usages
- org.grails » grails-plugin-i18n46 usages
- org.grails » grails-plugin-interceptors43 usages
- org.grails » grails-web43 usages
- org.grails » grails-dependencies42 usages
- org.grails.plugins » gsp40 usages
- org.grails » grails-plugin-domain-class31 usages
- org.grails.plugins » async31 usages
- org.grails » grails-test28 usages
- org.graceframework » grace-web27 usages
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.
References
| Advisory | NVD CVE-2022-35912 | nvd.nist.gov |
| Package | grails/grails-core | github.com |
| Web | grails/grails-core advisory GHSA-6rh6-x8ww-9h97 | github.com |
| Web | grails/grails-core issue #12626 | github.com |
| Web | blog/2022-07-18-rce-vulnerability.html | grails.org |
| Web | lists/oss-security/2022/07/20/4 | openwall.com |
