CVE-2022-40087: Unrestricted File Upload
Source CVE Database V5
Not known to be exploited · CVSS 9.8 Critical.
Data as of 26 Oct 2026, 09:15 UTC
- EPSS
- 1.8% chance of exploitation in 30 days – higher than 79% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 22 Sep 2022
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
To mitigate CVE-2022-40087, organizations should first identify any deployments of Simple College Website v1.0 or similar vulnerable web applications. Since no official patches are currently available, immediate mitigation steps include disabling or restricting file upload and file write functionalities where possible. Implement strict server-side validation to restrict file types and content, ensuring only safe file formats are accepted. Employ web application firewalls (WAFs) with custom rules to detect and block malicious payloads targeting file upload endpoints. Conduct thorough code reviews to replace unsafe file handling functions like file_put_contents() with secure alternatives that include input validation and sanitization. Additionally, isolate web applications in segmented network zones with minimal privileges to limit the impact of potential exploitation. Regularly monitor logs for suspicious file creation or modification activities and consider deploying endpoint detection and response (EDR) solutions to detect anomalous behavior indicative of exploitation attempts. Finally, maintain up-to-date backups and develop incident response plans tailored to web application compromises.
Description
Simple College Website v1.0 was discovered to contain an arbitrary file write vulnerability via the function file_put_contents(). This vulnerability allows attackers to execute arbitrary code via a crafted PHP file.
References
- sourcecodester.com/php/14548/simple-college-website-using-htmlphpmysqli-source-code.html (opens in a new tab)
- sourcecodester.com/sites/default/files/download/oretnom23/simple-college-website.zip (opens in a new tab)
- gowthamaraj-rajendran.medium.com/simple-college-website-1-0-unauthenticated-arbitrary-file-upload-rce-44341831bec8 (opens in a new tab)