CVE-2025-70457 File upload in n/a

Critical 9.8 Published Updated

Unauthenticated attackers can upload arbitrary PHP code via spoofed MIME types in the image gallery app, leading to remote code execution and full system compromise.

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-2025-70457?

CVE-2025-70457 is a critical vulnerability in n/a, published on 23 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Remote Code Execution (RCE) vulnerability exists in Sourcecodester Modern Image Gallery App v1.0 within the gallery/upload.php component. The application fails to properly validate uploaded file contents. Additionally, the application preserves the user-supplied file extension during the save process. This allows an unauthenticated attacker to upload arbitrary PHP code by spoofing the MIME type as an image, leading to full system compromise.

Weakness: CWE-434

Which versions are affected by CVE-2025-70457?

It affects 1 product.

Products include Remyandrade Modern Image Gallery App.

How do I fix CVE-2025-70457?

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

Is CVE-2025-70457 being exploited?

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

Sources

Is CVE-2025-70457 in your software?

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

Check your SBOMs for free