GHSA-2gq2-m628-33xp gregwar/rst Local File Inclusion Vulnerability

Not scored Published

An attacker can exploit inadequate input validation in the gregwar/rst library to include arbitrary files and read sensitive server data.

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

What is GHSA-2gq2-m628-33xp?

GHSA-2gq2-m628-33xp is a path traversal vulnerability in gregwar/rst, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Local File Inclusion (LFI) vulnerability has been discovered in the gregwar/rst library, potentially exposing sensitive files on the server to unauthorized users. The issue arises from inadequate input validation, allowing an attacker to manipulate file paths and include arbitrary files.

Which versions are affected by GHSA-2gq2-m628-33xp?

2 open source packages ship an affected version, including gregwar/rst.

PackageAffectedFixed in
gregwar/rst PackagistAll versions1.0.3
gregwar/rst PackagistAll versions1.0.3

How do I fix GHSA-2gq2-m628-33xp?

Upgrade gregwar/rst to 1.0.3 or later.

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

Is GHSA-2gq2-m628-33xp being exploited?

There is no known exploitation of GHSA-2gq2-m628-33xp in the wild and no public exploit code.

Sources

Is GHSA-2gq2-m628-33xp in your software?

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

Check your SBOMs for free