Intel

AIKIDO-2026-351295

filelock is vulnerable to Uncontrolled Resource Consumption

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 22, 2026
June 22, 2026

25

CVE Score

Low

Uncontrolled Resource Consumption

Are you affected? Scan for Free

TL;DR

filelock reads a SoftFileLock lock file in its stale-lock detection and PID inspection paths using a symlink-following, unbounded text read. When a lock becomes stale, a local attacker with write access to the lock directory can replace the lock file with a symlink, a FIFO, or an oversized file. A peer process that then reads the lock follows the symlink to an unintended target, blocks indefinitely on the FIFO, or exhausts memory reading the large file, causing denial of service. The fix opens the lock file with O_NOFOLLOW and O_NONBLOCK and caps the read size so hostile replacements are rejected instead of followed.

How do I fix this?

Upgrade the filelock 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 your application uses SoftFileLock with a lock directory writable by other local users.

Package

Versions

3.22.0 - 3.29.0

Fixed in 3.29.1

Background info

filelock is vulnerable to Uncontrolled Resource Consumption in versions 3.22.0 - 3.29.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