CVE-2022-2297 is a critical unrestricted file upload vulnerability in SourceCodester Clinics Patient Management System 2.0. The issue affects the /pms/update_user.php endpoint when invoked with a user_id parameter, as in /pms/update_user.php?user_id=1. The vulnerable parameter is profile_picture. An attacker can manipulate this argument to upload a crafted PHP file, such as one containing <?php phpinfo();?>, indicating that server-executable files can be accepted and stored. Because the uploaded content is PHP, the flaw can lead to execution of attacker-supplied code on the web server if the uploaded file is placed in a web-accessible location and processed by the PHP runtime. The available information states that the attack can be launched remotely and that public exploit disclosure exists.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a single Metasploit module (clinic_pms_sqli_to_rce.rb) that exploits unauthenticated remote code execution vulnerabilities in Clinic's Patient Management System (PMS) version 2.0 (and possibly 1.0). The exploit leverages an SQL injection vulnerability in the login portal to authenticate as an admin user, then abuses the user modification functionality to upload a malicious PHP payload as a profile picture. The payload is then executed to achieve RCE. The module is operational and supports customizable PHP payloads via the Metasploit framework. The main endpoints targeted are the login page (/pms/index.php), user update page (/pms/update_user.php), and logout page (/pms/logout.php). The exploit is associated with CVE-2022-2297 and CVE-2025-3096. The code is well-structured, leverages Metasploit's HttpClient and FileDropper mixins, and includes options for cleaning up uploaded files after exploitation.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.