Spring Security Advisories

CVE-2022-31691: Remote Code Execution via YAML editors in STS4 extensions for Eclipse and VSCode

MEDIUM | NOVEMBER 03, 2022 | CVE-2022-31691

Description

Spring Tools 4 for Eclipse version 4.16.0 and below as well as VSCode extensions such as Spring Boot Tools, Concourse CI Pipeline Editor, Bosh Editor and Cloudfoundry Manifest YML Support version 1.39.0 and below all use Snakeyaml library for YAML editing support. This library allows for some special syntax in the YAML that under certain circumstances allows for potentially harmful remote code execution by the attacker.

Affected Spring Products and Versions

  • Spring Tools 4 for Eclipse: Spring Tool Suite
    • 4.0.0 - 4.16.0
  • VSCode Extension: Spring Boot Tools
    • 1.0.0 - 1.39.0
  • VSCode Extension: Concourse CI Pipeline Editor
    • 1.0.0 - 1.39.0
  • VSCode Extension: Bosh Editor
    • 1.0.0 - 1.39.0
  • VSCode Extension: Cloudfoundry Manifest YML Support
    • 1.0.0 - 1.39.0

Mitigation

Users of affected versions should apply the following mitigation. STS4 Eclipse should be upgraded to the version 4.16.1 or higher. VSCode extensions: Spring Boot Tools, Concourse CI Pipeline Editor, Bosh Editor, Cloudfoundry Manifest YML Support should be upgraded to the version 1.40.0 or higher. Releases that have fixed this issue include:

  • Eclipse: STS
    • 4.16.1
  • VSCode: Spring Boot Tools
    • 1.40.0
  • VSCode: Concourse CI Pipeline Editor
    • 1.40.0
  • VSCode: Bosh Editor
    • 1.40.0
  • VSCode: Cloudfoundry Manifest YML Support
    • 1.40.0

Credit

This issue was identified and responsibly reported by Zewei Zhang from NSFOCUS TIANJI Lab

History

  • 2022-11-03: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Spring Runtime offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all

© 2023 VMware, Inc. or its affiliates. Terms of Use PrivacyTrademark Guidelines Your California Privacy Rights Cookie Settings

Apache®, Apache Tomcat®, Apache Kafka®, Apache Cassandra™, and Apache Geode™ are trademarks or registered trademarks of the Apache Software Foundation in the United States and/or other countries. Java™, Java™ SE, Java™ EE, and OpenJDK™ are trademarks of Oracle and/or its affiliates. Kubernetes® is a registered trademark of the Linux Foundation in the United States and other countries. Linux® is the registered trademark of Linus Torvalds in the United States and other countries. Windows® and Microsoft® Azure are registered trademarks of Microsoft Corporation. “AWS” and “Amazon Web Services” are trademarks or registered trademarks of Amazon.com Inc. or its affiliates. All other trademarks and copyrights are property of their respective owners and are only mentioned for informative purposes. Other names may be trademarks of their respective owners.