GHSA-mvf6-3f2g-xfxf endroid/qr-code-bundle File Disclosure via logo_path query parameter

Not scored Published

An attacker can disclose arbitrary files by manipulating the logo_path query parameter in the endroid/qr-code-bundle library.

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

What is GHSA-mvf6-3f2g-xfxf?

GHSA-mvf6-3f2g-xfxf is a path traversal vulnerability in endroid/qr-code-bundle, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of endroid/qr-code-bundle prior to 3.4.2 are affected by a security vulnerability that allows disclosure of files through the logo_path query parameter. The vulnerability arises from the improper handling of non-image data as the logo, which could lead to unintended file disclosure.

Which versions are affected by GHSA-mvf6-3f2g-xfxf?

2 open source packages ship an affected version, including endroid/qr-code-bundle.

PackageAffectedFixed in
endroid/qr-code-bundle PackagistAll versions3.4.2
endroid/qr-code-bundle PackagistAll versions3.4.2

How do I fix GHSA-mvf6-3f2g-xfxf?

Upgrade endroid/qr-code-bundle to 3.4.2 or later.

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

Is GHSA-mvf6-3f2g-xfxf being exploited?

There is no known exploitation of GHSA-mvf6-3f2g-xfxf in the wild and no public exploit code.

Sources

Is GHSA-mvf6-3f2g-xfxf in your software?

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

Check your SBOMs for free