CVE-2026-85731

8.8

oras-project · oras-go

A path traversal and link following vulnerability in oras-go allows unauthenticated attackers to overwrite arbitrary files and potentially achieve remote code execution during artifact extraction.

Executive summary

The oras-go library is vulnerable to arbitrary file overwrite and potential remote code execution via malicious OCI artifacts, posing a high risk to systems utilizing this library for extraction.

Vulnerability

This vulnerability involves improper path validation and link resolution during the extraction of OCI layers marked with unpack=true, which allows an unauthenticated attacker to bypass directory restrictions and overwrite files outside the intended working directory.

Business impact

Successful exploitation of this vulnerability can lead to unauthorized file modification, system compromise, and remote code execution, depending on the files overwritten by the attacker. Given the CVSS score of 8.8, this represents a significant security risk that could result in full system takeover, data loss, or the persistent installation of malicious software within the environment.

Remediation

Immediate Action: Update the oras-go library to version 2.6.2 or later to incorporate the necessary security patches for path and symlink validation.

Proactive Monitoring: Inspect system logs for unusual file write operations or unexpected processes spawned by applications utilizing the oras-go library.

Compensating Controls: Ensure that applications using oras-go run with the minimum necessary privileges to limit the impact of potential file overwrites, and utilize container sandboxing to isolate extraction processes.

Exploitation status

Public Exploit Available: No

Analyst recommendation

Organizations using the oras-go library must prioritize upgrading to version 2.6.2 immediately. Because this vulnerability allows for arbitrary file writes and potential code execution, it is critical to verify the integrity of all OCI artifacts being processed until the patch is successfully applied. Failure to remediate this flaw leaves the host system vulnerable to malicious artifacts designed to gain persistence or elevate privileges.

More oras-project CVEs

History

  1. Disclosed CVE record published
  2. Collected by CVE Brief via github
  3. Analyst report written
  4. Published in the daily brief high section

Sources