# CVE-2026-22701: filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-01-10 · Modified: 2026-01-12
- Aliases: SUSE-SU-2026:0335-1, GHSA-qmgc-5h2g-mvrw, PYSEC-2026-1374, UBUNTU-CVE-2026-22701, DEBIAN-CVE-2026-22701, CGA-42xh-w948-36qx, CGA-6fff-8786-vv3c, CGA-9v8g-m62j-hm3w, CGA-g443-493q-rc8w, CGA-g9fm-vqwm-r4qv, CGA-gc36-3r74-5fp8, CGA-j887-6jg3-63mh, CGA-m32w-h249-qcrh, CGA-vrhg-p6jm-v5r7, CGA-wmw8-rx2w-5mw3, openSUSE-SU-2026:10043-1, CGA-6hc6-r98f-3rc9, CGA-6m3r-v42w-4p8q, CGA-cgvx-92c3-5jfr, CGA-ff3j-j8m3-vfc2, CGA-fwgf-33jg-p3v3, CGA-gh75-c4m6-2ch7, CGA-gj8c-wff6-46c7, CGA-hf8f-hfcv-rmrg, CGA-hg4x-rj4f-qjxc, CGA-hp73-2348-h3hx, CGA-j9pj-r283-rr8f, CGA-mq24-vx6h-fc3c, CGA-mqfj-fj9v-8mg5, CGA-rr35-g24j-fp45, CGA-rw4q-ph38-5g2p, CGA-vqvm-67mx-qmpc, CGA-w34p-whvh-x66v, CGA-xm49-7p78-c8ph
- Record: https://cvemate.com/vulnerability/CVE-2026-22701 · JSON: https://cvemate.com/vulnerability/CVE-2026-22701/json

## Description

```text
filelock is a platform-independent file lock for Python. Prior to version 3.20.3, a TOCTOU race condition vulnerability exists in the SoftFileLock implementation of the filelock package. An attacker with local filesystem access and permission to create symlinks can exploit a race condition between the permission validation and file creation to cause lock operations to fail or behave unexpectedly. The vulnerability occurs in the _acquire() method between raise_on_not_writable_file() (permission check) and os.open() (file creation). During this race window, an attacker can create a symlink at the lock file path, potentially causing the lock to operate on an unintended target file or leading to denial of service. This issue has been patched in version 3.20.3.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
- EPSS: 0.127%, percentile 2.455%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 27)

- chainguard airflow-2 (Chainguard): \< 2.11.0-r21
- chainguard airflow-3 (Chainguard): \< 3.1.5-r4
- chainguard awx (Chainguard): \< 24.6.1-r25
- chainguard datadog-agent-7.71-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-7.72-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-7.73-core-integrations (Chainguard): \< 7.73.3-r23
- chainguard datadog-agent-7.74-core-integrations (Chainguard): \< 7.74.1-r24
- chainguard datadog-agent-fips-7.71-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-fips-7.72-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-fips-7.73-core-integrations (Chainguard): \< 7.73.3-r26
- chainguard datadog-agent-fips-7.74-core-integrations (Chainguard): \< 7.74.1-r26
- chainguard kserve-huggingfaceserver-cuda-13.3 (Chainguard): All versions (No fix recorded) \| \< 0.21.0-r4
- chainguard py3-cassandra-medusa (Chainguard): \< 0.27.0-r1
- chainguard py3.11-text-generation-inference (Chainguard): \< 3.3.7-r5
- chainguard request-1276 (Chainguard): \< 0.27.0-r2
- wolfi airflow-3 (Wolfi): \< 3.1.5-r4
- wolfi datadog-agent-7.72-core-integrations (Wolfi): All versions (No fix recorded)
- wolfi datadog-agent-7.73-core-integrations (Wolfi): \< 7.73.3-r23
- wolfi datadog-agent-7.74-core-integrations (Wolfi): \< 7.74.1-r24
- wolfi py3-cassandra-medusa (Wolfi): \< 0.27.0-r1

## References

- <https://github.com/tox-dev/filelock/security/advisories/GHSA-qmgc-5h2g-mvrw>
- <https://github.com/tox-dev/filelock/commit/255ed068bc85d1ef406e50a135e1459170dd1bf0>
- <https://github.com/tox-dev/filelock/commit/41b42dd2c72aecf7da83dbda5903b8087dddc4d5>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20260335-1/>
- <https://bugzilla.suse.com/1256457>
- <https://www.suse.com/security/cve/CVE-2026-22701>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22701>
- <https://github.com/tox-dev/filelock>
- <https://pypi.org/project/filelock>
- <https://github.com/advisories/GHSA-qmgc-5h2g-mvrw>
- <https://ubuntu.com/security/CVE-2026-22701>
- <https://www.cve.org/CVERecord?id=CVE-2026-22701>
- <https://ubuntu.com/security/notices/USN-7999-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-22701>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22701.json>

---

Data as of 2026-12-05T14:33:06.331Z. 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
