# GHSA-HJX8-83J4-9X3Q: ReadWriteLock can delete a private file from a leftover SQLite journal

- Database: GitHub
- Severity: CVSS 3.3 (Low)
- Published: 2026-11-22
- Modified: 2026-12-03

## Tracked as

- [CVE-2026-144353](https://cve.now/CVE-2026-144353.md): filelock: ReadWriteLock can delete a private file from a leftover SQLite journal

## Affected versions

- filelock (PyPI): 4.2.12

## Description

## Impact

A `ReadWriteLock` database can retain an untrusted SQLite journal after its directory changes from shared to private. Opening the database can delete an unrelated file that the locking account has permission to read and remove. Changing directory permissions does not remove existing journals.

## Affected versions and fix

The confirmed affected version is 4.2.12. Upgrade to filelock `4.3.0` or later. When SQLite side files are present, the lock opens the database through a private hard link. [PR #976](https://github.com/tox-dev/filelock/pull/976)

## Workaround

Before upgrading, use a fresh private lock directory and database. Coordinate the move with all participants while no lock is held.

## Credits

Reported by OSS Scanner (ANT-2026-J39GB53S).

## References

- https://github.com/tox-dev/filelock/security/advisories/GHSA-hjx8-83j4-9x3q

Page: https://cve.now/GHSA-HJX8-83J4-9X3Q

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
