All rules →
Rules / C/C++
SHIELD-CPP-016

Insecure temporary file creation

mediumC/C++CWE-377CVSS 5.5

What it detects

mktemp and tmpnam generate predictable names vulnerable to symlink and race attacks.

How to fix

Use mkstemp which atomically creates and opens a unique file.

Scan your repo freeFull documentation
Back to all rules
SHIELD-CPP-016: Insecure temporary file creation — Zennoxa Shield