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 package | Versions | Reported by |
|---|---|---|
| Elastic Logstash | from 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.3 | CVE 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.3 | Bitnami Vulnerability Database |
All scores
| elastic | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
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
| https://discuss.elastic.co/t/logstash-8-19-14-9-2-8-9-3-3-security-update-esa-2026-29/385816 | advisory, mitigation, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-33466 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-33466 changed 2026-04-10 | CVE Terms of Use |
| NVD | CVE-2026-33466 changed 2026-07-24 | Public domain |
| Bitnami Vulnerability Database | BIT-LOGSTASH-2026-33466 changed 2026-09-08 | Apache-2.0 |