Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. filelock
  4. ›
  5. CVE-2026-112911

CVE-2026-112911: filelock: StrictSoftFileLock and SoftReadWriteLock adopt a protocol directory another user created first, losing mutual exclusion

October 28, 2026

StrictSoftFileLock, AsyncStrictSoftFileLock, SoftReadWriteLock and AsyncSoftReadWriteLock keep their whole ownership state as files in a directory derived from the lock path (<path>.filelock/claims, <path>.rw/{gen,holders}). When that directory already exists they adopt it after checking only that it is a real directory, not who owns it. Another local user who can create names in the lock’s directory can create the tree before the first acquire on that path by the user running the lock (below: the lock user). In /tmp, /var/tmp or another sticky shared directory any user can do that; the sticky bit is a directory flag that lets only a file’s owner remove or rename it. The other user then owns the tree. They can unlink the lock user’s claims while the lock user holds the lock, so a second process of the lock user, root included, enters the same critical section and neither process sees an error.

Against SoftReadWriteLock the same position also admits two writers with on_compromise silent. It redirects the lock user’s own creates and renames into a directory the other user picks (the scanner replaced a repository’s .git/HEAD with a filelock record written with the lock user’s privileges). It also keeps the lock user’s acquire or release running past any timeout. Affected versions are filelock 3.30.0 through 4.2.0 (finding ANT-2026-Q5VK5JEE).

References

  • github.com/advisories/GHSA-9c4x-gm8v-wgc4
  • github.com/tox-dev/filelock/commit/bfa066d65a1ba9106f86ee9d027f7588b9c77e03
  • github.com/tox-dev/filelock/pull/839
  • github.com/tox-dev/filelock/releases/tag/4.2.1
  • github.com/tox-dev/filelock/security/advisories/GHSA-9c4x-gm8v-wgc4
  • nvd.nist.gov/vuln/detail/CVE-2026-112911

Code Behaviors & Features

Detect and mitigate CVE-2026-112911 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.30.0 before 4.2.1

Fixed versions

  • 4.2.1

Solution

Upgrade to version 4.2.1 or above.

Impact 6.3 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-283: Unverified Ownership

Source file

pypi/filelock/CVE-2026-112911.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:49 +0000.