{
  "id": "CVE-2026-112940",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-112940",
  "published_at": "2026-10-20T14:41:49.555Z",
  "title": "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",
  "vendor": "tox-dev",
  "product": "filelock",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-363",
  "cpes": [
    "cpe:2.3:a:tox-dev:filelock:*:*:*:*:*:python:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "tox-dev",
        "product": "filelock",
        "ranges": [
          "\u003e= 3.20.4, \u003c 4.2.1"
        ],
        "fixed_in": [
          "4.2.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade filelock to 4.2.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/tox-dev/filelock/pull/834"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/tox-dev/filelock/releases/tag/4.2.1"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
