CVE-2022-41923: Grails Spring Security Core plugin vulnerable to privilege escalation

Published Nov 23, 2022
·
Updated

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.

Affected Software

3 affected components
Grails Spring Security Core Grails>=1.0<3.3.2
Grails Spring Security Core Grails>=4.0.0<4.0.5
Grails Spring Security Core Grails>=5.0.0<5.1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade grails-spring-security-core to a version that resolves this vulnerability.

    Fixed in 3.3.2
  2. Upgrade

    Upgrade grails-spring-security-core to a version that resolves this vulnerability.

    Fixed in 4.0.5
  3. Upgrade

    Upgrade grails-spring-security-core to a version that resolves this vulnerability.

    Fixed in 5.1.1
  4. Configuration

    If you cannot upgrade (especially Grails Spring Security Core 2.x, where no patch is available), create a subclass extending one of these classes depending on your configuration: AnnotationFilterInvocationDefinition, InterceptUrlMapFilterInvocationDefinition, or RequestmapFilterInvocationDefinition. In that subclass, override calculateUri exactly to return UrlPathHelper.defaultInstance.getRequestUri(request). Consider it temporary since patched versions deprecate calculateUri.

    grails.plugin.springsecurity.web.access.intercept (subclass of authorization filter invocation definition) Override calculateUri(HttpServletRequest request) to return UrlPathHelper.defaultInstance.getRequestUri(request) = @Override protected String calculateUri(HttpServletRequest request) { UrlPathHelper.defaultInstance.getRequestUri(request) }

Event History

Nov 23, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for the Grails Spring Security Core plugin?

The vulnerability ID for the Grails Spring Security Core plugin is CVE-2022-41923.

2

What is the severity of CVE-2022-41923?

The severity of CVE-2022-41923 is critical with a CVSS score of 9.8.

3

How does the vulnerability in the Grails Spring Security Core plugin allow privilege escalation?

The vulnerability in the Grails Spring Security Core plugin allows an attacker to access one endpoint using the authorization requirements of a different endpoint, leading to privilege escalation.

4

Which versions of the Grails Spring Security Core plugin are affected by CVE-2022-41923?

Versions 1.0 to 3.3.2, 4.0.0 to 4.0.5, and 5.0.0 to 5.1.1 of the Grails Spring Security Core plugin are affected by CVE-2022-41923.

5

How can I fix the vulnerability in the Grails Spring Security Core plugin?

To fix the vulnerability in the Grails Spring Security Core plugin, it is recommended to update to a version that is not affected by CVE-2022-41923.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203