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 of Spring Tools 4 for Eclipse should upgrade to the corresponding fixed version.

Affected version(s) Fix version Availability
4.16.x 4.16.1 OSS

Users of affected versions of a VSCode Extension should upgrade to the corresponding fixed version.

Affected version(s) Fix version Availability
1.39.x 1.40.0 OSS

Credit

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

References

History

  • 2022-11-03: Initial vulnerability report published.
  • 2026-07-09: Formatting improvements.

Get ahead

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

Learn more

Get support

Tanzu Spring 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