{
  "id": "cve-2026-113724",
  "title": "Deletion recovery can change a symlink target’s mode",
  "product": "virtualenv (Python virtual environment creation and seeding tool)",
  "ai_system": "Anthropic OSS Scanner (specific model/version not identified in the item-level advisory)",
  "organization": "Anthropic and Python Packaging Authority (virtualenv maintainers)",
  "summary": "In a deletion error path, virtualenv obtains a symlink’s mode with lstat() but applies it using chmod(), which follows the link. If unlinking fails and the caller can change the target’s mode, a file outside the destination can become more accessible.",
  "ai_role": "The item-level pypa advisory credits Anthropic OSS Scanner report ANT-2026-UK90QC27 and provides its reproducer. Anthropic describes its scanner as operating via strongest models; the exact model/version is unspecified.",
  "disclosure_date": "2026-10-17",
  "ai_attribution_date": "2026-10-17",
  "classification": "disclosure",
  "classification_note": "The pypa maintainer advisory publicly identifies an Anthropic OSS Scanner report ID for this individual issue. Anthropic says OSS Scanner sends reports directly from its strongest models; this case has no named model/version. No exploitation or zero-day claim is made.",
  "cves": [
    "CVE-2026-113724"
  ],
  "source_url": "https://github.com/pypa/virtualenv/security/advisories/GHSA-43mp-35q3-x3fq",
  "ai_source_url": "https://github.com/pypa/virtualenv/security/advisories/GHSA-43mp-35q3-x3fq",
  "remediation": "fix documented",
  "remediation_note": "The fix avoids changing POSIX modes after deletion errors. On Windows, read-only recovery opens the entry without following reparse points and rejects reparse points. Avoid recursively clearing destinations populated by another account on older releases. Requires the unlink error branch and permission to change the target mode. Fixed in virtualenv 21.14.9. Deployed patch status is not checked.",
  "advisory_url": "https://github.com/pypa/virtualenv/security/advisories/GHSA-43mp-35q3-x3fq",
  "checked_date": "2026-11-14",
  "cvss": [
    {
      "cve": "CVE-2026-113724",
      "version": "3.1",
      "score": 4.5,
      "vector": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/113xxx/CVE-2026-113724.json",
      "source_name": "GitHub_M (CNA; CVE Program record)",
      "checked_date": "2026-11-16"
    }
  ],
  "impacts": [
    {
      "cves": [
        "CVE-2026-113724"
      ],
      "consequences": [
        "data modification",
        "other"
      ],
      "conditions": "virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the safe_delete() deletion error handler responds to a failed removal by reading mode bits with os.lstat(path) and applying owner-write permission with os.chmod(path, ...), which follows a symlink. A planted link inside a read-only directory can therefore cause a victim-owned target outside the destination that is initially not writable by the invoking user to become broadly writable before the retry fails, provided that user owns the target and can change its mode. Another account can use the widened mode only if it can traverse the target's parent directories; root does not reach the demonstrated failure path, and the operation does not itself read the target. This issue is fixed in version 21.14.9. CWE-59: Improper Link Resolution Before File Access ('Link Following')",
      "exploitation": "The cited source does not state whether this issue was exploited in the wild.",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/113xxx/CVE-2026-113724.json",
      "checked_date": "2026-11-16"
    }
  ]
}
