CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-113717

CVE-2026-113717: Package Digest Verification Bypass in virtualenv Pip Seeder

Alon Barad
Alon Barad
Software Engineer

Oct 24, 2026·5 min read·14 visits

Executive Summary (TL;DR)

virtualenv prior to 21.14.9 fails to enforce internal SHA-256 digest verification when seeding environments with '--seeder pip --download', allowing pip to fetch and install wheels without PyPI hash validation.

A verification bypass vulnerability in virtualenv allows unverified Python wheel installation when using pip seeding with the download flag. Affected versions fail to perform SHA-256 digest validation against PyPI metadata before invoking pip.

Vulnerability Overview

virtualenv is a standard Python library used to create isolated Python virtual environments. When creating an environment, virtualenv installs essential seed packages including pip, setuptools, and wheel. The population of these packages is governed by internal seeder implementations, such as the pip_invoke module.

In versions of virtualenv prior to 21.14.9, invoking virtualenv with the flags '--seeder pip' and '--download' causes virtualenv to bypass its internal digest verification workflow. Under normal operating conditions, virtualenv fetches wheel metadata from PyPI and compares the downloaded wheel's SHA-256 digest against expected PyPI checksums before proceeding with installation.

The attack surface is present in software build processes, automated CI/CD pipelines, and developer environments that invoke virtualenv with pip seeding and wheel download options enabled. The issue is tracked under CWE-494: Download of Code Without Integrity Check.

Root Cause Analysis

The root cause is located in 'src/virtualenv/seed/embed/pip_invoke.py' within the 'PipInvoke.get_pip_install_cmd()' method. When generating the required installation arguments for seed packages, 'get_pip_install_cmd()' passed 'download=False' to the internal helper 'get_wheel()', despite 'self.download' being set to True.

Because 'download=False' was supplied, 'get_wheel()' refrained from invoking 'download_wheel()' in 'src/virtualenv/seed/wheels/acquire.py'. The 'download_wheel()' function contains 'verify_wheel_digest()', which is the sole function responsible for validating the wheel digest against PyPI records. Skipping 'download_wheel()' effectively removed cryptographic integrity verification.

Simultaneously, 'get_pip_install_cmd()' conditionally appended the '--no-index' parameter to the pip command string only when 'not self.download' evaluated to True. When 'self.download' was active, '--no-index' was omitted. As a result, pip was executed with permission to query configured external package indices, but without virtualenv having verified the wheel's SHA-256 hash.

Code Analysis & Patch Inspection

An inspection of commit 7babec66e043e1cc8bc66869a063653898719d96 in Pull Request #3430 demonstrates the architectural correction. First, 'PipInvoke.get_pip_install_cmd()' was modified to pass 'download=self.download' directly to 'get_wheel()', ensuring that 'download_wheel()' and 'verify_wheel_digest()' are executed when downloads are requested.

Second, 'download_wheel()' in 'src/virtualenv/seed/wheels/acquire.py' was updated to download wheels into a dedicated 'TemporaryDirectory' staging area prefixed with 'download-'. SHA-256 digest verification is performed on the file in this temporary location before it is transferred to the permanent destination cache.

Third, the pip command generated by PipInvoke now explicitly includes '--no-index' across all execution paths. Network resolution by pip is prevented, and package resolution is limited to pre-verified wheels in a local directory passed via '--find-links'.

# Vulnerable Implementation in src/virtualenv/seed/embed/pip_invoke.py
if not self.download:
    cmd.append("--no-index")
 
wheel = get_wheel(
    distribution,
    version,
    self.for_py_version,
    search_dirs,
    download=False, # Hardcoded False skipped download_wheel() and verify_wheel_digest()
    app_data=self.app_data,
)
 
# Fixed Implementation in Commit 7babec66e043e1cc8bc66869a063653898719d96
cmd: Final = [
    ...
    "--no-index", # Disables external pip index queries
]
with TemporaryDirectory(prefix="virtualenv-seed-") as folder:
    cmd.extend(["--find-links", folder])
    for dist, version in self.distribution_to_versions().items():
        wheel: Final = get_wheel(
            dist,
            version,
            self.for_py_version,
            search_dirs,
            download=self.download, # Passes actual download boolean
            app_data=self.app_data,
        )
        copyfile(wheel.path, Path(folder) / wheel.name)
        cmd.append(Version.as_pip_req(dist, wheel.version))
    yield cmd

Exploitation Mechanics & Flow

Exploitation requires specific environmental conditions. An attacker cannot trigger the flaw without execution of virtualenv using '--seeder pip' and '--download'. Additionally, the environment must resolve package queries to a malicious index, an untrusted package mirror, or be subject to a network position capable of intercepting traffic.

When virtualenv runs under these conditions on an unpatched version, pip executes external lookups. Because virtualenv omitted '--no-index' and failed to verify the hash prior to pip execution, pip retrieves and installs candidate wheels matching the requested name and version without checking PyPI digest metadata.

The diagram below outlines the sequence leading to unverified wheel execution:

Impact Assessment

Successful exploitation leads to the installation of arbitrary Python wheel packages into newly created virtual environments. If a malicious wheel is supplied, any installation hooks or code included in the package execute with the privileges of the user running virtualenv.

In continuous integration and build environments, this vulnerability permits supply chain compromise, potential exfiltration of CI secrets, or modification of built application artifacts.

The CVSS v4.0 base score is evaluated at 2.3 (Low) with vector 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N'. Severity is limited due to the required execution flags, network prerequisites, and user interaction conditions.

Mitigation & Patch Guidance

The primary remediation is updating virtualenv to version 21.14.9 or higher. The fixed version forces all wheel downloads through isolation staging directories and enforces SHA-256 digest validation before invoking pip.

If upgrading immediately is not possible, avoid using the combination of '--seeder pip' and '--download'. Standard seeder configurations or pre-cached wheels are not affected by this bypass.

When using non-PyPI mirrors, ensure index URLs are explicitly defined using official environment variables ('PIP_INDEX_URL' and 'PIP_EXTRA_INDEX_URL') and verify that TLS enforcement is strictly active.

Official Patches

PyPAPull Request #3430: Fix pip invoke wheel download integrity verification

Fix Analysis (1)

Technical Appendix

CVSS Score
2.3/ 10
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
EPSS Probability
0.30%
Top 79% most exploited

Affected Systems

virtualenv

Affected Versions Detail

Product
Affected Versions
Fixed Version
virtualenv
PyPA
< 21.14.921.14.9
AttributeDetail
Vulnerability IDCVE-2026-113717 / GHSA-cx28-75q4-x26q
CWE IDCWE-494 (Download of Code Without Integrity Check)
CVSS Score2.3 (CVSS v4.0 Low)
EPSS Score0.00297 (21.21st percentile)
Attack VectorNetwork (Requires specific CLI flags and index configuration)
Exploit StatusNo public weaponized exploit
Patched Versionvirtualenv 21.14.9

MITRE ATT&CK Mapping

T1195.001Supply Chain Compromise: Compromise Software Dependencies and Development Tools
Initial Access
T1204.002User Execution: Malicious File
Execution
CWE-494
Download of Code Without Integrity Check

The application downloads executable code or packages from a remote source without verifying the SHA-256 hash digest or cryptographic signature against expected metadata.

Vulnerability Timeline

Initial commit a795ab116356afde11039cf2763d77e8a06da738 merged in release 21.14.8
2026-10-16
Security patch commit 7babec66e043e1cc8bc66869a063653898719d96 submitted via Pull Request #3430
2026-10-17
virtualenv version 21.14.9 released containing complete security fix
2026-10-20
Security Advisory GHSA-cx28-75q4-x26q and CVE-2026-113717 published
2026-10-20

References & Sources

  • [1]GitHub Security Advisory GHSA-cx28-75q4-x26q
  • [2]virtualenv Pull Request #3430 Fix
  • [3]virtualenv Patch Commit 7babec66e043e1cc8bc66869a063653898719d96
  • [4]virtualenv Release 21.14.9 Tag
  • [5]NVD CVE-2026-113717 Detail
  • [6]CVE.org CVE-2026-113717 Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•3 minutes ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
0 views•10 min read
•about 1 hour ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 2 hours ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 3 hours ago•GHSA-GPWC-27CW-RH9R
5.3

CVE-2026-126301: Quadratic CPU Exhaustion in NLTK LegalitySyllableTokenizer

The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.

Amit Schendel
Amit Schendel
4 views•10 min read
•about 4 hours ago•CVE-2026-126304
8.7

CVE-2026-126304: Symlink Path Traversal in NLTK YCOECorpusReader

CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.

Amit Schendel
Amit Schendel
6 views•9 min read
•about 5 hours ago•CVE-2026-128077
6.5

CVE-2026-128077: Authorization Bypass via Request Path Desynchronization in Nuxt and @nuxt/nitro-server

CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.

Amit Schendel
Amit Schendel
5 views•10 min read