# CVE-2024-22196: Authenticated (user role) SQL injection in `OrderAndPaginate` (GHSL-2023-270)

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/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.58%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-01-11T16:27:06.000Z
- Modified: 2026-07-06T19:30:10.734Z
- Also known as: GHSA-h374-mm57-879c, GO-2024-2463
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Nginx-UI is an online statistics for Server Indicators​​ Monitor CPU usage, memory usage, load average, and disk usage in real-time. This issue may lead to information disclosure. By using `DefaultQuery`, the `"desc"` and `"id"` values are used as default values if the query parameters are not set. Thus, the `order` and `sort_by` query parameter are user-controlled and are being appended to the `order` variable without any sanitization. This issue has been patched in version 2.0.0.beta.9.

(As written by CVE List.)

## Affected

- 0xJacky nginx-ui: < 2.0.0.beta.9
- github.com/0xJacky/Nginx-UI (Go): before 1.9.10-0.20231219195202-ec93ab05a3ec
- nginxui nginx_ui: before 2.0.0; 2.0.0

## Every score

- GitHub_M: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-h374-mm57-879c> (exploit, vendor-advisory, web)
- <https://github.com/0xJacky/nginx-ui/commit/ec93ab05a3ecbb6bcf464d9dca48d74452df8a5b> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-22196> (advisory)
- <https://github.com/0xJacky/nginx-ui> (package)
- <https://github.com/0xjacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/model/model.go#L278-L287> (web)
- <https://github.com/0xjacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/model/model.go#L91> (web)
- <https://github.com/0xjacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/model/model.go#L99C4> (web)
- <https://github.com/advisories/GHSA-h374-mm57-879c> (advisory)

## Sources

- CVE List: [CVE-2024-22196](https://www.cve.org/CVERecord?id=CVE-2024-22196), CVE Terms of Use, modified 2025-06-17
- GitHub Advisory Database: [GHSA-h374-mm57-879c](https://github.com/advisories/GHSA-h374-mm57-879c), CC-BY-4.0, modified 2026-07-06
- Go Vulnerability Database: [GO-2024-2463](https://pkg.go.dev/vuln/GO-2024-2463), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2024-22196](https://nvd.nist.gov/vuln/detail/CVE-2024-22196), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-22196 · Whole record: https://cve.day/CVE-2024-22196.json · Rebuilt by cve.day 2026-11-25T22:58:36.039Z
