CVE-2024-40120 SeaweedFS Vulnerable to SQL Injection
Attackers can execute arbitrary SQL commands in SeaweedFS, potentially reading or modifying stored data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-40120?
CVE-2024-40120 is a medium-severity SQL injection vulnerability in n/a, published on 16 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
seaweedfs v3.68 was discovered to contain a SQL injection vulnerability via the component /abstract_sql/abstract_sql_store.go.
Weakness: CWE-89
Which versions are affected by CVE-2024-40120?
4 open source packages ship an affected version, including github.com/seaweedfs/seaweedfs and seaweedfs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/seaweedfs/seaweedfs Go | All versions | 0.0.0-20240625155419-9ac102336200 |
github.com/seaweedfs/seaweedfs Go | All versions | 0.0.0-20240625155419-9ac102336200 |
github.com/seaweedfs/seaweedfs Go | All versions | 0.0.0-20240625155419-9ac102336200 |
seaweedfs Bitnami | From 3.68.0 | 3.69.0 |
Products include Seaweedfs Seaweedfs.
How do I fix CVE-2024-40120?
Upgrade github.com/seaweedfs/seaweedfs to 0.0.0-20240625155419-9ac102336200 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-40120 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-40120 exists.
Other vulnerabilities in n/a
Sources
Also known as BIT-seaweedfs-2024-40120, GHSA-q97m-8853-pq76, GO-2025-3690.