{
  "id": "cve-2026-112938",
  "title": "StrictSoftFileLock can follow a symlink swapped in after its directory check",
  "product": "filelock Python locking library",
  "ai_system": "Anthropic OSS Scanner (model unspecified)",
  "organization": "Anthropic and filelock maintainers",
  "summary": "StrictSoftFileLock checks the coordination directory with lstat, then later uses the path by name. Another local user able to rename the directory can exchange it for a symlink between those operations, causing the lock-user process to create claim files in a directory the attacker chooses. This can strand claims that deny another strict lock or make multiple holders enter a critical section. The advisory limits the issue to POSIX-style conditions and lists the relevant shared-directory and pre-created-link cases.",
  "ai_role": "The primary filelock advisory explicitly credits Anthropic OSS Scanner (automated analysis) with finding ANT-2026-SVFEYX89, provides a scanner reproducer, records maintainer review, and states this was split from the grouped advisory. The report was received Oct 15; the public advisory was published Oct 17. Anthropic’s scanner page establishes AI-model provenance; exact model is unspecified.",
  "disclosure_date": "2026-10-17",
  "ai_attribution_date": "2026-10-17",
  "classification": "disclosure",
  "classification_note": "The filelock maintainer published GHSA-m462-7rxw-wvpg on Oct 17, 2026 and directly credits Anthropic OSS Scanner (ANT-2026-SVFEYX89). The internal scanner report was received Oct 15; that report date is retained in evidence and is not used as public attribution date.",
  "cves": [
    "CVE-2026-112938"
  ],
  "source_url": "https://github.com/tox-dev/filelock/security/advisories/GHSA-m462-7rxw-wvpg",
  "ai_source_url": "https://github.com/tox-dev/filelock/security/advisories/GHSA-m462-7rxw-wvpg",
  "remediation": "fix documented",
  "remediation_note": "Keep strict locks in directories other users cannot write. In sticky shared directories, create and verify the lock directory as the service account before other users can claim it. Version 4.2.1 fixes the issue.",
  "advisory_url": "https://github.com/tox-dev/filelock/security/advisories/GHSA-m462-7rxw-wvpg",
  "checked_date": "2026-11-14",
  "cvss": [
    {
      "cve": "CVE-2026-112938",
      "version": "3.1",
      "score": 5.8,
      "vector": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/112xxx/CVE-2026-112938.json",
      "source_name": "GitHub_M (CNA; CVE Program record)",
      "checked_date": "2026-11-16"
    }
  ],
  "impacts": [
    {
      "consequences": [
        "denial of service",
        "other"
      ],
      "conditions": "filelock is a platform-independent file lock for Python. From 3.30.0 until 4.2.1, On POSIX platforms, StrictSoftFileLock and AsyncStrictSoftFileLock validate the coordination directory in _ensure_protocol_directory but later reach the claims directory through _open_directory by pathname, allowing a local account that can rename the coordination name to swap in a symbolic link between check and use during acquisition. That race can create and leave claim files in another writable directory or strand claims in a different strict lock so the second lock times out. Separately, the claims property and force_break follow a resting symbolic link without a race when the lock user inspects or recovers the lock. Claims inspection discloses a file name to the other account only if the resulting exception text or claim_name reaches that account through a shared log, CI output, or error report. A blind force_break recovery that removes live claims from another strict lock can allow two processes into that lock's critical section; this path reaches other strict locks, not arbitrary files. This issue is fixed in version 4.2.1. CWE-363: Race Condition Enabling Link Following",
      "cves": [
        "CVE-2026-112938"
      ],
      "checked_date": "2026-11-16",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/112xxx/CVE-2026-112938.json",
      "exploitation": "Exploitation in the wild is not established by the cited description."
    }
  ]
}
