CVE-2023-5834 Vagrant’s Windows Installer Allowed Directory Junction Write
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.
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/hashicorp/vagrant Go | All versions | 2.4.0 |
github.com/hashicorp/vagrant Go | All versions | 2.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.
Other vulnerabilities in HashiCorp Vagrant
Sources
Also known as GHSA-47xw-vw6m-w9fq.