# CVE-2022-4222: SourceCodester Canteen Management System POST Request ajax_invoice.php query sql injection

- Severity: Medium 5.0 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:H/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): 0.85%, higher than 59% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-11-30T00:00:00.000Z
- Modified: 2026-06-17T05:20:17.870Z
- Weaknesses: CWE-89, CWE-707
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability was found in SourceCodester Canteen Management System. It has been rated as critical. This issue affects the function query of the file ajax_invoice.php of the component POST Request Handler. The manipulation of the argument search leads to sql injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. The associated identifier of this vulnerability is VDB-214523.

(As written by CVE List.)

## Affected

- SourceCodester Canteen Management System: n/a
- canteen_management_system_project canteen_management_system: 1.0

## Every score

- VulDB: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.jianshu.com/p/bda61089bf1d> (exploit, third-party-advisory)
- <https://vuldb.com/?id.214523> (third-party-advisory, vdb-entry)

## Sources

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

---

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