filelock is a platform-independent file lock for Python. From 3.20.4 until 4.2.1, ReadWriteLock let SQLite reopen the database and side files by name; on POSIX systems an attacker with rename access in a non-sticky parent can swap those names to cause overwrite or unlink operations, while a writable adjacent hot journal is additionally required for attacker-chosen content overwrites. This issue is fixed in version 4.2.1.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-363"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112940.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "3.20.4"
},
{
"fixed": "4.2.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "4.2.1",
"range": [
{
"fixed": "60331bb89f325020b48bc51bde904c6446384e4a"
}
],
"source": "REFERENCES_TAG"
}
]
}