# CVE-2026-113724: virtualenv: Deletion recovery can change a symlink target's mode

- Severity: Medium 4.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-20T19:53:29.357Z
- Modified: 2026-11-27T06:45:49.759Z
- Also known as: GHSA-43mp-35q3-x3fq, BIT-VIRTUALENV-2026-113724, PYSEC-2026-4383
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pypa virtualenv: < 21.14.9
- virtualenv (PyPI): before 21.14.9; from 21.7.5 before 21.14.9
- virtualenv virtualenv: from 21.7.5 before 21.14.9
- virtualenv (Bitnami): before 21.14.9

## Every score

- GitHub_M: 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: 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`
- NVD: 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`
- PyPA Advisory Database: 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`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/pypa/virtualenv/security/advisories/GHSA-43mp-35q3-x3fq> (exploit, advisory, fix, mitigation, patch, vendor-advisory, web)
- <https://github.com/pypa/virtualenv/pull/3427> (fix, issue-tracking, patch, web)
- <https://github.com/pypa/virtualenv/commit/2bfdc0230d1b2685fedfcfe66c835b9a2ec7c440> (fix, patch, web)
- <https://github.com/pypa/virtualenv/releases/tag/21.14.9> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-113724> (advisory, web)
- <https://github.com/pypa/virtualenv> (package)

## Sources

- CVE List: [CVE-2026-113724](https://www.cve.org/CVERecord?id=CVE-2026-113724), CVE Terms of Use, modified 2026-10-27
- GitHub Advisory Database: [GHSA-43mp-35q3-x3fq](https://github.com/advisories/GHSA-43mp-35q3-x3fq), CC-BY-4.0, modified 2026-11-18
- NVD: [CVE-2026-113724](https://nvd.nist.gov/vuln/detail/CVE-2026-113724), Public domain, modified 2026-11-17
- PyPA Advisory Database: [PYSEC-2026-4383](https://osv.dev/vulnerability/PYSEC-2026-4383), CC-BY-4.0, modified 2026-11-18
- Bitnami Vulnerability Database: [BIT-VIRTUALENV-2026-113724](https://osv.dev/vulnerability/BIT-VIRTUALENV-2026-113724), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-113724 · Whole record: https://cve.day/CVE-2026-113724.json · Rebuilt by cve.day 2026-11-27T07:07:21.884Z
