{"schemaVersion":3,"id":"CVE-2022-40471","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Remote Code Execution in Clinic's Patient Management System v 1.0 allows Attacker to Upload arbitrary php webshell via profile picture upload functionality in users.php","dates":{"published":"2022-10-31T00:00:00.000Z","modified":"2025-05-06T15:41:02.673Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.22597,"percentile":0.97703,"severity":"high","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.828000000000001,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.21769},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.22597,"percentile":0.97703}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.21769,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.22597,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.22597,"percentile":0.97703}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_RASHIDKHANPATHAN_CVE-2022-40471","name":"Cve 2022 40471","source":"github","url":"https://github.com/RashidKhanPathan/CVE-2022-40471","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_A0C0CC23ECF75E26","name":"Exploit Reference (drive.google.com)","source":"reference","url":"https://drive.google.com/file/d/1m-wTfOL5gY3huaSEM3YPSf98qIrkl-TW/view?usp=sharing","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"MSF_EXPLOIT_MULTI_HTTP_CLINIC_PMS_FILEUPLOAD_RCE","name":"Clinic's Patient Management System 1.0 - Unauthenticated RCE","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/multi/http/clinic_pms_fileupload_rce.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/multi/http/clinic_pms_fileupload_rce","rank":"600","rankName":"excellent","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":["artifacts-on-disk"],"reliability":["repeatable-session"]}}],"exploitCount":3,"weaknesses":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type","description":"The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/434.html"}],"affected":[{"vendor":"oretnom23","product":"clinic\\'s_patient_management_system","name":"clinic\\'s patient management system","label":"clinic\\'s_patient_management_system","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.0","eol":null,"hubHref":"/vendor/oretnom23/clinics_patient_management_system"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.sourcecodester.com/php-clinics-patient-management-system-source-code","label":"www.sourcecodester.com/php-clinics-patient-management-system-source-code","hostname":"www.sourcecodester.com","tags":["Product"]},{"url":"https://drive.google.com/file/d/1m-wTfOL5gY3huaSEM3YPSf98qIrkl-TW/view?usp=sharing","label":"drive.google.com/file/d/1m-wTfOL5gY3huaSEM3YPSf98qIrkl-TW/view?usp=sharing","hostname":"drive.google.com","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/RashidKhanPathan/CVE-2022-40471","label":"github.com/RashidKhanPathan/CVE-2022-40471","hostname":"github.com","tags":["Exploit","Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-10-31T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-05-06T15:41:02.673Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T10:38:43.506Z","stale":false,"partial":false}}