vetkit.shell.tmp.mktemp-dry-run
mktemp -u only prints a name without creating the file, so another process can create it first (race condition).
Last updated:
Suite: Security
regex
mktemp -u only prints a name without creating the file, so another process can create it first (race condition).
Category: SECURITY · Engine rule severity: INFO
How to fix it
Let mktemp create the file or directory (mktemp, mktemp -d) and use the returned path.
References
Source: packages/engine/rules/sast/shell.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.