Skip to main content
Vulnerability Database/CVE-2026-102252

CVE-2026-102252: Google OSV-SCALIBR Path Traversal Flaw

CVE-2026-102252 is a path traversal flaw in Google OSV-SCALIBR versions 0.3.6 through 0.5.0 that enables attackers to write arbitrary files to the host system through crafted VMDK images. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-102252 Overview

CVE-2026-102252 is a path traversal vulnerability [CWE-22] in the embedded VMDK filesystem extractor of Google OSV-SCALIBR. Affected versions span 0.3.6 through 0.5.0. An attacker who controls the scan target can write arbitrary files to the host system when a user scans a crafted VMDK image. The root cause is insufficient validation of archive path entries, which allows extractions to escape the intended destination directory. Successful exploitation can overwrite critical files on the scanning host, leading to integrity and availability impact.

Critical Impact

Arbitrary file write on the host running OSV-SCALIBR when scanning attacker-supplied VMDK images, enabling potential code execution through file overwrite.

Affected Products

  • Google OSV-SCALIBR version 0.3.6
  • Google OSV-SCALIBR versions 0.3.7 through 0.4.x
  • Google OSV-SCALIBR version 0.5.0

Discovery Timeline

  • 2026-09-29 - CVE CVE-2026-102252 published to NVD
  • 2026-09-29 - Last updated in NVD database

Technical Details for CVE-2026-102252

Vulnerability Analysis

OSV-SCALIBR is Google's Software Composition Analysis (SCA) library used to scan filesystems and container images for software inventory and vulnerabilities. The tool includes a VMDK (Virtual Machine Disk) filesystem extractor that unpacks embedded files from VMDK images during a scan.

The extractor does not sufficiently validate archive entry paths before writing them to the destination directory. An attacker who supplies a malicious VMDK image can include entries whose paths contain ../ sequences or absolute paths. When the extractor processes these entries, files are written outside the intended output directory to attacker-chosen locations on the host filesystem.

Because the vulnerability requires the victim to initiate a scan against attacker-controlled content, exploitation depends on user interaction. The attack vector is local to the machine running OSV-SCALIBR, but the impact scales with the privileges of the scanning process.

Root Cause

The root cause is missing canonicalization and boundary validation on entries read from VMDK archives. The extractor concatenates archive entry names with the destination path without verifying that the resulting path resolves inside the destination directory. This is a classic Zip Slip style flaw applied to the VMDK format.

Attack Vector

An attacker crafts a VMDK image containing filesystem entries with traversal sequences in their pathnames. When a user or automated pipeline runs OSV-SCALIBR against this image, the extractor writes files to locations outside the working directory. Overwriting shell profile files, cron entries, or authorized keys can lead to code execution as the scanning user.

No verified public exploit code is available. See the GitHub Pull Request #2030 for the upstream fix and technical context.

Detection Methods for CVE-2026-102252

Indicators of Compromise

  • Unexpected file writes outside the OSV-SCALIBR working or output directory during or after a scan operation.
  • New or modified files in sensitive locations such as ~/.ssh/authorized_keys, /etc/cron.d/, or shell startup files following a VMDK scan.
  • OSV-SCALIBR process invocations that reference VMDK images sourced from untrusted repositories, registries, or user uploads.

Detection Strategies

  • Audit process telemetry for osv-scalibr or scalibr binaries writing files to paths outside the invoked scan destination.
  • Correlate VMDK file access events with subsequent file creation events in system directories through endpoint detection tooling.
  • Enable filesystem integrity monitoring on hosts that run software composition scans against untrusted image sources.

Monitoring Recommendations

  • Log the full command line and working directory of every OSV-SCALIBR invocation in CI/CD environments.
  • Alert on any write operations to paths containing .. segments performed by scanning tools.
  • Track the installed version of OSV-SCALIBR across build agents and developer workstations to identify vulnerable deployments.

How to Mitigate CVE-2026-102252

Immediate Actions Required

  • Upgrade Google OSV-SCALIBR to a version later than 0.5.0 that includes the fix from GitHub Pull Request #2030.
  • Do not scan VMDK images from untrusted sources with vulnerable versions of OSV-SCALIBR.
  • Run scanning workloads under least-privileged service accounts to limit the blast radius of arbitrary file writes.

Patch Information

The upstream fix is tracked in GitHub Pull Request #2030 in the google/osv-scalibr repository. Users should update to a released version that incorporates this pull request. Verify the installed version with scalibr --version and pin the fixed release in dependency manifests, container images, and CI/CD pipelines.

Workarounds

  • Restrict OSV-SCALIBR execution to trusted VMDK inputs only until patched versions are deployed.
  • Execute OSV-SCALIBR inside a sandboxed container or ephemeral virtual machine with a read-only host filesystem mount to contain arbitrary writes.
  • Apply mandatory access controls such as AppArmor or SELinux profiles that constrain the scanner's write access to a single dedicated output directory.
bash
# Configuration example: run OSV-SCALIBR in an isolated container with a read-only host mount
docker run --rm \
  --read-only \
  --tmpfs /tmp:rw,noexec,nosuid,size=512m \
  -v "$(pwd)/input:/scan/input:ro" \
  -v "$(pwd)/output:/scan/output:rw" \
  --user 1000:1000 \
  --cap-drop=ALL \
  osv-scalibr:latest \
  --result=/scan/output/results.json \
  --scan-root=/scan/input

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.