CVE-2020-21809: NukeViet SQL Injection vulnerability
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.75607%
CWE
Published
5/24/2022
Updated
4/24/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
nukeviet/nukeviet | composer | >= 4.0, < 4.0.29 | 4.0.29 |
nukeviet/nukeviet | composer | >= 4.1, < 4.1.02 | 4.1.02 |
nukeviet/nukeviet | composer | >= 4.2, < 4.2.01 | 4.2.01 |
nukeviet/nukeviet | composer | = 4.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsanitized user input being directly used in SQL queries. In detail.php, the listid parameter was split into an array but not validated as integers, enabling injection through crafted listid values. In search_result.php, group_price parameters were used to construct BETWEEN clauses without proper numeric validation. The commit diff shows both were fixed by enforcing integer conversion via array_map('intval'), confirming the lack of input sanitization was the root cause.