CVE-2018-1272: Privilege Escalation in org.springframework:spring-core
Summary
CVE-2018-1272: Possible privilege escalation in org.springframework:spring-core. Affects org.springframework:spring-core across 2 version ranges.
< 4.3.15
>= 5.0.0, < 5.0.5
Fixed in 4.3.15 or 5.0.5, depending on the release line you run. How to fix ↓
Also tracked for
- libspring-java · Debian:11
The same CVE-2018-1272 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The org.springframework:spring-core package is a core component of the Spring Framework, which provides support for building Java applications. It includes various utilities and classes for dependency injection, resource handling, and other common tasks. This package is widely used in enterprise applications and provides essential functionality for Spring-based projects.
Vulnerability Detail
The vulnerability (CVE-2018-1272) affects versions 5.0 prior to 5.0.5 and versions 4.3 prior to 4.3.15 of the org.springframework:spring-core package. It involves client-side support for multipart requests in Spring MVC or Spring WebFlux server applications. When a remote client sends input to the server (server A), which is then used to make a multipart request to another server (server B), an attacker can insert an extra multipart in the request content from server A. This can lead to privilege escalation if the inserted part represents sensitive information such as a username or user roles. The vulnerability can be exploited to manipulate the behavior of server B and potentially gain unauthorized access or perform unauthorized actions.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 4.3.154.3.15 -
>= 5.0.0, < 5.0.55.0.5
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to apply the recommended fix by upgrading to the patched versions of the org.springframework:spring-core package.
Conclusion
The vulnerability (CVE-2018-1272) in the org.springframework:spring-core package can lead to privilege escalation and unauthorized access. It is crucial to upgrade to the patched versions of the package (4.3.15 or later for Spring 4.3.x, and 5.0.5 or later for Spring 5.0.x) to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for org.springframework:spring-core →
FAQ
The vulnerability can lead to privilege escalation, allowing an attacker to gain unauthorized access or perform unauthorized actions by manipulating the behavior of the server.
Versions 5.0 prior to 5.0.5 and versions 4.3 prior to 4.3.15 of the org.springframework:spring-core package are affected.
No, there are no known workarounds for this vulnerability. It is crucial to upgrade to the patched versions of the org.springframework:spring-core package.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities in software using just the pom.xml file.
You can find more information about this vulnerability in the GitHub Advisory Database: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/10/GHSA-4487-x383-qpph/GHSA-4487-x383-qpph.json
References
Related vulnerabilities
Recent vulnerabilities recorded for org.springframework:spring-core.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.