Finding and attribution
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.
Product: virtualenv (Python virtual environment creation and seeding tool). AI system: Anthropic OSS Scanner (specific model/version not identified in the item-level advisory). Team / organization: Anthropic and Python Packaging Authority (virtualenv maintainers).
CVE identifiers: CVE-2026-113724.
AI and human contribution (source account): 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.
Human involvement is only described where the source account establishes it; unknown involvement does not mean none. Vendor confirmation of a flaw does not confirm every claim about AI contribution.
Discovery context: 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.
Remediation status: fix documented. 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.
A source-documented fix does not establish installed patches or current safety. Source checking does not independently reproduce the finding or establish observed exploitation.
Disclosed 17 Oct 2026. AI attribution dated 17 Oct 2026. Sources checked 14 Nov 2026; these are separate dates, not a live installation check.
Recorded CVSS: Medium · highest recorded score 4.5. Documented technical effects: data modification, other.
Severity, consequences and exploitation evidence
Case grouping uses the highest recorded CVSS score, with its version-specific severity band. It is descriptive, not a combined or editorial risk index. All recorded assessments remain below; scores from different versions and sources may disagree. CVSS specifications define version-specific scoring and severity bands.
- CVE-2026-113724: CVSS 3.1 · 4.5 (Medium) ·
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L. GitHub_M (CNA; CVE Program record) · checked 16 Nov 2026.
CVE-2026-113724: data modification, other.
Prerequisites / affected scope: 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 evidence: The cited source does not state whether this issue was exploited in the wild.. Impact source · checked 16 Nov 2026.
Documented fix: 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.