Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework/spring-core
  4. ›
  5. CVE-2018-1275

CVE-2018-1275: Improper Control of Generation of Code ('Code Injection')

October 17, 2018 (updated October 21, 2021)

Spring Framework, versions 5.0 prior to 5.0.5 and versions 4.3 prior to 4.3.16 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. This CVE addresses the partial fix for CVE-2018-1270 in the 4.3.x branch of the Spring Framework.

References

  • www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
  • www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
  • www.securityfocus.com/bid/103771
  • www.securitytracker.com/id/1041301
  • access.redhat.com/errata/RHSA-2018:1320
  • access.redhat.com/errata/RHSA-2018:2939
  • github.com/advisories/GHSA-3rmv-2pg5-xvqj
  • lists.apache.org/thread.html/4ed49b103f64a0cecb38064f26cbf1389afc12124653da2d35166dbe@%3Cissues.activemq.apache.org%3E
  • lists.apache.org/thread.html/ab825fcade0b49becfa30235b3d54f4a51bb74ea96b6c9adb5d1378c@%3Cissues.activemq.apache.org%3E
  • lists.apache.org/thread.html/dcf8599b80e43a6b60482607adb76c64672772dc2d9209ae2170f369@%3Cissues.activemq.apache.org%3E
  • nvd.nist.gov/vuln/detail/CVE-2018-1275
  • pivotal.io/security/cve-2018-1275
  • www.oracle.com/security-alerts/cpujul2020.html
  • www.oracle.com/security-alerts/cpuoct2021.html
  • www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
  • www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html

Code Behaviors & Features

Detect and mitigate CVE-2018-1275 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.3.16, all versions starting from 5.0.0 before 5.0.5

Fixed versions

  • 4.3.16
  • 5.0.5

Solution

Upgrade to versions 4.3.16, 5.0.5 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

maven/org.springframework/spring-core/CVE-2018-1275.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:15 +0000.