CVE-2023-5834 Vagrant’s Windows Installer Allowed Directory Junction Write

Low 3.8 Published Updated

Attackers can exploit directory junctions in the Windows installer to perform unauthorized file system writes, potentially leading to privilege escalation or code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-5834?

CVE-2023-5834 is a low-severity path traversal vulnerability in HashiCorp Vagrant, published on 27 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

HashiCorp Vagrant's Windows installer targeted a custom location with a non-protected path that could be junctioned, introducing potential for unauthorized file system writes. Fixed in Vagrant 2.4.0.

Weakness: CWE-59, CWE-1386

Which versions are affected by CVE-2023-5834?

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

PackageAffectedFixed in
github.com/hashicorp/vagrant GoAll versions2.4.0
github.com/hashicorp/vagrant GoAll versions2.4.0

Products include Hashicorp Vagrant.

How do I fix CVE-2023-5834?

Upgrade github.com/hashicorp/vagrant to 2.4.0 or later.

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

Is CVE-2023-5834 being exploited?

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

Sources

Also known as GHSA-47xw-vw6m-w9fq.

Is CVE-2023-5834 in your software?

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

Check your SBOMs for free