CVE-2017-5381 Path traversal in Firefox

High 7.5 Published Updated

An attacker can save certificate content to arbitrary filesystem locations via path traversal in the Certificate Viewer export function.

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

What is CVE-2017-5381?

CVE-2017-5381 is a high-severity path traversal vulnerability in Mozilla Firefox, published on 11 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The "export" function in the Certificate Viewer can force local filesystem navigation when the "common name" in a certificate contains slashes, allowing certificate content to be saved in unsafe locations with an arbitrary filename. This vulnerability affects Firefox < 51.

Weakness: CWE-22

Which versions are affected by CVE-2017-5381?

It affects 1 product.

Products include Mozilla Firefox.

How do I fix CVE-2017-5381?

Upgrade to a fixed version.

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

Is CVE-2017-5381 being exploited?

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

All Mozilla Firefox vulnerabilities

Sources

Also known as GHSA-jw7x-8w43-2mrj, UBUNTU-CVE-2017-5381.

Is CVE-2017-5381 in your software?

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

Check your SBOMs for free