Skip to main content
VulnerabilityPublished Updated

CVE-2024-40394: Unrestricted File Upload

Source CVE Database V5

0

Not known to be exploited · CVSS 9.8 Critical.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 50% 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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 16 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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-2024-40394, organizations should immediately implement the following specific measures: 1) Disable or restrict file upload functionality in ajax.php if not essential; 2) Implement strict server-side validation of uploaded files, including checking file types, extensions, and MIME types against an allowlist; 3) Enforce file size limits and scan uploaded files with antivirus or malware detection tools; 4) Store uploaded files outside the web root or in directories with no execute permissions to prevent code execution; 5) Use web application firewalls (WAFs) to detect and block suspicious upload attempts; 6) Monitor server logs and network traffic for unusual activity related to file uploads; 7) Apply the principle of least privilege to the web server and database accounts to limit damage if exploited; 8) Regularly back up data and test restoration procedures; 9) Stay alert for official patches or updates from the software maintainers and apply them promptly once available; 10) Educate developers and administrators on secure coding and configuration practices to prevent similar vulnerabilities.

Description

Simple Library Management System Project Using PHP/MySQL v1.0 was discovered to contain an arbitrary file upload vulnerability via the component ajax.php.

References

Community reviews

Loading reviews…