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

    Threat Intelligence

    EPSS
    0.04% (11th 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 ID SNYK-GOLANG-GITHUBCOMHASHICORPNOMADCLIENTALLOCWATCHER-7645437
  • published 15 Aug 2024
  • disclosed 15 Aug 2024
  • credit HashiCorp’s Product Security and Nomad R&D teams

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
Expand this section

Snyk

Recommended
4.8 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    None
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    Low
  • Integrity (SI)
    High
  • Availability (SA)
    None