Remote Code Execution Vulnerability in Spring Framework (CVE-2018-1270)

libspring-java Updated 02 Oct 2025

Summary

06/04/2018
N/A
Yes i
Critical
9.8

CVE-2018-1270: Spring Framework, versions 5.0 prior to 5.0.5 and versions 4.3 prior to 4.3.15 and older unsupported versions, allow applications to expose STOMP over WebSocket endpoints with a simple, in-memory STOMP broker through the... Affects libspring-java across 2 version ranges.

< 4.3.19-1 < 8da0e46ff253bab5783713078eae8898708996ba

Fixed in 4.3.19-1. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Spring Framework is a widely used application framework for Java that provides comprehensive infrastructure support for developing Java applications. It offers features such as dependency injection, aspect-oriented programming, and transaction management. This vulnerability affects versions 5.0 prior to 5.0.5 and versions 4.3 prior to 4.3.15, allowing attackers to exploit STOMP over WebSocket endpoints, potentially leading to remote code execution.

Vulnerability Detail

CVE-2018-1270 is a critical vulnerability that allows malicious users to craft messages to an in-memory STOMP broker exposed by applications using the Spring Framework. This can lead to remote code execution, where an attacker can execute arbitrary code on the server, compromising the integrity and confidentiality of the application. The vulnerability arises from improper handling of STOMP messages, making it essential for developers to address it promptly.

How To Fix

Minimum fixed version

4.3.19-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libspring-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate upgrading is not possible, consider disabling STOMP over WebSocket endpoints in your application configuration to mitigate the risk until a proper fix can be applied. This can typically be done by modifying the application’s configuration files to restrict access to these endpoints.

Conclusion

CVE-2018-1270 is a significant vulnerability in the Spring Framework that can lead to remote code execution. It is crucial for developers to update their applications to secure versions and consider workarounds if immediate fixes are not feasible. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

CVE-2018-1270 is a vulnerability in the Spring Framework that allows remote code execution through improperly handled STOMP messages.

Versions 5.0 prior to 5.0.5 and versions 4.3 prior to 4.3.15 are affected by this vulnerability.

You can use Vulert's playground to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for CVE-2018-1270 is 9.8, indicating a critical level of severity.

If you cannot upgrade, disable STOMP over WebSocket endpoints in your application configuration as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for libspring-java.

How To Fix

Minimum fixed version

4.3.19-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libspring-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback