CVE-2018-1261: Unsafe Unzip with spring-integration-zip

CRITICAL | MAY 09, 2018 | CVE-2018-1261

Description

The Spring Integration ZIP extension, prior to 1.0.1, exposes an arbitrary file write vulnerability. The vulnerability can be achieved using a specially crafted zip archive (affects other archives as well, bzip2, tar, xz, war, cpio, 7z) that holds path traversal filenames. When the filename gets concatenated to the target extraction directory, the final path ends up outside the target folder.

Preconditions include using the unzip transformer and unpacking zip files from untrusted sources.

Affected Spring Products and Versions

Spring Integration Zip Community Extension:

  • 1.0.0.RELEASE - 1.0.0.RELEASE

Mitigation

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

Affected version(s) Fix version Availability
1.0.x 1.0.1.RELEASE OSS

If you are not able to upgrade, make sure you do not unzip untrusted zip files.

Credit

This issue was identified and responsibly reported by the Snyk Security Research Team.

History

  • 2018-05-09: 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