Arbitrary file upload in Remyandrade Modern Image Gallery App

CVE-2025-70457

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.

Vulnerability class: Unrestricted File Upload

EPSS: 0.008 (53.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2025-70457?
CVE-2025-70457 is a critical-severity vulnerability in Remyandrade Modern Image Gallery App, classified under Unrestricted Upload of File with Dangerous Type. CVSS score: 9.8/10. Published 2026-01-23.
How severe is CVE-2025-70457?
Critical severity. CVSS v3 base score is 9.8 out of 10.