# CVE-2024-40120: GO-2025-3690 - SeaweedFS Vulnerable to SQL Injection in github.com/seaweedfs/seaweedfs

Source: https://junglewise.ai/threats/cve-2024-40120-seaweedfs-vulnerable-to-sql-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-05-23  
License: CC BY 4.0 with a link back

CVE-2024-40120 · Severity: low · CVSS 3.1 · Published 2025-05-23

SeaweedFS Vulnerable to SQL Injection in github.com/seaweedfs/seaweedfs

Technologies: [github.com/seaweedfs/seaweedfs (Go)](https://junglewise.ai/threats/technologies/github-com-seaweedfs-seaweedfs). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2024-40120 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-40120 being exploited in the wild.

**How severe is CVE-2024-40120?** Low severity, with a CVSS score of 3.1, published 23 May 2025.

**Which products and versions are affected?** github.com/seaweedfs/seaweedfs (Go) SEMVER:introduced=0,fixed=0.0.0-20240625155419-9ac102336200.

**Is there a fix for CVE-2024-40120?** Yes. github.com/seaweedfs/seaweedfs (Go): upgrade to 0.0.0-20240625155419-9ac102336200 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-40120?** Check whether you run github.com/seaweedfs/seaweedfs (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/seaweedfs/seaweedfs (Go): upgrade to 0.0.0-20240625155419-9ac102336200 or later

  ```sh
  go get github.com/seaweedfs/seaweedfs@v0.0.0-20240625155419-9ac102336200
  ```


## Affected products

- github.com/seaweedfs/seaweedfs (Go) SEMVER:introduced=0,fixed=0.0.0-20240625155419-9ac102336200

## Identifiers

- CVE-2024-40120
- GHSA-q97m-8853-pq76
- GO-2025-3690

## Related threats

- [SeaweedFS Filer JWT authorization bypass in allowed_prefixes](https://junglewise.ai/threats/cve-2026-72921-seaweedfs-filer-jwt-authorization-bypass-in-allowed-prefixes)
- [SeaweedFS unauthenticated filer IAM gRPC service authentication bypass](https://junglewise.ai/threats/cve-2026-72920-seaweedfs-unauthenticated-filer-iam-grpc-service-authentication)
- [SeaweedFS unauthenticated SSRF in VolumeServer.FetchAndWriteNeedle](https://junglewise.ai/threats/cve-2026-73080-seaweedfs-unauthenticated-ssrf-in-volumeserver)
- [SeaweedFS path traversal in S3 API X-Amz-Copy-Source header](https://junglewise.ai/threats/cve-2026-55874-seaweedfs-path-traversal-in-s3-api-x-amz-copy-source-header)
- [SeaweedFS incorrect authorization in S3Tables management API](https://junglewise.ai/threats/cve-2026-55873-seaweedfs-incorrect-authorization-in-s3tables-management-api)
