GHSA-vw7g-jq9m-3q9v Unauthorized File Access in glance
An attacker can access hidden files and directories despite the nodot option, leading to unauthorized data disclosure.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-vw7g-jq9m-3q9v?
GHSA-vw7g-jq9m-3q9v is a path traversal vulnerability in glance, published on 2 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Versions of glance prior to 3.0.7 are vulnerable to Unauthorized File Access. The package provides a --nodot option meant to hide files and directories with names that begin with a ., such as .git but fails to hide files inside a folder that begins with ..
Recommendation
Upgrade to version 3.0.7 or later.
Which versions are affected by GHSA-vw7g-jq9m-3q9v?
2 open source packages ship an affected version, including glance.
| Package | Affected | Fixed in |
|---|---|---|
glance npm | All versions | 3.0.7 |
glance npm | All versions | 3.0.7 |
How do I fix GHSA-vw7g-jq9m-3q9v?
Upgrade glance to 3.0.7 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is GHSA-vw7g-jq9m-3q9v being exploited?
There is no known exploitation of GHSA-vw7g-jq9m-3q9v in the wild and no public exploit code.