iostreams is vulnerable to Insecure Temporary File
55
CVE Score
Medium
Insecure Temporary File
Streams that need a complete local file, such as Zip, Excel, or downloads from S3, HTTP, and SFTP, are copied into a temp file in IOStreams.temp_dir that is opened with mode "wb", so it is created with the process umask (usually 0644) and is readable by any local user. The temp file is also opened without O_EXCL, so an existing file or symbolic link at that name is written through rather than replaced. When the input is encrypted, for example .zip.pgp or .xlsx.pgp, the temp file holds the decrypted plaintext, so another local user on a shared host can read it while it is being processed. The fix creates internal temp files exclusively with mode 0600 under a newly chosen name.
Upgrade the iostreams library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and other local users have access to the host running your application.
0.0.1 - 2.0.0
Fixed in 2.1.0iostreams is vulnerable to Insecure Temporary File in versions 0.0.1 - 2.0.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.