CVE-2025-70457
CRITICALCVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
3Description
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.
Analysis
Sourcecodester Modern Image Gallery App v1.0 has an arbitrary file upload in the gallery endpoint allowing unauthenticated remote code execution.
Technical Context
The gallery/upload endpoint in Modern Image Gallery App v1.0 has a CWE-434 unrestricted file upload that accepts PHP files, which are then accessible and executable through the web server.
Affected Products
['Sourcecodester Modern Image Gallery App v1.0']
Remediation
Do not use this application in production. If deployed, restrict file upload types and disable PHP execution in upload directories.
Priority Score
Share
External POC / Exploit Code
Leaving vuln.today