{
  "id": "cve-2026-29509",
  "title": "Patool archive extraction can write outside its intended directory on older Python runtimes",
  "product": "patool",
  "ai_system": "CodeAnt AI offensive engine (specific model not disclosed)",
  "organization": "CodeAnt AI; patool maintainers",
  "summary": "Patool before 4.0.5 can create files or directories outside the intended extraction directory when using Python's tarfile module on Python before 3.12. The maintainer documented the correction in release 4.0.5. CodeAnt's individual discovery account credits its offensive engine, while the primary CNA names CodeAnt AI Security as finder. Consequences depend on the extraction process's filesystem permissions.",
  "ai_role": "CodeAnt's first-party case account explicitly attributes discovery to its offensive engine. The primary CNA separately credits CodeAnt AI Security as finder. The underlying learned model and detailed human validation allocation are not disclosed.",
  "disclosure_date": "2026-05-18",
  "ai_attribution_date": "2026-06-29",
  "classification": "disclosure",
  "classification_note": "The maintainer's dated 4.0.5 release changelog publicly describes the security fix on 18 May; the CNA publication follows inJune and CodeAnt's AI-attribution article is dated 29 June. Unknown zero-day status is not inferred.",
  "cves": [
    "CVE-2026-29509"
  ],
  "source_url": "https://github.com/wummel/patool/releases/tag/4.0.5",
  "ai_source_url": "https://codeant.ai/blogs/cve-2026-29509-zip-slip-attack-patool-safe-extract",
  "advisory_url": "https://raw.githubusercontent.com/wummel/patool/4.0.5/doc/changelog.txt",
  "remediation": "fix documented",
  "remediation_note": "The maintainer's release 4.0.5 changelog documents the correction for Python tarfile extraction on Python below 3.12. CodeAnt also identifies 4.0.5 as fixed. This does not establish installed updates or immunity in unreviewed extraction configurations.",
  "checked_date": "2026-11-21",
  "remediation_details": {
    "source_url": "https://www.cve.org/CVERecord?id=CVE-2026-29509",
    "checked_date": "2026-11-21",
    "scope": "patool using Python's tarfile module on Python versions before 3.12",
    "fixed_in": [
      "4.0.5"
    ],
    "comparison": {
      "upper_bound": "4.0.5",
      "inclusive": false
    },
    "action": "Update patool to 4.0.5 or later for the documented correction. The advisory range applies to the specified extraction backend and Python runtime; it does not establish that every older release/configuration was independently tested."
  }
}
