Externally Controlled Reference to a Resource in Another Sphere Affecting github.com/hashicorp/nomad/client/allocwatcher package, versions >=0.6.1 <1.8.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.04% (12th 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-GITHUBCOMHASHICORPNOMADCLIENTALLOCWATCHER-7645437
  • published15 Aug 2024
  • disclosed15 Aug 2024
  • creditHashiCorp’s Product Security and Nomad R&D teams

Introduced: 15 Aug 2024

CVE-2024-7625  (opens in a new tab)
CWE-610  (opens in a new tab)

How to fix?

Upgrade github.com/hashicorp/nomad/client/allocwatcher to version 1.8.3 or higher.

Overview

Affected versions of this package are vulnerable to Externally Controlled Reference to a Resource in Another Sphere when unarchiving within the same allocation directory. An attacker can exploit this vulnerability by writing a header that points to a symlink that lives outside of the sandbox environment.

Note:

This exploit requires first compromising the Nomad client agent at the source allocation.

CVSS Scores

version 4.0
version 3.1