Skip to main content
VulnerabilityPublished Updated

CVE-2025-70457: Unrestricted File Upload

Source CVE Database V5

0

Not known to be exploited · CVSS 9.8 Critical.

Data as of 26 Oct 2026, 09:16 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.9% chance of exploitation in 30 days – higher than 59% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

AI-suggested

To mitigate this vulnerability, organizations should immediately disable file upload functionality in the affected application if not essential. If uploads are required, implement strict server-side validation of uploaded files, including verifying file contents using magic numbers or file signature checks rather than relying on MIME types or extensions. Enforce a whitelist of allowed file types and rename uploaded files to safe extensions that cannot be executed by the server (e.g., .txt or .dat). Configure the web server to prevent execution of uploaded files by isolating upload directories outside the web root or disabling script execution permissions in those directories. Employ web application firewalls (WAFs) with custom rules to detect and block suspicious upload attempts. Monitor logs for unusual upload activity or access patterns. Regularly update and patch the application once a vendor fix is available. Conduct security audits and penetration testing focused on file upload mechanisms. Educate developers on secure coding practices related to file handling to prevent similar vulnerabilities in future deployments.

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.

References

Community reviews

Loading reviews…