External Control of File Name or Path Affecting github.com/hahwul/dalfox/v2/pkg/server package, versions <2.13.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (16th percentile)

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 IDSNYK-GOLANG-GITHUBCOMHAHWULDALFOXV2PKGSERVER-17130603
  • published2 Jun 2026
  • disclosed27 May 2026
  • creditdrmingler

Introduced: 27 May 2026

CVE-2026-45089  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade github.com/hahwul/dalfox/v2/pkg/server to version 2.13.0 or higher.

Overview

Affected versions of this package are vulnerable to External Control of File Name or Path via the output option in server mode. An attacker can create or append to arbitrary files on the host filesystem by sending crafted requests to the REST API, as the file path is taken directly from user input and used in file operations without authentication.

CVSS Base Scores

version 4.0
version 3.1