Uncontrolled Search Path Element Affecting github.com/google/osv-scalibr/artifact/image/layerscanning/image package, versions <0.2.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOOGLEOSVSCALIBRARTIFACTIMAGELAYERSCANNINGIMAGE-10381542
  • published18 Jun 2025
  • disclosed18 Jun 2025
  • creditUnknown

Introduced: 18 Jun 2025

CVE-2025-5981  (opens in a new tab)
CWE-427  (opens in a new tab)

How to fix?

Upgrade github.com/google/osv-scalibr/artifact/image/layerscanning/image to version 0.2.1 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Search Path Element via the unpack() function, when using the CLI flag --remote-image on untrusted container images. An attacker can write arbitrary files to the host system. This allows the attacker to create or overwrite files outside of the intended directory.

References

CVSS Base Scores

version 4.0
version 3.1