CVE-2018-1103: Openshift Enterprise source-to-image Arbitrary File Write via Archive Extraction (Zip Slip)

Summary

06/02/2023
Yes i
Moderate
6.5

CVE-2018-1103: Openshift Enterprise source-to-image before version 1.1.10 is vulnerable to an improper validation of user input. Affects github.com/openshift/source-to-image versions < 1.1.10-0.20180427153919-f5cbcbc5cc6f. Fixed in 1.1.10-0.20180427153919-f5cbcbc5cc6f. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Openshift Enterprise source-to-image is a Go package used for building reproducible Docker images from source code. It provides a command-line tool that takes in source code and a builder image, and produces a new image that runs the source code. This package is vulnerable to an improper validation of user input, specifically during the extraction of archives. This vulnerability allows an attacker to override files outside of the intended target directory, potentially leading to arbitrary file write attacks.

Vulnerability Detail

The vulnerability in Openshift Enterprise source-to-image arises from a lack of proper validation of user input during archive extraction. An attacker who can trick a user into using the command to copy files locally, from a pod, can exploit this vulnerability to overwrite files outside of the intended target directory. This can lead to unauthorized modification of critical files, potential data loss, or even remote code execution.

How To Fix

Latest published version: v1.6.4 as of 23 Oct 2026

go get github.com/openshift/source-to-image@v1.6.4

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.1.10-0.20180427153919-f5cbcbc5cc6f

This is the first release that contains the fix.

go get github.com/openshift/source-to-image@v1.1.10-0.20180427153919-f5cbcbc5cc6f

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, users can manually validate and sanitize any user input before using the source-to-image command for file extraction. This includes checking the file paths and ensuring they are within the intended target directory. Additionally, users should avoid using untrusted or unknown archives for extraction to minimize the risk of exploitation.

Conclusion

The vulnerability in Openshift Enterprise source-to-image exposes users to the risk of arbitrary file write attacks, potentially leading to unauthorized modification of critical files, data loss, or remote code execution. It is crucial for users to update to the latest secure version of the package (1.1.10 or later) and follow recommended best practices to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/openshift/source-to-image →

Share this vulnerability

FAQ

Openshift Enterprise source-to-image is a Go package used for building reproducible Docker images from source code. It simplifies the process of creating containerized applications by automatically handling the build and packaging steps.

The vulnerability allows an attacker to overwrite files outside of the intended target directory during archive extraction. This can lead to unauthorized modification of critical files, potential data loss, or even remote code execution.

Users should update to version 1.1.10 or later of the Openshift Enterprise source-to-image package. This version includes the necessary validation checks to prevent the arbitrary file write vulnerability.

As a workaround, users can manually validate and sanitize any user input before using the source-to-image command for file extraction. Additionally, users should avoid using untrusted or unknown archives for extraction to minimize the risk of exploitation.

Yes, the vulnerability in Openshift Enterprise source-to-image can potentially lead to data loss or remote code execution if an attacker successfully exploits the arbitrary file write vulnerability.

How To Fix

Latest published version: v1.6.4 as of 23 Oct 2026

go get github.com/openshift/source-to-image@v1.6.4

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.1.10-0.20180427153919-f5cbcbc5cc6f

This is the first release that contains the fix.

go get github.com/openshift/source-to-image@v1.1.10-0.20180427153919-f5cbcbc5cc6f

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback