CVE-2026-42028 novaGallery: Unauthenticated Path Traversal in Album and Cached Image Routes Allows Reading Images Outside Gallery Root

Medium 5.3 Published Updated

Unauthenticated attackers can read image files outside the gallery root directory in novaGallery, exposing sensitive data.

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

What is CVE-2026-42028?

CVE-2026-42028 is a medium-severity path traversal vulnerability in novafacile novagallery, published on 8 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

novaGallery is a php image gallery. Prior to version 2.1.1, a path traversal vulnerability has been identified in novaGallery. This allows unauthenticated users to read image files outside the intended gallery root directory. This issue has been patched in version 2.1.1.

Weakness: CWE-22

Which versions are affected by CVE-2026-42028?

How do I fix CVE-2026-42028?

No fix has been published for CVE-2026-42028 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2026-42028 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42028 exists.

Sources

Also known as GHSA-wv5j-98c7-frm9.

Is CVE-2026-42028 in your software?

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

Check your SBOMs for free