CVE-2026-33466
JSON

8.1high

Improper Limitation of a Pathname to a Restricted Directory in Logstash Leading to Arbitrary File Write

Severity
8.1high CVSS:3.1 by elastic
Exploit likelihood
0.90% (higher than 58% of CVEs)
Published
Last changed
Assigned by
elastic
Also known as
BIT-LOGSTASH-2026-33466

Description

Improper Limitation of a Pathname to a Restricted Directory (CWE-22) in Logstash can lead to arbitrary file write and potentially remote code execution via Relative Path Traversal (CAPEC-139). The archive extraction utilities used by Logstash do not properly validate file paths within compressed archives. An attacker who can serve a specially crafted archive to Logstash through a compromised or attacker-controlled update endpoint can write arbitrary files to the host filesystem with the privileges of the Logstash process. In certain configurations where automatic pipeline reloading is enabled, this can be escalated to remote code execution.

Affected

Product or packageVersionsReported by
Elastic Logstashfrom 8.0.0 up to 8.19.13, from 8.0.0 before 8.19.14, from 9.0.0 before 9.2.8, from 9.3.0 before 9.3.3CVE List, NVD
logstash (Bitnami)from 8.0.0 before 8.19.14, from 9.0.0 before 9.2.8, from 9.3.0 before 9.3.3Bitnami Vulnerability Database

All scores

elastic8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Improper Limitation of a Pathname to a Restricted Directory (CWE-22) in Logstash can lead to arbitrary file write and potentially remote code execution via Relative Path Traversal (CAPEC-139). The archive extraction utilities used by Logstash do not properly validate file paths within compressed archives. An attacker who can serve a specially crafted archive to Logstash through a compromised or attacker-controlled update endpoint can write arbitrary files to the host filesystem with the privileges of the Logstash process. In certain configurations where automatic pipeline reloading is enabled, this can be escalated to remote code execution.

NVD (es)

La Limitación Inadecuada de un Nombre de Ruta a un Directorio Restringido (CWE-22) en Logstash puede conducir a la escritura arbitraria de archivos y potencialmente a la ejecución remota de código a través de Salto de Ruta Relativo (CAPEC-139). Las utilidades de extracción de archivos utilizadas por Logstash no validan correctamente las rutas de archivo dentro de archivos comprimidos. Un atacante que puede entregar un archivo especialmente diseñado a Logstash a través de un punto final de actualización comprometido o controlado por el atacante puede escribir archivos arbitrarios en el sistema de archivos del host con los privilegios del proceso de Logstash. En ciertas configuraciones donde la recarga automática de pipelines está habilitada, esto puede escalarse a ejecución remota de código.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-33466 changed 2026-04-10CVE Terms of Use
NVDCVE-2026-33466 changed 2026-07-24Public domain
Bitnami Vulnerability DatabaseBIT-LOGSTASH-2026-33466 changed 2026-09-08Apache-2.0