CVE-2024-40120 SeaweedFS Vulnerable to SQL Injection

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
github.com/seaweedfs/seaweedfs GoAll versions0.0.0-20240625155419-9ac102336200
github.com/seaweedfs/seaweedfs GoAll versions0.0.0-20240625155419-9ac102336200
github.com/seaweedfs/seaweedfs GoAll versions0.0.0-20240625155419-9ac102336200
seaweedfs BitnamiFrom 3.68.03.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.

Sources

Also known as BIT-seaweedfs-2024-40120, GHSA-q97m-8853-pq76, GO-2025-3690.

Is CVE-2024-40120 in your software?

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

Check your SBOMs for free