CVE-2015-5531 Improper Limitation of a Pathname to a Restricted Directory in Elasticsearch

Medium 5.0 Published Updated

Remote attackers can read arbitrary files from the server via directory traversal in Elasticsearch snapshot API calls.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2015-5531?

CVE-2015-5531 is a medium-severity path traversal vulnerability in n/a, published on 17 Aug 2015. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Directory traversal vulnerability in Elasticsearch before 1.6.1 allows remote attackers to read arbitrary files via unspecified vectors related to snapshot API calls.

Weakness: CWE-22

Which versions are affected by CVE-2015-5531?

2 open source packages ship an affected version, including org.elasticsearch:elasticsearch. It affects 1 product.

PackageAffectedFixed in
org.elasticsearch:elasticsearch MavenAll versions1.6.1
org.elasticsearch:elasticsearch MavenAll versions1.6.1

Products include Elasticsearch Elasticsearch.

How do I fix CVE-2015-5531?

Upgrade org.elasticsearch:elasticsearch to 1.6.1 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2015-5531 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2015-5531 exists.

Public exploit code: 1 Metasploit module, 1 Exploit-DB entry, 1 Nuclei template and 2 proofs of concept on GitHub.

Sources

Also known as GHSA-jjq8-vfjq-j6v4.

Is CVE-2015-5531 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free