# Logstash File Output Vulnerability CVE-2015-4152

**URL:** <https://discuss.elastic.co/t/logstash-file-output-vulnerability-cve-2015-4152/2257>\
**Category:** Security Announcements\
**Created:** [June 9, 2015, 9:42pm UTC](https://discuss.elastic.co/t/logstash-file-output-vulnerability-cve-2015-4152/2257 "2015-06-09T21:42:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 9, 2015, 9:42pm UTC](https://discuss.elastic.co/t/logstash-file-output-vulnerability-cve-2015-4152/2257/1 "2015-06-09T21:42:06Z")

</div>

**Summary:**  
Logstash versions 1.4.2 and prior are vulnerable to a directory traversal attack that allows an attacker to over-write files on the server running Logstash. This vulnerability is not present in the initial installation of Logstash. The vulnerability is exposed when the file output plugin is configured for use. The files impacted must be writeable by the user that owns the Logstash process.

We have been assigned [CVE-2015-4152](http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4152) for this issue.

**Fixed versions:**  
Versions [1.5.0 and 1.4.3](https://www.elastic.co/downloads/logstash) have addressed the vulnerability. Read the release blog post [here](https://www.elastic.co/blog/logstash-1-4-3-released).

**Remediation:**  
Users that currently use the file output plugin or may use it in the future should [upgrade to 1.5.0 or 1.4.3](https://www.elastic.co/downloads/logstash). This will address the vulnerability and preserve file output functionality.

Users that do not want to upgrade can address the vulnerability by disabling the file output plugin.

**Credit:**  
Colin Coghill reported this issue.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:46pm UTC](https://discuss.elastic.co/t/logstash-file-output-vulnerability-cve-2015-4152/2257/2 "2017-07-06T13:46:47Z")

</div>


