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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.91%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-23T00:00:00.000Z
- Modified: 2026-06-17T10:03:20.180Z
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- remyandrade modern_image_gallery_app: 1.0

## References

- <https://github.com/ismaildawoodjee/vulnerability-research/security/advisories/GHSA-8xq6-hjhw-4983> (exploit, third-party-advisory)
- <https://www.sourcecodester.com/php/18572/modern-image-gallery-app-using-php-and-mysql-source-code.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-70457](https://www.cve.org/CVERecord?id=CVE-2025-70457), CVE Terms of Use, modified 2026-01-26
- NVD: [CVE-2025-70457](https://nvd.nist.gov/vuln/detail/CVE-2025-70457), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-70457 · Whole record: https://cve.day/CVE-2025-70457.json · Rebuilt by cve.day 2026-11-25T22:59:10.847Z
