Local Privilege Escalation Vulnerability in Hashicorp Packer on Linux

Check todayFull system takeover with local access.
7.8HIGH

CVE-2022-42717

Key Information:

Vendor

Hashicorp

Status
CVE ID
CVE ID:
CVE-2022-42717
Vendor
CVE Published:
11 October 2022

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • No: Needs local access
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Check today

Find out if you're affected. If you are, patch.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory ↗
2Why it's rated "Check today"
  • Its CVSS severity is high (7.8).

What is CVE-2022-42717?

An issue in Hashicorp Packer prior to version 2.3.1 allows local privilege escalation through an insecure sudoers configuration for Vagrant on Linux. When a host is set up according to the recommended documentation, non-privileged users may exploit a wildcard in the sudoers file to execute arbitrary commands as the root user. This vulnerability underscores the need for careful review of the sudoers configuration to prevent unauthorized access and control.

References

Cross-Tenant Credential Reuse in HashiCorp Terraform MCP Server

CVE-2026-16498
HashicorpTooling10CRITICAL

Denial of Service Vulnerability in HashiCorp Vault and Vault Enterprise

CVE-2025-12044
HashicorpVault👾7.5HIGH

Excessive Resource Consumption Vulnerability in HashiCorp Vault

CVE-2025-6203
HashicorpVault7.5HIGH
View more Hashicorp vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V3.1

Score:
7.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged
.