CVE-2022-41923

Source
https://cve.org/CVERecord?id=CVE-2022-41923
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-41923.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-41923
Aliases
  • GHSA-frqg-vvxg-jqqh
Published
2022-11-23T00:00:00Z
Modified
2025-12-04T10:37:58.622131Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Grails Spring Security Core plugin vulnerable to privilege escalation
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-269"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41923.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/grails/grails-spring-security-core

Affected ranges

Type
GIT
Repo
https://github.com/grails/grails-spring-security-core
Events
Database specific
{
    "versions": [
        {
            "introduced": "5.0.0"
        },
        {
            "fixed": "5.1.1"
        }
    ]
}
Type
GIT
Repo
https://github.com/grails/grails-spring-security-core
Events
Database specific
{
    "versions": [
        {
            "introduced": "4.0.0"
        },
        {
            "fixed": "4.0.5"
        }
    ]
}
Type
GIT
Repo
https://github.com/grails/grails-spring-security-core
Events
Database specific
{
    "versions": [
        {
            "introduced": "3.0.0"
        },
        {
            "fixed": "3.3.2"
        }
    ]
}
Type
GIT
Repo
https://github.com/grails/grails-spring-security-core
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "= 2.0.0"
        }
    ]
}

Affected versions

3.*
3.2.0.M1
v3.*
v3.0.0
v3.0.1
v3.0.2
v3.0.3
v3.0.4
v3.1.0
v3.1.1
v3.1.2
v3.2.0
v3.2.1
v3.2.2
v3.2.3
v3.3.0
v3.3.0.M1
v3.3.1
v4.*
v4.0.0
v4.0.1
v4.0.2
v4.0.3
v4.0.4
v5.*
v5.0.0
v5.1.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-41923.json"