CVE-2024-1329 Nomad Vulnerable to Arbitrary Write Through Symlink Attack

High 7.7 Published Updated

Attackers can write arbitrary files on the host via symlink attacks in the template renderer, potentially escalating privileges.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-1329?

CVE-2024-1329 is a high-severity path traversal vulnerability in HashiCorp Nomad, published on 8 Feb 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

HashiCorp Nomad and Nomad Enterprise 1.5.13 up to 1.6.6, and 1.7.3 template renderer is vulnerable to arbitrary file write on the host as the Nomad client user through symlink attacks. This vulnerability, CVE-2024-1329, is fixed in Nomad 1.7.4, 1.6.7, and 1.5.14.

Weakness: CWE-610, CWE-59

Which versions are affected by CVE-2024-1329?

7 open source packages ship an affected version, including github.com/hashicorp/nomad. It affects 1 product.

PackageAffectedFixed in
github.com/hashicorp/nomad GoFrom 1.5.131.5.14, 1.6.7, 1.7.4
github.com/hashicorp/nomad GoFrom 1.5.131.5.14
github.com/hashicorp/nomad GoFrom 1.5.131.5.14
github.com/hashicorp/nomad GoFrom 1.6.01.6.7
github.com/hashicorp/nomad GoFrom 1.6.01.6.7
github.com/hashicorp/nomad GoFrom 1.7.31.7.4
1 more packages
github.com/hashicorp/nomad GoFrom 1.7.31.7.4

Products include Hashicorp Nomad.

How do I fix CVE-2024-1329?

Upgrade github.com/hashicorp/nomad to a fixed version for your release line: 1.5.14, 1.6.7 or 1.7.4.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-1329 being exploited?

There is no known exploitation of CVE-2024-1329 in the wild and no public exploit code.

Sources

Also known as GHSA-c866-8gpw-p3mv, GO-2024-2538, UBUNTU-CVE-2024-1329.

Is CVE-2024-1329 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free