CVE-2025-70457

A Remote Code Execution (RCE) vulnerability exists in Sourcecodester Modern Image Gallery App v1.0 within the gallery/upload.php component

Critical · published January 23, 2026

CVSS v3.1
9.8
EPSS
1%
Percentile
59.4
In the wild
Unconfirmed
What it is

🚨 An unauthenticated upload is all it takes to drop malicious PHP code into a vulnerable server! 🔥 Picture a restaurant where anyone can walk in and swap the chef's secret sauce with a toxic concoction — that’s what’s happening here. The gallery/upload.php component doesn’t properly check what’s being served, allowing attackers to sneak in their own dangerous recipe. This flaw is absolutely devastating! An attacker could upload arbitrary PHP code, leading to full system compromise. They could potentially take control of the entire server, access sensitive data, or even launch attacks on other systems. Yikes!

Put simply

Picture a restaurant where anyone can walk in and swap the chef's secret sauce with a toxic concoction — that’s what’s happening here. The gallery/upload.php component doesn’t properly check what’s being served, allowing attackers to sneak in their own dangerous recipe. The CVE-2025-70457 vulnerability in the Sourcecodester Modern Image Gallery App v1.0 allows an attacker to bypass file validation and upload harmful PHP scripts by spoofing the MIME type as an image. During the save process, the application preserves the user-supplied file extension, making exploitation trivially easy.

What to do

This flaw is absolutely devastating! An attacker could upload arbitrary PHP code, leading to full system compromise. They could potentially take control of the entire server, access sensitive data, or even launch attacks on other systems. Yikes! To protect your system, you need to patch the application immediately to the latest version. Implement strict file validation checks, ensuring that only image files can be uploaded. Also, consider renaming uploaded files to prevent malicious extensions from being executed. 🛡️ You've got this! With these steps, you’ll have your defenses solidified in no time! ⚡

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00905 · 59.4th percentile
Published
2026-01-23T00:00Z
EPSS history
Timeline
  • 23 JAN 00:00Z
    A Remote Code Execution (RCE) vulnerability exists in Sourcecodester Modern Image Gallery App v1.0 within the gallery/upload.php component
    cvelistv5