Improper Neutralization of Special Elements in Data Query Logic Affecting github.com/clidey/whodb/core/src/plugins/mysql package, versions <0.46.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Neutralization of Special Elements in Data Query Logic vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCLIDEYWHODBCORESRCPLUGINSMYSQL-8689574
  • published7 Feb 2025
  • disclosed6 Feb 2025
  • creditRasmus Moorats

Introduced: 6 Feb 2025

NewCVE-2025-24787  (opens in a new tab)
CWE-943  (opens in a new tab)

How to fix?

Upgrade github.com/clidey/whodb/core/src/plugins/mysql to version 0.46.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Data Query Logic via the database connection URI construction process due to improper input sanitization. An attacker can read local files on the host machine by injecting parameters such as &allowAllFiles=true into the connection string of the library github.com/go-sql-driver/mysql, which manipulates the behavior of the database connection library to allow loading data from any local file.

CVSS Scores

version 4.0
version 3.1