Intel

AIKIDO-2026-453686

iostreams is vulnerable to Insecure Temporary File

GHSA-rgrh-6rwf-f2c8Published Oct 14, 2026
October 14, 2026

55

CVE Score

Medium

Insecure Temporary File

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the iostreams library to the patch version.

Who does this affect?

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.

Package

Versions

0.0.1 - 2.0.0

Fixed in 2.1.0

Background info

iostreams is vulnerable to Insecure Temporary File in versions 0.0.1 - 2.0.0.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea