CVE-2022-30887
Published: 20 May 2022
Summary
CVE-2022-30887 is a critical-severity Unrestricted Upload of File with Dangerous Type (CWE-434) vulnerability in Pharmacy Management System Project Pharmacy Management System. Its CVSS base score is 9.8 (Critical).
Operationally, ranked in the top 9.8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
Pharmacy Management System v1.0 contains a remote code execution vulnerability in the /php_action/editProductImage.php component. The issue is an unrestricted file upload flaw (CWE-434) that allows arbitrary code execution when an attacker supplies a crafted image file.
The vulnerability is remotely exploitable by unauthenticated attackers over the network with no user interaction required. Successful exploitation grants full control over the affected system, consistent with the CVSS 9.8 rating that reflects high impact to confidentiality, integrity, and availability.
Public proof-of-concept code demonstrating shell upload via the vulnerable endpoint has been published on PacketStorm. The associated EPSS score rose from a low baseline to a peak of 0.1032 before receding to its current value of 0.0523, indicating a period of increased exploitation interest after disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-52658
Vulnerability details
Pharmacy Management System v1.0 was discovered to contain a remote code execution (RCE) vulnerability via the component /php_action/editProductImage.php. This vulnerability allows attackers to execute arbitrary code via a crafted image file.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Requiring identifiable owners for portable devices reduces the attack surface for unrestricted uploads of dangerous file types via anonymous media.
Dangerous file uploads can be detonated in the chamber to determine malice before any production write or execution occurs.
Prevents unrestricted writing of arbitrary or malicious firmware by keeping hardware write-protect enabled except under tightly controlled manual procedures.
Scans files from external sources on download/open/execute, blocking unrestricted uploads of dangerous file types.