io.vertx%3Avertx-web@4.3.4 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the io.vertx%3Avertx-web package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Directory Traversal

io.vertx:vertx-web is a HTTP web applications for Vert.x.

Affected versions of this package are vulnerable to Directory Traversal when running Vertx web applications that serve files using StaticHandle. If the mount point is a wildcard (*) then an attacker can exfiltrate any class path resource.

When computing the relative path to locate the resource, in case of wildcards, the code returns the user input (without validation) as the segment to lookup. Even though checks are performed to avoid escaping the sandbox, given that the input was not sanitized, \ are not properly handled and an attacker can build a path that is valid within the classpath.

Note: This vulnerability can only be exploited on Windows Operating Systems and Windows File Systems

How to fix Directory Traversal?

Upgrade io.vertx:vertx-web to version 4.3.8 or higher.

[4.0.0,4.3.8)