CVE-2024-40120
NixOS vulnerability analysis and mitigation

Overview

A SQL injection vulnerability was discovered in SeaweedFS versions prior to 3.69 that allows attackers to execute arbitrary database operations by manipulating the bucket name parameter. The vulnerability affects the SeaweedFS Filer Server when using MySQL as the filemeta database (Wiz Report, GitHub Issue).

Technical details

The vulnerability exists in the AbstractSqlStore object within the weed/filer/abstractsql/abstractsql_store.go file. The issue stems from user input being directly concatenated into SQL statements without proper sanitization. The vulnerability affects multiple methods including FindEntry, ListDirectoryPrefixedEntries, CreateTable, DeleteEntry, and deleteTable. The most severe impact comes from select injection capabilities (GitHub Gist).

Impact

An attacker can execute arbitrary database operations by manipulating the bucket name parameter. This could potentially lead to unauthorized access to data, modification of database contents, or execution of malicious database commands. The vulnerability primarily affects installations using MySQL as the filemeta database (Wiz Report).

Mitigation and workarounds

The vulnerability has been fixed in SeaweedFS version 3.69. Users should upgrade to this version or later. For those unable to upgrade immediately, it is recommended to implement proper input validation and use parameterized queries to prevent SQL injection attacks (Wiz Report).

Community reactions

The vulnerability was discovered and reported by Tencent YunDing Security Lab. The issue was publicly disclosed through GitHub, leading to prompt acknowledgment and patching by the SeaweedFS development team (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management