Skip to content
Path traversal Advisory Intermediate CVE-2020-9708

GHSL-2020-133: Path traversal vulnerability in Adobe git-server - CVE-2020-9708

The git-server's resolveRepositoryPath function failed to validate user input, allowing a malicious user to traverse outside the configured repository root. This could lead to unauthorised access to private Git repositories.

jarlob Follow

Originally disclosed on GitHub Security Lab

Malicious users may access any Git repository on the server even if it is outside the served root directory.

jarlob, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The resolveRepositoryPath function did not properly validate user-supplied input, allowing directory traversal sequences to escape the configured repository root.

Impact

This issue may lead to an unauthorized access to private Git repositories.

What the attacker needed

Access to the git-server HTTP interface

The fix

It was fixed in version 1.3.1.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A web server that hosts Git repositories normally only lets you see repositories inside a specific folder. Because it did not check the path you asked for, you could use a path like '../' to climb out of that folder and read other repositories on the same machine. This is called a path traversal bug.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by jarlob

View all

192 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.