Bug 2547431 - CVE-2026-107174 source-to-image: source-to-image: Security boundary bypass via absolute symbolic link extraction [fedora-all]
Summary: CVE-2026-107174 source-to-image: source-to-image: Security boundary bypass vi...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: source-to-image
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Tomas Hrcka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["b44b1d77-de8e-4a3f-b92f-0...
Depends On:
Blocks: CVE-2026-107174
TreeView+ depends on / blocked
 
Reported: 2026-10-07 13:21 UTC by jkelly
Modified: 2026-10-07 13:21 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)

Description jkelly 2026-10-07 13:21:40 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A flaw was found in openshift/source-to-image's paranoid tar extraction mode (NewParanoid). The extractLink() function in pkg/tar/tar.go validates that a symlink target stays inside the extraction directory by computing a sanitized path using filepath.Clean(filepath.Join(dest, "..", source)), but then creates the actual symlink using the raw, unvalidated header.Linkname via os.Symlink(source, dest). For relative symlink traversals this check works correctly because filepath.Join resolves ".." components. However, for absolute Linkname values (e.g. "/etc/passwd"), Go's filepath.Join does not re-root, so the sanitized path folds harmlessly under the jail directory and passes the check, while the actual symlink points to the attacker-specified absolute host path. This bypasses the security boundary introduced to fix CVE-2018-1103. The paranoid mode is used by s2i's primary build strategy, including paths that extract tar streams produced by attacker-controlled builder image scripts (save-artifacts, assemble). A malicious builder image can plant symlinks pointing to arbitrary absolute host paths outside the sandbox directory.


Note You need to log in before you can comment on or make changes to this bug.