Skip to main content

HashiCorp Packer EUVDEUVD-2026-60378

| CVE-2026-19589 HIGH
Path Traversal (CWE-22)
2026-08-17 HashiCorp GHSA-3cf4-f9v4-j353
7.1
CVSS 3.1 · Vendor: HashiCorp
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts plugin archive with path traversal entries
  2. Delivery
    Hosts or injects archive into plugin distribution channel
  3. Exploit
    Operator runs packer plugins install from compromised source
  4. Execution
    Installer extracts archive without path validation
  5. Persist
    Files written outside plugin directory on host
  6. Impact
    Overwritten file (script, key, or config) executes attacker code

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that a user actively invokes Packer's plugin installer (packer plugins install) and targets a malicious or compromised plugin archive - either a supply-chain-compromised plugin repository entry or a directly adversary-controlled distribution URL. The vulnerability fires solely during archive extraction in the plugin installation code path; normal Packer build operations (packer build) are not affected. CVSS UI:R confirms that user-initiated plugin installation is a hard prerequisite, and AV:L confirms the malicious archive must be processed by the local Packer binary. Exploitation is further limited by: (1) the OS-enforced write permissions of the user account running Packer - a low-privilege user cannot overwrite root-owned files; (2) the requirement to induce a user or automated system to install a plugin from a non-legitimate source, necessitating social engineering or supply-chain compromise; (3) environments that pin plugin versions via checksum verification or internal mirrors are not exposed to externally hosted malicious archives.

Impact

The NVD CVSS 3.1 score of 7.1 with vector AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N is internally consistent with the attack model: local execution (AV:L), low complexity once triggered (AC:L), no privileges needed to run plugin installation (PR:N), but mandatory user interaction to initiate the install (UI:R). The Changed Scope (S:C) reflects that path traversal extends impact beyond Packer to the broader host file system. The High integrity impact (I:H) correctly captures arbitrary file write capability. No EPSS data was provided in the intelligence feed, preventing a probabilistic exploitation assessment. This CVE is not listed in the CISA KEV catalog, so active exploitation is not confirmed. The real-world risk is elevated in DevOps and CI/CD environments where Packer runs with sufficient privileges to overwrite scripts, SSH keys, or pipeline configurations - but is substantially bounded by the supply-chain attack model: a user must be socially engineered or encounter a compromised plugin source, ruling out opportunistic mass exploitation.

Exploit ScenarioDerived

An attacker publishes a Packer plugin - or compromises an existing plugin's distribution channel (e.g., a GitHub release asset or S3-hosted archive) - and embeds archive entries with path traversal sequences such as ../../.ssh/authorized_keys or ../../etc/cron.d/packer-backdoor. When a Packer operator runs packer plugins install referencing this source, the installer extracts the archive without adequate path validation, writing attacker-controlled content to arbitrary locations accessible to the Packer process. In a CI/CD context where Packer runs with pipeline-level credentials, overwriting a pipeline script or SSH authorized_keys file directly yields code execution on the build agent. No public exploit code has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 17, 2026

Path traversal (CWE-22) in HashiCorp Packer's third-party plugin installer through version 1.15.4 permits a crafted plugin archive to write files outside the intended extraction directory, enabling code execution on the host. Users who install plugins from malicious or compromised sources trigger the vulnerability through the normal packer plugins install workflow. No public exploit code has been identified at time of analysis, and a vendor-released fix is available in Packer 1.16.0.

RemediationAI

Upgrade to HashiCorp Packer 1.16.0, which contains the fix per the vendor security advisory at https://discuss.hashicorp.com/t/hcsec-2026-29-packer-vulnerable-to-arbitrary-file-write-via-crafted-plugin-archive-during-installation/77654. Until upgrade is possible, restrict plugin installations exclusively to the official HashiCorp plugin registry and avoid any untrusted third-party archive URLs or local archives of unknown origin - this eliminates the malicious-source prerequisite entirely. As an additional compensating control, execute Packer plugin installation inside a container or VM with a restricted, read-only bind mount over sensitive directories (e.g., ~/.ssh, /etc/cron.d, CI/CD workspace directories), preventing traversal writes from reaching high-value targets; note this adds pipeline complexity and may interfere with legitimate plugin installation paths. Running Packer as a dedicated low-privilege service account further limits the blast radius of any successful traversal by constraining which paths are writable.

Affected VersionsENISA

packer 1.7.0 <1.16.0

Affected Packages

euvd packer fix: 1.16.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

HashiCorp Packer is a widely-used open-source infrastructure-as-code tool that builds machine images across cloud and virtualization platforms, commonly deployed in CI/CD pipelines. The vulnerability exists in Packer's plugin installer subsystem, which downloads and extracts third-party plugin archives from external sources. The root cause, CWE-22 (Path Traversal), indicates that the installer fails to normalize or validate archive entry paths before extraction, enabling a 'Zip Slip'-style attack: a crafted archive may contain entries with path sequences such as ../../ that escape the designated plugin directory and write attacker-controlled content to arbitrary locations on the host file system. The affected CPE is cpe:2.3:a:hashicorp:packer:*:*:*:*:*:*:*:*, covering all Packer releases through 1.15.4 across all supported platforms (Linux, macOS, Windows).

Know when Packer gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (HashiCorp) PRIMARY 7.1 HIGH
AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
vuln.today AI 7.1 HIGH

Plugin installation is a local, user-initiated operation (AV:L, UI:R); no account privileges needed (PR:N); path traversal escapes Packer's own directory into the host OS (S:C, I:H).

3.1 AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:H/VA:N/SC:N/SI:H/SA:N

Primary rating from Vendor (HashiCorp).

CVSS VectorVendor: HashiCorp

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Aug 17, 2026 - 21:17 EUVD
CVE Published
Aug 17, 2026 - 20:22 cve.org
HIGH 7.1

DescriptionCVE.org

Packer up to 1.15.4 is vulnerable to an issue in the third-party plugin installer that may allow unintended file system modification and could lead to code execution. A user who installs a plugin from a malicious or compromised source may be affected. This vulnerability (CVE-2026-19589) is fixed in Packer 1.16.0.

Executive ViewAI

Why It Matters

HashiCorp Packer versions through 1.15.4 contain a path traversal vulnerability in the plugin installer that enables arbitrary code execution on infrastructure servers when users install plugins from malicious or compromised sources. This exposes organizations running Packer-based infrastructure automation to host compromise and potential lateral movement within their cloud or on-premises environments.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
widely used IaC image-build tool in DevOps and CI/CD pipelines
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy