CVE-2020-29556 Grav CMS Local File Injection

Medium 5.5 Published Updated

Authenticated or unauthenticated attackers can read arbitrary local files on the server via path traversal in Grav CMS backup functionality.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-29556?

CVE-2020-29556 is a medium-severity path traversal vulnerability in n/a, published on 15 Mar 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The Backup functionality in Grav CMS through 1.7.0-rc.17 allows an authenticated attacker to read arbitrary local files on the underlying server by exploiting a path-traversal technique. (This vulnerability can also be exploited by an unauthenticated attacker due to a lack of CSRF protection.)

Weakness: CWE-22

Which versions are affected by CVE-2020-29556?

4 open source packages ship an affected version, including getgrav/grav. It affects 1 product.

PackageAffectedFixed in
getgrav/grav PackagistAll versions1.6.30
getgrav/grav PackagistAll versions1.6.30
getgrav/grav PackagistFrom 1.7.0-beta.1 to 1.7.0-rc.17None
getgrav/grav PackagistFrom 1.7.0-beta.1 to 1.7.0-rc.17None

Products include Getgrav Grav Cms.

How do I fix CVE-2020-29556?

Upgrade getgrav/grav to 1.6.30 or later.

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

Is CVE-2020-29556 being exploited?

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

Sources

Also known as GHSA-r3rg-jrjq-w4mr.

Is CVE-2020-29556 in your software?

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

Check your SBOMs for free