Cyber Resilience

CVE-2022-30887

CriticalPublic PoC

Published: 20 May 2022

Published
20 May 2022
Modified
21 November 2024
KEV Added
Patch
CVSS Score v3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0523 90.2th percentile
Risk Priority 23 60% EPSS · 20% KEV · 20% CVSS

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

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

pharmacy management system project
pharmacy management system
1.0

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.

addresses: CWE-434

Requiring identifiable owners for portable devices reduces the attack surface for unrestricted uploads of dangerous file types via anonymous media.

addresses: CWE-434

Dangerous file uploads can be detonated in the chamber to determine malice before any production write or execution occurs.

addresses: CWE-434

Prevents unrestricted writing of arbitrary or malicious firmware by keeping hardware write-protect enabled except under tightly controlled manual procedures.

addresses: CWE-434

Scans files from external sources on download/open/execute, blocking unrestricted uploads of dangerous file types.

References