{"id":"CVE-2025-70457","aliases":["CVE-2025-70457"],"related":[],"kind":"vulnerability","state":"published","title":"A Remote Code Execution (RCE) vulnerability exists in Sourcecodester Modern Image Gallery App v1.0 within the gallery/upload.php component.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad de ejecución remota de código (RCE) existe en Sourcecodester Modern Image Gallery App v1.0 dentro del componente gallery/upload.php. La aplicación no valida correctamente el contenido de los archivos subidos. Además, la aplicación conserva la extensión de archivo proporcionada por el usuario durante el proceso de guardado. Esto permite a un atacante no autenticado subir código PHP arbitrario suplantando el tipo MIME como una imagen, lo que lleva a un compromiso total del sistema.","source":"nvd"}],"published":"2026-01-23T00:00:00.000Z","modified":"2026-06-17T10:03:20.180Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-434"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","version":"1.0"}],"vendor":"remyandrade","product":"modern_image_gallery_app","cpe":"cpe:2.3:a:remyandrade:modern_image_gallery_app:1.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://www.sourcecodester.com/php/18572/modern-image-gallery-app-using-php-and-mysql-source-code.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ismaildawoodjee/vulnerability-research/security/advisories/GHSA-8xq6-hjhw-4983","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-01-26T15:43:57.676Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-70457","url":"https://www.cve.org/CVERecord?id=CVE-2025-70457","licence":"CVE Terms of Use","modified":"2026-01-26T15:44:45.929Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-70457","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-70457","licence":"Public domain","modified":"2026-06-17T10:03:20.180Z"}],"updatedAt":"2026-11-25T22:59:10.847Z","epss":{"score":0.00905,"percentile":0.60867,"date":"2026-12-01T12:00:22.000Z"}}