Skip to content

GHSA-ffvq-7w96-97p7 CVE-2018-15756

Denial of Service in Spring Framework

High Maven
Severity
7.5 / 10
High · CVSS 3.0
Exploit chance (EPSS)
8.80%
Chance of exploitation in the next 30 days. Higher than 95.18% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
—
Not classified
Fix
5.1.1.RELEASE
Upgrade org.springframework:spring-core to this version or later

Description

Spring Framework, version 5.1, versions 5.0.x prior to 5.0.10, versions 4.3.x prior to 4.3.20, and older unsupported versions on the 4.2.x branch provide support for range requests when serving static resources through the ResourceHttpRequestHandler, or starting in 5.0 when an annotated controller returns an org.springframework.core.io.Resource. A malicious user (or attacker) can add a range header with a high number of ranges, or with wide ranges that overlap, or both, for a denial of service attack. This vulnerability affects applications that depend on either spring-webmvc or spring-webflux. Such applications must also have a registration for serving static resources (e.g. JS, CSS, images, and others), or have an annotated controller that returns an org.springframework.core.io.Resource. Spring Boot applications that depend on spring-boot-starter-web or spring-boot-starter-webflux are ready to serve static resources out of the box and are therefore vulnerable.

Affected versions

Maven

PackageVulnerableFixed in
org.springframework:spring-core
>= 5.1.0.RELEASE, < 5.1.1.RELEASE
5.1.1.RELEASE
org.springframework:spring-core
>= 5.0.0.RELEASE, < 5.0.10.RELEASE
5.0.10.RELEASE
org.springframework:spring-core
>= 4.2.0.RELEASE, < 4.3.20.RELEASE
4.3.20.RELEASE

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

org.springframework:spring-core Maven → 5.1.1.RELEASE

maven
<dependency><groupId>org.springframework</groupId><artifactId>spring-core</artifactId><version>5.1.1.RELEASE</version></dependency>
gradle
implementation("org.springframework:spring-core:5.1.1.RELEASE")

Severity breakdown

CVSS 3.0 7.5

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-659m-px2c-25wj
Spring Framework Denial of Service via AntPathMatcher
High Also affects org.springframework:spring-core
GHSA-jmp9-x22r-554x
Spring Framework annotation detection mechanism may result in improper authorization
High Also affects org.springframework:spring-core
GHSA-r4q3-7g4q-x89m
Spring Framework server Web DoS Vulnerability
High Also affects org.springframework:spring-core
GHSA-rfmp-97jj-h8m6
Improper Output Neutralization for Logs in Spring Framework
Medium Also affects org.springframework:spring-core
GHSA-wv88-pf73-x22p
Improper Neutralization of Directives in Dynamically Evaluated Code in Spring Framework
High Also affects org.springframework:spring-core
GHSA-f866-m9mv-2xr3
Spring Framework and Spring Security vulnerable to Deserialization of Untrusted Data
Medium Also affects org.springframework:spring-core
GHSA-rhcg-rwhx-qj3j
Improper Limitation of a Pathname to a Restricted Directory in Spring Framework
Medium Also affects org.springframework:spring-core
GHSA-wjjr-h4wh-w6vv
Spring Framework Inefficient Regular Expression Complexity
Medium Also affects org.springframework:spring-core
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor