CVE-2022-41923: Grails Spring Security Core - Privilege Escalation
- Cve: CVE-2022-41923
- Name: Grails Spring Security Core - Privilege Escalation
- Description: 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.
- Impact: Attackers can escalate privileges by accessing endpoints with different authorization requirements, potentially gaining unauthorized access to sensitive functions.
- Remediation: Update to grails-spring-security-core versions 3.3.2, 4.0.5, or 5.1.1, or implement the provided subclass workaround temporarily.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.02407
- Epss percentile: 0.84499
- Assignee: [email protected]
- Published at: 2022-11-23T19:15:12Z
- Age in days: 1462
- Modified at: 2026-06-17T05:04:04Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-41923
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-269 | Improper Privilege Management |
| CWE-863 | Incorrect Authorization |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/grails/GSSC-CVE-2022-41923 | poc-in-github | 2022-11-22 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://grails.org/blog/2022-11-22-ss-plugin-auth-cve.html | Patch, Vendor Advisory |
| https://github.com/grails/grails-spring-security-core/security/advisories/GHSA-frqg-vvxg-jqqh | Patch, Third Party Advisory |
| https://github.com/grails/GSSC-CVE-2022-41923 | Mitigation, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| grails:spring_security_core | >= 5.0.0, < 5.1.1; >= 4.0.0, < 4.0.5; >= 1.0, < 3.3.2 | no | nvd | /v1/products/grails/spring_security_core |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| grails/grails-spring-security-core | security_advisory | yes | /v1/repositories/grails/grails-spring-security-core |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-11-22
- Remote: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, exposed hosts