Intel

AIKIDO-2026-482004

spoom is vulnerable to OS Command Injection

GHSA-f377-gfmr-h7r7Published Oct 6, 2026
October 6, 2026

78

CVE Score

High

OS Command Injection

Are you affected? Scan for Free

TL;DR

Spoom::FileCollector#mime_type_for shells out to the file command by interpolating a scanned file's path into a single-quoted shell string. A file name that contains a single quote breaks out of that quoting, letting a crafted file name in the analyzed repository run arbitrary OS commands during the default spoom deadcode scan. The path reaching this call is normalized with cleanpath but never shell-escaped before use. The fix replaces the shell interpolation with Open3.capture2, passing the path as a separate process argument instead of through /bin/sh.

How do I fix this?

Upgrade the spoom 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 you run spoom deadcode over a repository containing files with untrusted names.

Package

Versions

1.2.2 - 1.8.8

Fixed in 1.8.9

Background info

spoom is vulnerable to OS Command Injection in versions 1.2.2 - 1.8.8.

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