Skip to main content
VulnerabilityPublished Updated

CVE-2024-40402: Sourcecodester Simple Library Management System · SQL Injection

Source CVE Database V5

0

Not known to be exploited · CVSS 6.3 Medium.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 3.1 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 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

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.

References

Community reviews

Loading reviews…