Modern Image Gallery App
CVE-2025-70457
CRITICAL
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK
2 techniques across 2 tactics: Command and Control, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | CVSS 9.8 with PoC. Sourcecodester applications are frequently used as learning projects and sometimes deployed in production without proper hardening. |
| Exploit ScenarioDerived | An attacker uploads a PHP web shell through the gallery upload endpoint, then accesses it to execute arbitrary commands on the server. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
Sourcecodester Modern Image Gallery App v1.0 has an arbitrary file upload in the gallery endpoint allowing unauthenticated remote code execution.
Earlier versions of this analysis (1)
Unrestricted file upload in Sourcecodester Image Gallery enables unauthenticated RCE.
RemediationAI
Do not use this application in production. If deployed, restrict file upload types and disable PHP execution in upload directories.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Modern Image Gallery App gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
A critical vulnerability in Modern Image Gallery App (versions up to 1.0) allows attackers to upload malicious files without restriction, potentially enabling remote code execution and complete system compromise. With a public exploit available and no patch released, any organization running this application is at immediate risk of data breach, service disruption, and lateral network movement.
Deploy Web Application Firewall (WAF) rules to block upload endpoints or restrict file types to images only (whitelist: .jpg, .png, .gif). Implement strict file extension and MIME-type validation on upload handlers. Disable the gallery upload feature entirely if not critical to operations. Apply network segmentation to limit lateral movement from compromised gallery instances. Monitor upload directories for suspicious file execution attempts. Enforce application-level sandboxing or containerization to restrict file execution capabilities.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
More in Modern Image Gallery App
View allSourceCodester Modern Image Gallery App 1.0 contains a path traversal vulnerability in the /delete.php file that allows
Reflected XSS in SourceCodester Modern Image Gallery App 1.0 allows unauthenticated remote attackers to inject malicious
NVD
CVE.org
EPSS
GitHub
Exploit-DB