CVE-2025-45997 Details
Description
Sourcecodester Web-based Pharmacy Product Management System v.1.0 has a file upload vulnerability. An attacker can upload a PHP file disguised as an image by modifying the Content-Type header to image/jpg.
A file upload vulnerability has been identified in SourceCodester Web-Based Pharmacy Product Management System version 1.0. The issue arises because the application only validates the Content-Type header during file uploads. This flaw allows an attacker to upload a PHP file, disguised as an image, by altering the Content-Type header to 'image/jpg'. Once uploaded, the PHP file can be executed on the server, leading to unauthorized command execution.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/litsasuk/CVE-POC/blob/main/CVE-2025-45997.md | [email protected] | ExploitThird Party Advisory |
| https://www.sourcecodester.com/php/17883/web-based-product-alert-system.html | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-434 | Unrestricted Upload of File with Dangerous Type | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| senior-walter web-based pharmacy product management system | 1.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 9, 2025 | Initial Analysis | [email protected] |
| May 28, 2025 | CVE Modified | CISA-ADP |
| May 28, 2025 | New CVE Received | [email protected] |