CVE-2024-22196 json
Authenticated (user role) SQL injection in `OrderAndPaginate` (GHSL-2023-270)
published 2024-01-11 2 y ago modified 2026-07-06 4 mo ago also GHSA-h374-mm57-879c , GO-2024-2463 , EUVD-2024-0362
- cvss
- 7.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/0xJacky/Nginx-UI 1.9.10-0.20231219195202-ec93ab05a3ec
- nginxui nginx_ui 2.0.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.58% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-h374-mm57-879c referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/0xJacky/Nginx-UI | <1.9.10-0.20231219195202-ec93ab05a3ec |
1.9.10-0.20231219195202-ec93ab05a3ec |
Affected products
- 0xJacky nginx-ui
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/0xJacky/nginx-ui/commit/ec93ab05a3ecbb6bcf464d9dca48d74452df8a5b
web, patch
-
github.com
/0xJacky/nginx-ui/security/advisories/GHSA-h374-mm57-879c
web, exploit, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-22196
advisory
-
github.com
/0xJacky/nginx-ui
package
-
github.com
/0xjacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/model/model.go#L278-L287
web
-
github.com
/0xjacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/model/model.go#L91
web
-
github.com
/0xjacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/model/model.go#L99C4
web
-
github.com
/advisories/GHSA-h374-mm57-879c
advisory
Sources
- CVE List CVE-2024-22196
- GitHub Advisory GHSA-h374-mm57-879c
- NVD CVE-2024-22196
- OSV GO-2024-2463
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.