# CVE-2026-112940: filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock user's process overwrite or unlink its own files

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 4.2.1 (CNA); fix release not confirmed
- Status: published
- Published: 2026-10-20 · Modified: 2026-10-22
- Aliases: DEBIAN-CVE-2026-112940, UBUNTU-CVE-2026-112940, GHSA-v4x8-3wr5-3wq8, CGA-2x9j-c33f-xqfv, CGA-7f4q-33h2-mpw3, CGA-2jmw-6595-3c9p, CGA-4mg7-gp9v-rhgp, CGA-4xw3-8x54-m35p, CGA-5qh7-jgxp-3v9x, CGA-656m-6hcj-p258, CGA-6rg6-r8hc-x87w, CGA-c6hv-cvrq-29wp, CGA-fjh7-2996-fxp4, CGA-gpjq-pq8h-3679, CGA-hwv6-5764-85rw, CGA-mgrr-j5f3-xfpm, CGA-p7mx-pg57-rmpv, CGA-q3q8-ppmh-6q27, CGA-rxc7-xwr4-c894, CGA-v5w9-5pjf-7q54, CGA-vh9c-5h4x-m949, CGA-vj9m-2qjh-hx98, CGA-x994-5fq6-mf8w, CGA-44hc-mp4w-8566, CGA-8cgf-2cvg-wm73, CGA-48w2-7cw9-37gm, CGA-4qh2-85qg-87jh, CGA-68g9-mhm7-hp37, CGA-6x3w-gjq4-qcrw, CGA-793v-m64q-r843, CGA-cfmx-59p7-x3c7, CGA-f92q-56xm-cwv7, CGA-ff52-ggw4-8253, CGA-ffcp-qqm5-66r8, CGA-fp4w-2g9j-m6f5, CGA-gjr9-3hvc-28p4, CGA-gp4x-jw66-mhh7, CGA-hrhq-wc57-vq67, CGA-jx6c-hw66-hpvw, CGA-mfqq-6mmp-7pvv, CGA-23gq-249r-5pvq, CGA-3875-w5hr-wjq2, CGA-3fg7-w94x-j78q, CGA-5cjc-8mrh-ghh7, CGA-5j3x-f64x-jpj4, CGA-67pp-p4ch-64wp, CGA-6ghv-4wgc-w3j7, CGA-79q5-v2ph-496q, CGA-9hqf-h9q4-prfv, CGA-cgvp-grh6-qh8w, CGA-fxvp-r37g-f2xv, CGA-gcpr-227p-7qgj, CGA-jfcr-j4c6-7w69, CGA-rgvr-8f7p-4cxq, CGA-xr35-73h6-3pxc, CGA-xc3w-fgw4-pxwh, CGA-37j4-xwm5-w3h6, CGA-q3cq-2c77-6c5h, CGA-q5fc-8rg3-73fm, CGA-rc3j-5v7g-cw8v, CGA-425w-2h39-23j8, CGA-x7j3-5m84-x8h7
- Record: https://cvemate.com/vulnerability/CVE-2026-112940 · JSON: https://cvemate.com/vulnerability/CVE-2026-112940/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- EPSS: 0.147%, percentile 4.077%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 42)

- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard dagster (Chainguard): All versions (No fix recorded) \| \< 1.13.28-r1
- chainguard dagster-fips (Chainguard): All versions (No fix recorded) \| \< 1.13.28-r1
- chainguard datahub-ingestion (Chainguard): All versions (No fix recorded) \| \< 1.8.0-r2
- chainguard datahub-ingestion-fips (Chainguard): All versions (No fix recorded) \| \< 1.8.0-r2
- chainguard dbt-snowflake (Chainguard): All versions (No fix recorded) \| \< 1.12.4-r1
- chainguard keep-api (Chainguard): All versions (No fix recorded) \| \< 0.54.3-r13
- chainguard keep-api-fips (Chainguard): All versions (No fix recorded) \| \< 0.54.3-r11
- chainguard kserve-huggingfaceserver-cuda-13.3 (Chainguard): All versions (No fix recorded)
- chainguard litellm (Chainguard): All versions (No fix recorded) \| \< 1.106.6-r3
- chainguard litellm-fips (Chainguard): All versions (No fix recorded) \| \< 1.106.6-r3
- chainguard mlflow-fips-iamguarded-compat (Chainguard): All versions (No fix recorded) \| \< 3.17.2-r3
- chainguard mlflow-iamguarded-compat (Chainguard): All versions (No fix recorded) \| \< 3.17.2-r2
- chainguard mlrun (Chainguard): All versions (No fix recorded) \| \< 1.12.1-r5
- chainguard mlrun-api (Chainguard): All versions (No fix recorded) \| \< 1.12.1-r5
- chainguard mlrun-api-fips (Chainguard): All versions (No fix recorded) \| \< 1.12.1-r2
- chainguard mlrun-fips (Chainguard): All versions (No fix recorded) \| \< 1.12.1-r2
- chainguard nemo (Chainguard): All versions (No fix recorded) \| \< 2.7.3-r42
- chainguard nemo-gym (Chainguard): All versions (No fix recorded)
- chainguard nemo-rl-cuda-13.0 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8>
- <https://github.com/tox-dev/filelock/pull/834>
- <https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d>
- <https://github.com/tox-dev/filelock/releases/tag/4.2.1>
- <https://security-tracker.debian.org/tracker/CVE-2026-112940>
- <https://ubuntu.com/security/CVE-2026-112940>
- <https://www.cve.org/CVERecord?id=CVE-2026-112940>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112940>
- <https://github.com/tox-dev/filelock>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112940.json>

---

Data as of 2026-12-05T13:42:47.587Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
