io.swagger:swagger-generator@2.2.3 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the io.swagger:swagger-generator 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
  • L
Privilege Escalation

Affected versions of this package are vulnerable to Privilege Escalation. The system temporary directory on unix-like systems is shared between multiple users. Information written to this directory, or directories created under this directory that do not correctly set the posix standard permissions can have these directories read/modified by other users. This is due to a race condition between the call to delete and the call to mkdirs. As such, after deletion of the directory and before the creation of a new one, an attacker could create the directory, giving them ownership of the directory and its contents.

How to fix Privilege Escalation?

Upgrade io.swagger:swagger-generator to version 2.4.19 or higher.

[,2.4.19)