CVE-2026-8933: Insecure Custom Temp File Creation

Constructing temporary file, link, or directory paths using custom or weak random string generation functions (e.g., math/rand or custom utils) and passing them to file creation APIs like `os.OpenFile`, `os.Symlink`, or `os.Link` is prone to predictability and collision (EEXIST) attacks. This can be exploited to cause a local denial-of-service or privilege e

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-8933-insecure-custom-temp-file-creation --engine opengrep

Description

Constructing temporary file, link, or directory paths using custom or weak random string generation functions (e.g., math/rand or custom utils) and passing them to file creation APIs like `os.OpenFile`, `os.Symlink`, or `os.Link` is prone to predictability and collision (EEXIST) attacks. This can be exploited to cause a local denial-of-service or privilege e