GHSA-cv3v-7846-6pxm Unauthorized File Access in node-git-server

Not scored Published

Attackers can access private git repositories via absolute paths in node-git-server, exposing sensitive code without authentication.

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

What is GHSA-cv3v-7846-6pxm?

GHSA-cv3v-7846-6pxm is a path traversal vulnerability in node-git-server, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of node-git-server prior to 0.6.1 are vulnerable to Unauthorized File Access. It is possible to access any git repository by using absolute paths, which may allow attackers to access private repositories.

Recommendation

Upgrade to version 0.6.1 or later.

Which versions are affected by GHSA-cv3v-7846-6pxm?

2 open source packages ship an affected version, including node-git-server.

PackageAffectedFixed in
node-git-server npmFrom 0.2.00.6.1
node-git-server npmFrom 0.2.00.6.1

How do I fix GHSA-cv3v-7846-6pxm?

Upgrade node-git-server to 0.6.1 or later.

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

Is GHSA-cv3v-7846-6pxm being exploited?

There is no known exploitation of GHSA-cv3v-7846-6pxm in the wild and no public exploit code.

Sources

Is GHSA-cv3v-7846-6pxm in your software?

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

Check your SBOMs for free