CVE-2024-22262: Spring Framework URL Parsing with Host Validation

Published Apr 16, 2024
·
Updated

Applications that use UriComponentsBuilder to parse an externally provided URL (e.g. through a query parameter) AND perform validation checks on the host of the parsed URL may be vulnerable to a open redirect https://cwe.mitre.org/data/definitions/601.html  attack or to a SSRF attack if the URL is used after passing validation checks.

This is the same as CVE-2024-22259 https://spring.io/security/cve-2024-22259  and CVE-2024-22243 https://spring.io/security/cve-2024-22243 , but with different input.

Other sources

Applications that use UriComponentsBuilder to parse an externally provided URL (e.g. through a query parameter) AND perform validation checks on the host of the parsed URL may be vulnerable to a open redirect attack or to a SSRF attack if the URL is used after passing validation checks.

This is the same as CVE-2024-22259 and CVE-2024-22243, but with different input.

Upstream advisory: https://spring.io/security/cve-2024-22262

— Red Hat

Affected Software

21 affected componentsFixes available
maven/org.springframework:spring-web>=6.1.0<6.1.6
6.1.6
maven/org.springframework:spring-web>=6.0.0<6.0.19
6.0.19
maven/org.springframework:spring-web<5.3.34
5.3.34
IBM Controller<=11.1.0
IBM Controller<=11.0.0 - 11.0.1
redhat/springframework<6.1.6
6.1.6
redhat/springframework<6.0.19
6.0.19
redhat/springframework<5.3.34
5.3.34
debian/libspring-java*
debian/libspring-java*
debian/libspring-java*
debian/libspring-java<=4.3.30-2, <=4.3.30-3, <=4.3.30-6, <=5.1.20-1
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.springframework:spring-web to a version that resolves this vulnerability.

    Fixed in 6.1.6
  2. Upgrade

    Upgrade maven/org.springframework:spring-web to a version that resolves this vulnerability.

    Fixed in 6.0.19
  3. Upgrade

    Upgrade maven/org.springframework:spring-web to a version that resolves this vulnerability.

    Fixed in 5.3.34
  4. Upgrade

    Upgrade redhat/springframework to a version that resolves this vulnerability.

    Fixed in 6.1.6
  5. Upgrade

    Upgrade redhat/springframework to a version that resolves this vulnerability.

    Fixed in 6.0.19
  6. Upgrade

    Upgrade redhat/springframework to a version that resolves this vulnerability.

    Fixed in 5.3.34

Event History

Apr 16, 2024
CVE Published
via MITRE·05:54 AM
Data Sourced
via MITRE·05:54 AM
DescriptionSeverity
Data Sourced
via OSV·06:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:15 AM
DescriptionSeverity
Advisory Published
via GitHub·06:30 AM
Data Sourced
via GitHub·06:30 AM
DescriptionSeverityAffected Software
Data Sourced
via Red Hat·10:02 AM
DescriptionSeverityAffected Software
Apr 26, 2024
Advisory Published
via GitHub·05:01 AM
May 30, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Aug 27, 2024
Data Sourced
via NVD·02:35 PM
Weakness
Data Sourced
via GitHub·06:36 PM
Weakness
Nov 19, 2024
Exploit Published
via GitHub·08:08 PM
Nov 27, 2024
Updated
via IBM·12:00 AM
Affected Software
Feb 13, 2025
Updated
via NVD·06:16 PM
Description
Feb 19, 2025
Updated
via IBM·12:00 AM
DescriptionAffected Software
Apr 14, 2025
Updated
via IBM·12:00 AM
Affected Software
Jun 17, 2026
Updated
via NVD·07:11 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2024-22262?

CVE-2024-22262 is classified as a high severity vulnerability due to its potential for causing open redirect and SSRF attacks.

2

How do I fix CVE-2024-22262?

To fix CVE-2024-22262, update to Spring Framework version 5.3.34, 6.0.19, or 6.1.6 as applicable.

3

Which software is affected by CVE-2024-22262?

CVE-2024-22262 affects multiple versions of the Spring Framework and IBM Analytics Content Hub.

4

What type of attack does CVE-2024-22262 facilitate?

CVE-2024-22262 can facilitate open redirect attacks and Server-Side Request Forgery (SSRF) attacks.

5

What components of Spring Framework are affected by CVE-2024-22262?

CVE-2024-22262 specifically impacts the UriComponentsBuilder used for parsing externally provided URLs.

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