Bug 1216014 (CVE-2015-3337) - CVE-2015-3337 elasticsearch: directory traversal flaw
Summary: CVE-2015-3337 elasticsearch: directory traversal flaw
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2015-3337
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1216015
TreeView+ depends on / blocked
 
Reported: 2015-04-28 11:24 UTC by Martin Prpič
Modified: 2021-02-17 05:21 UTC (History)
22 users (show)

Fixed In Version: Elasticsearch 1.4.5, Elasticsearch 1.5.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-20 16:27:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Martin Prpič 2015-04-28 11:24:23 UTC
A flaw was reported in Elasticsearch:

All Elasticsearch versions prior to 1.5.2 and 1.4.5 are vulnerable to a directory traversal attack that allows an attacker to retrieve files from the server running Elasticsearch. This vulnerability is not present in the initial installation of Elasticsearch. The vulnerability is exposed when a “site plugin" is installed. Elastic's Marvel plugin and many community-sponsored plugins (e.g. Kopf, BigDesk, Head) are site plugins. Elastic Shield, Licensing, Cloud-AWS, Cloud-GCE, Cloud-Azure, the analysis plugins, and the river plugins are not site plugins.

Users should upgrade to 1.4.5 or 1.5.2. Users that do not want to upgrade can address the vulnerability by disabling site plugins. See the CVE description for additional options.

Patch:

https://github.com/spinscale/elasticsearch/commit/5d8e9e24c917b5f2c0958ba68be34a42efaeadbc

Mitigation:

Users that do not want to upgrade can address the vulnerability in several ways, but these options will break any site plugin:

* Set http.disable_sites to true in the elasticsearch.yml config file on any node with a site plugin, and restart the Elasticsearch node.

* Use a firewall or proxy to block HTTP requests to /_plugin.

* Uninstall all site plugins from all Elasticsearch nodes.

For Satellite 6.x and Sam 1.x you can simply firewall elasticsearch to trusted users only (e.g. root, katello, foreman). For instructions on this please see:

https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/6.0/html-single/Installation_Guide/index.html#sect-Red_Hat_Satellite-Installation_Guide-Red_Hat_Satellite_Installation-Configuring_Red_Hat_Satellite_Manually

Comment 1 Kurt Seifried 2015-07-20 16:26:45 UTC
Updating the severity, for Sam 1.x elasticsearch only listens on localhost, thus local access is required. For Satellite 6.x the installation process should include firewalling it to trusted local users only. As such this only scores 3.3 instead of 5.8 on the CVSS2 scoring.

Comment 3 Kurt Seifried 2015-07-20 16:27:07 UTC
Statement:

This issue affects the versions of elasticsearch as shipped with Red Hat Satellite 6.x and Subscription Asset Manager 1.x. Red Hat Product Security has rated this issue as having Low security impact. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

Comment 4 Ján Rusnačko 2015-10-23 14:49:40 UTC
Moved Mitigation from comment 3 to comment 0.


Note You need to log in before you can comment on or make changes to this bug.