# CVE-2018-1270: Spring Framework allows applications to expose STOMP over WebSocket endpoints

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 77.63% (percentile 100, 2026-11-26)
- **CWE:** CWE-94
- **Aliases:** GHSA-p5hg-3xm3-gcjg
- **Published:** 2018-04-06T13:00:00.000Z
- **Modified:** 2026-10-08T22:16:46.473Z

## Who should check

- Projects that depend on Maven package org.springframework:spring-messaging (\>= 5.0.0.RELEASE, \< 5.0.5.RELEASE)
- Anyone running Spring by Pivotal Spring Framework Versions prior to 5.0.5 and 4.3.15

## Description

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 spring-messaging module. A malicious user (or attacker) can craft a message to the broker that can lead to a remote code execution attack.

## Affected and fixed versions

- Maven `org.springframework:spring-messaging`: affected \>= 5.0.0.RELEASE, \< 5.0.5.RELEASE; fixed 5.0.5.RELEASE, 4.3.16.RELEASE (osv)
- Spring by Pivotal Spring Framework: Versions prior to 5.0.5 and 4.3.15 (cvelist)

## Mitigation

- Upgrade org.springframework:spring-messaging to one of 5.0.5.RELEASE, 4.3.16.RELEASE (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2018-1270. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-1270.md
Affected: org.springframework:spring-messaging >= 5.0.0.RELEASE, < 5.0.5.RELEASE
Fixed in: 5.0.5.RELEASE, 4.3.16.RELEASE

Steps:
1. Search this machine and project for org.springframework:spring-messaging (Maven), Spring by Pivotal Spring Framework: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2018-1270 being exploited?

There is no confirmed exploitation: CVE-2018-1270 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 77.63% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2018-1270?

Critical: CVSS 9.8 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2018-1270?

org.springframework:spring-messaging \>= 5.0.0.RELEASE, \< 5.0.5.RELEASE.

### Is there a fix for CVE-2018-1270?

Yes. Fixed in 5.0.5.RELEASE, 4.3.16.RELEASE. Upgrade org.springframework:spring-messaging to one of 5.0.5.RELEASE, 4.3.16.RELEASE (or later in the same release line).

### How do I check if I'm affected by CVE-2018-1270?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2018:2939>
- vendor: <https://pivotal.io/security/cve-2018-1270>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2018-1270>
- patch: <http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html>
- patch: <http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html>
- patch: <https://www.oracle.com/security-alerts/cpujul2020.html>
- patch: <https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html>
- patch: <https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html>
- patch: <https://www.oracle.com/security-alerts/cpuoct2021.html>
- patch: <https://github.com/spring-projects/spring-framework/commit/0009806debb578e884f6dc98bd1f2dc668020021>
- patch: <https://github.com/spring-projects/spring-framework/commit/e0de9126ed8cf25cf141d3e66420da94e350708a>
- exploit: <https://www.exploit-db.com/exploits/44796/>
- exploit: <https://www.exploit-db.com/exploits/44796>
- other: <http://www.securityfocus.com/bid/103696>
- other: <https://lists.apache.org/thread.html/4ed49b103f64a0cecb38064f26cbf1389afc12124653da2d35166dbe%40%3Cissues.activemq.apache.org%3E>
- other: <https://lists.apache.org/thread.html/ab825fcade0b49becfa30235b3d54f4a51bb74ea96b6c9adb5d1378c%40%3Cissues.activemq.apache.org%3E>
- other: <https://lists.apache.org/thread.html/dcf8599b80e43a6b60482607adb76c64672772dc2d9209ae2170f369%40%3Cissues.activemq.apache.org%3E>
- other: <https://lists.apache.org/thread.html/6d3d34adcf3dfc48e36342aa1f18ce3c20bb8e4c458a97508d5bfed1%40%3Cissues.activemq.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rf1bbc0ea4a9f014cf94df9a12a6477d24a27f52741dbc87f2fd52ff2%40%3Cissues.geode.apache.org%3E>
- other: <https://lists.debian.org/debian-lts-announce/2021/04/msg00022.html>
- other: <https://web.archive.org/web/20200227125035/https://www.securityfocus.com/bid/103696>
- other: <https://lists.apache.org/thread.html/rf1bbc0ea4a9f014cf94df9a12a6477d24a27f52741dbc87f2fd52ff2@%3Cissues.geode.apache.org%3E>
- other: <https://lists.apache.org/thread.html/dcf8599b80e43a6b60482607adb76c64672772dc2d9209ae2170f369@%3Cissues.activemq.apache.org%3E>
- other: <https://lists.apache.org/thread.html/ab825fcade0b49becfa30235b3d54f4a51bb74ea96b6c9adb5d1378c@%3Cissues.activemq.apache.org%3E>
- other: <https://lists.apache.org/thread.html/6d3d34adcf3dfc48e36342aa1f18ce3c20bb8e4c458a97508d5bfed1@%3Cissues.activemq.apache.org%3E>
- other: <https://lists.apache.org/thread.html/4ed49b103f64a0cecb38064f26cbf1389afc12124653da2d35166dbe@%3Cissues.activemq.apache.org%3E>
- other: <https://github.com/spring-projects/spring-framework>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2018-1270>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-p5hg-3xm3-gcjg> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2018-1270> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-1270>
