Skip to main content
Menu
Advisories

Temporary-directory exhaustion can expose files through strict lock publication

GHSA-8F2V-28M2-26XXPublished Updated GitHub

Description

Impact

On Unix, temporary-directory exhaustion during filelock import can disable a safeguard in StrictSoftFileLock publication. A local account with rename access to entries in a shared, non-sticky lock directory can gain read access to a file on the same filesystem. The confirmed case involved a world-readable file whose enclosing directory prevented access.

Affected version and mitigation

The confirmed affected release is filelock 4.2.12. Upgrade to 4.3.0 or later.

An environmental failure during the capability check now preserves the runtime’s advertised support for linking without following symlinks. Filelock can refuse acquisition if the runtime cannot honor that option. Use a lock directory whose entries and ancestors other accounts cannot rename, and restrict read permission on sensitive files. Fix in PR #990.

Credits

OSS Scanner: ANT-2026-E88H6SCI.

Affected versions

References

GitHub · tox-dev/filelock