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.25% (17th 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-17130619
  • published2 Jun 2026
  • disclosed27 May 2026
  • creditEmmanuel David

Introduced: 27 May 2026

CVE-2026-45088  (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 custom-payload-file field in REST API server mode. An attacker can read and exfiltrate arbitrary files accessible to the process by supplying a path to a file, which is then read line-by-line and sent in outbound HTTP requests to an attacker-controlled URL. This is only exploitable if the server is running in REST API server mode without an API key configured.

CVSS Base Scores

version 4.0
version 3.1