CVE-2024-37896 SQL injection vulnerability in Gin-vue-admin

High 8.8 Published Updated

Attackers can inject arbitrary SQL commands via unsanitized inputs to read or modify database data, requiring an upgrade to Gin-vue-admin.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-37896?

CVE-2024-37896 is a high-severity SQL injection vulnerability in flipped-aurora gin-vue-admin, published on 17 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Gin-vue-admin is a backstage management system based on vue and gin. Gin-vue-admin <= v2.6.5 has SQL injection vulnerability. The SQL injection vulnerabilities occur when a web application allows users to input data into SQL queries without sufficiently validating or sanitizing the input. Failing to properly enforce restrictions on user input could mean that even a basic form input field can be used to inject arbitrary and potentially dangerous SQL commands. This could lead to unauthorized access to the database, data leakage, data manipulation, or even complete compromise of the database server. This vulnerability has been addressed in commit `53d033821` which has been included in release version 2.6.6. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-89

Which versions are affected by CVE-2024-37896?

1 open source package ship an affected version, including github.com/flipped-aurora/gin-vue-admin.

PackageAffectedFixed in
github.com/flipped-aurora/gin-vue-admin GoAll versions2.6.6+incompatible

How do I fix CVE-2024-37896?

Upgrade github.com/flipped-aurora/gin-vue-admin to 2.6.6+incompatible or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2024-37896 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-37896 exists.

Sources

Also known as GHSA-gf3r-h744-mqgp, GO-2024-2928.

Is CVE-2024-37896 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free