CVE-2017-18038 Path traversal in Bitbucket Server

Medium 5.3 Published Updated

Remote attackers can read the first line of arbitrary files via path traversal in repository settings, requiring an upgrade to Bitbucket Server.

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

What is CVE-2017-18038?

CVE-2017-18038 is a medium-severity path traversal vulnerability in Atlassian Bitbucket Server, published on 2 Feb 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The repository settings resource in Atlassian Bitbucket Server before version 5.6.0 allows remote attackers to read the first line of arbitrary files via a path traversal vulnerability through the default branch name.

Weakness: CWE-22

Which versions are affected by CVE-2017-18038?

It affects 1 product.

Products include Atlassian Bitbucket.

How do I fix CVE-2017-18038?

No fix has been published for CVE-2017-18038 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2017-18038 being exploited?

There is no known exploitation of CVE-2017-18038 in the wild and no public exploit code.

Sources

Also known as GHSA-w5r2-hxmg-8w48.

Is CVE-2017-18038 in your software?

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

Check your SBOMs for free