CVE-2024-40402: Sourcecodester Simple Library Management System · SQL Injection
Source CVE Database V5
Not known to be exploited · CVSS 6.3 Medium.
Data as of 26 Oct 2026, 12:29 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 30% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 17 Jul 2024
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
Organizations should immediately review and sanitize all user inputs, especially the 'username' parameter in 'ajax.php'. Implementing parameterized queries or prepared statements is critical to prevent SQL injection. Conduct thorough code audits of the affected application to identify and remediate similar vulnerabilities. If possible, isolate the library management system database with strict access controls and monitor database logs for suspicious queries. Employ web application firewalls (WAFs) configured to detect and block SQL injection attempts targeting this system. Regularly update and patch the software once official fixes become available. Additionally, educate developers on secure coding practices to prevent recurrence of such vulnerabilities.
Description
A SQL injection vulnerability was found in 'ajax.php' of Sourcecodester Simple Library Management System 1.0. This vulnerability stems from insufficient user input validation of the 'username' parameter, allowing attackers to inject malicious SQL queries.