VDB

CVE-2026-113724

CVE-2026-113724 PUBLISHED CVSS 4.5 MEDIUM

virtualenv: Deletion recovery can change a symlink target's mode

Reported by github_m · Published October 20, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
openstack-rally-2026.1Chainguard4.1.0-r5
py3-cassandra-medusaWolfi0.31.0-r1

Risk scores

CVSS 3.1
4.5
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Affected products

VendorProductVersions
pypavirtualenv< 21.14.9
pypavirtualenv
chainguardopenstack-rally-2026.10
wolfipy3-cassandra-medusa0
pypavirtualenv0
chainguardpy3-cassandra-medusa0
chainguardopenstack-rally-2025.20
PyPIvirtualenv0
chainguardrequest-12760

Timeline

  • Oct 20, 2026 CVE Published
  • Oct 21, 2026 EPSS Score (3 in total, the first dated here)
  • Oct 27, 2026 CVE Updated
  • Oct 31, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-113724
vulnetix vdb fixes CVE-2026-113724

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-113724/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›