# CVE-2022-2214: SourceCodester Library Management System bookdetails.php sql injection

- Severity: Medium 6.3 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.14%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-06-27T06:45:30.000Z
- Modified: 2026-06-17T04:41:30.113Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability was found in SourceCodester Library Management System 1.0. It has been rated as critical. Affected by this issue is some unknown functionality of the file /librarian/bookdetails.php. The manipulation of the argument id with the input ' AND (SELECT 9198 FROM (SELECT(SLEEP(5)))iqZA)-- PbtB leads to sql injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.

(As written by CVE List.)

## Affected

- SourceCodester Library Management System: 1.0
- library_management_system_project library_management_system: 1.0

## Every score

- VulDB: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/CyberThoth/CVE/blob/main/CVE/Library%20Management%20System%20with%20QR%20code%20Attendance/Sql%20Injection/POC.md> (exploit, third-party-advisory)
- <https://github.com/k0xx11/bug_report/blob/main/vendors/kingbhob02/library-management-system/SQLi-2.md> (exploit, third-party-advisory)
- <https://vuldb.com/?id.202760> (third-party-advisory, vdb-entry)

## Sources

- CVE List: [CVE-2022-2214](https://www.cve.org/CVERecord?id=CVE-2022-2214), CVE Terms of Use, modified 2025-04-15
- NVD: [CVE-2022-2214](https://nvd.nist.gov/vuln/detail/CVE-2022-2214), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-2214 · Whole record: https://cve.day/CVE-2022-2214.json · Rebuilt by cve.day 2026-11-25T22:58:12.568Z
