Auth bypass in Grails Grails-Spring-Security-Core
CVE-2022-41923
Grails Spring Security Core plugin is vulnerable to privilege escalation. The vulnerability allows an attacker access to one endpoint (i.e. the targeted endpoint) using the authorization requirements of a different endpoint (i.e. the donor endpoint). In some Grails framework applications, access to the targeted endpoint will be granted based on meeting the authorization requirements of the donor endpoint, which can result in a privilege escalation attack. This vulnerability has been patched in grails-spring-security-core versions 3.3.2, 4.0.5 and 5.1.1. Impacted Applications: Grails Spring Security Core plugin versions: 1.x 2.x >=3.0.0 <3.3.2 >=4.0.0 <4.0.5 >=5.0.0 <5.1.1 We strongly suggest that all Grails framework applications using the Grails Spring Security Core plugin be updated to a patched release of the plugin. Workarounds: Users should create a subclass extending one of the following classes from the `grails.plugin.springsecurity.web.access.intercept` package, depending on their security configuration: * `AnnotationFilterInvocationDefinition` * `InterceptUrlMapFilterInvocationDefinition` * `RequestmapFilterInvocationDefinition` In each case, the subclass should override the `calculateUri` method like so: ``` @Override protected String calculateUri(HttpServletRequest request) { UrlPathHelper.defaultInstance.getRequestUri(request) } ``` This should be considered a temporary measure, as the patched versions of grails-spring-security-core deprecates the `calculateUri` method. Once upgraded to a patched version of the plugin, this workaround is no longer needed. The workaround is especially important for version 2.x, as no patch is available version 2.x of the GSSC plugin.
Vulnerability class: Privilege Escalation
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
EPSS exploit prediction
EPSS: 0.019 (78.8th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 79th percentile — 78.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.017 · newest: 0.019 · change: +0.002
Affected products
- Grails Grails-Spring-Security-Core — versions >= 5.0.0, < 5.1.1, >= 4.0.0, < 4.0.5, >= 3.0.0, < 3.3.2
- Grails Spring Security Core
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/grails/grails-spring-security-core/security/advisories/GHSA-frqg-vvx… (Patch, Third Party Advisory)
- github.com/grails/GSSC-CVE-2022-41923 (Third Party Advisory, Mitigation)
- grails.org/blog/2022-11-22-ss-plugin-auth-cve.html (Patch, Vendor Advisory)
Frequently asked questions
- What is CVE-2022-41923?
- CVE-2022-41923 is a critical-severity vulnerability in Grails Grails-Spring-Security-Core, classified under Improper Privilege Management. CVSS score: 9.1/10. Published 2022-11-23.
- How severe is CVE-2022-41923?
- Critical severity. CVSS v3 base score is 9.1 out of 10.
- Is CVE-2022-41923 known to be exploited?
- 9 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.