CVE Professor
/
All CVEs
CVE-2026-126984

CVE-2026-126984 — Pulp Python — CWE-918

CRITICAL CVSS 10 NVD

A **server-side request forgery** flaw has been found in the get_remote_artifact_url() function in pulp_python/app/models.py of the pull-through caching feature in the **pulp_python** package. The function uses the redirect query parameter from the client request as the URL to download. A network attacker or user who can reach the content app of a Python distribution that has a remote can choose that URL. The content app downloads it and returns the response. When the remote has a username and password, the download sends those credentials to the host in the URL. When the remote policy is immediate, the default, or on_demand, the file is saved into the distribution's repository and later clients are served that file. The project name and version come from the file, and the filename comes from the request path. A filename the repository already stores is served from the stored file.

A **server-side request forgery** flaw has been found in the get_remote_artifact_url() function in pulp_python/app/models.py of the pull-through caching feature in the **pulp_python** package. The function uses the redirect query parameter from the client request as the URL to download. A network attacker or user who can reach the content app of a Python distribution that has a remote can choose that URL. The content app downloads it and returns the response. When the remote has a username and password, the download sends those credentials to the host in the URL. When the remote policy is immediate, the default, or on_demand, the file is saved into the distribution's repository and later clients are served that file. The project name and version come from the file, and the filename comes from the request path. A filename the repository already stores is served from the stored file.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Changed S:C
Confidentiality High C:H
Integrity High I:H
Availability None A:N
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a Server-Side Request Forgery (SSRF) flaw (CWE-918) located in the pulp_python package, specifically within the get_remote_artifact_url() function in pulp_python/app/models.py.

The core technical failure is the lack of input validation and sanitization on the redirect query parameter. In the context of Pulp's pull-through caching feature, when a client requests a Python package (artifact) that is not yet cached locally, the Pulp Content App attempts to fetch it from the configured remote repository. The vulnerable function constructs the URL for this upstream request by directly appending or utilizing the redirect parameter provided by the client.

Because the Content App runs with network access to the internal environment (to reach the remote repository) and potentially holds credentials for that remote repository, an unauthenticated attacker can manipulate the redirect parameter to point to arbitrary internal URLs (e.g., http://169.254.169.254/latest/meta-data/ for cloud metadata, or http://internal-service:8080/admin). The Pulp server then performs an HTTP GET request to this attacker-controlled URL.

Critically, the CVSS vector S:C (Scope: Changed) and C:H (Confidentiality: High) indicate that the response from the internal target is returned to the attacker. Furthermore, if the remote repository is configured with a username and password, these credentials are sent in the HTTP headers (or Basic Auth) to the attacker-controlled host, leading to credential theft.

⚡ Attack Chain

1. Discovery & Reconnaissance

  • Fingerprinting: The attacker identifies a Pulp instance. Pulp typically exposes a /pulp/api/v3/ endpoint. The pulp_python plugin is often enabled by default or explicitly installed.
  • Version Check: The attacker queries /pulp/api/v3/python/distributions/ (if unauthenticated read access is allowed) or attempts to access a known Python distribution path (e.g., /pypi/simple/) to confirm the presence of the pulp_python component.
  • Configuration Inference: The attacker determines if a remote repository is configured for pull-through caching. This is often the default setup for public PyPI mirrors.
  • 2. Exploitation

    The attacker sends a request to the Pulp Content App endpoint that serves Python packages. The exact URI depends on the distribution base path, but typically follows the pattern /pypi/simple/<package_name>/.

    The vulnerability is triggered by appending the redirect parameter to the request.

    Illustrative PoC (curl):

    # Example: Attacking a Pulp instance at http://pulp-server:8080
    # The distribution base path is assumed to be /pypi/
    # The attacker requests a non-existent package 'testpkg' to force a remote fetch
    # The 'redirect' parameter is set to an internal target
    
    curl -v "http://pulp-server:8080/pypi/simple/testpkg/?redirect=http://169.254.169.254/latest/meta-data/"

    Mechanics:
    1. The request hits the Pulp Content App.
    2. The get_remote_artifact_url() function extracts redirect=http://169.254.169.254/latest/meta-data/.
    3. The Pulp server initiates an HTTP GET request to http://169.254.169.254/latest/meta-data/.
    4. Scenario A (SSRF Data Exfiltration): The response from the metadata service (e.g., IAM role credentials, instance ID) is returned to the attacker in the HTTP response body.
    5. Scenario B (Credential Theft): If the remote PyPI repository is configured with username and password, the Pulp server sends these credentials in the Authorization header to 169.254.169.254. The attacker can set up a listener to capture these credentials.
    6. Scenario C (Internal Service Interaction): The attacker can target internal services (e.g., http://10.0.0.5:5000/api/v1/status) to probe internal networks or trigger actions if the internal service accepts GET requests with side effects.

    Note on File Caching:
    The CVE description states: "When the remote policy is immediate, the default, or on_demand, the file is saved into the distribution's repository and later clients are served that file."
    This means the attacker can also poison the cache. If the attacker points redirect to a malicious Python package hosted on an external server, Pulp will download it, save it to the local repository, and serve it to all subsequent clients. This leads to Supply Chain Compromise.

    3. Post-Exploitation

  • Cloud Metadata Access: If the Pulp server runs on AWS/GCP/Azure, the attacker can retrieve temporary IAM credentials via the metadata service. These credentials can be used to access S3 buckets, start EC2 instances, or pivot to other cloud resources.
  • Internal Network Pivoting: Using the SSRF, the attacker can scan internal ports, access internal APIs, or interact with internal services that trust the Pulp server's IP address.
  • Credential Reuse: If the remote repository credentials are captured, the attacker can access the upstream PyPI mirror or other services using those credentials.
  • Supply Chain Attack: By poisoning the cache with a malicious package, the attacker can achieve Remote Code Execution (RCE) on any client that installs the package via the compromised Pulp instance. This is the most severe impact, as it extends the compromise to all downstream users.
  • 🌍 Real World Impact

  • Confidentiality (High):
  • * Direct exfiltration of cloud metadata (IAM credentials, instance identity). * Theft of remote repository credentials (username/password) if configured. * Access to internal services that expose sensitive data via GET requests.
  • Integrity (High):
  • * Cache Poisoning: The attacker can replace legitimate Python packages with malicious ones in the local Pulp repository. All clients installing packages from this Pulp instance will receive the malicious code. * Internal Service Manipulation: If internal services accept GET requests that modify state (e.g., GET /admin/reset), the attacker can trigger these actions.
  • Availability (None):
  • * The CVSS vector indicates no direct availability impact. However, an attacker could potentially DoS the Pulp server by triggering large downloads or exhausting resources, but this is not the primary vector.
  • Scope (Changed):
  • * The vulnerability allows the attacker to move from the Pulp application context to the internal network/cloud infrastructure context, which is why the scope is changed.

    Practical Consequences:

  • Cloud Breach: Full compromise of the cloud account if metadata credentials are accessible.

  • Supply Chain Compromise: All developers/CI/CD pipelines using the Pulp instance as a PyPI mirror will install malicious packages, leading to widespread RCE in development and production environments.

  • Lateral Movement: Access to internal services that trust the Pulp server's IP.
  • 🛡️ Remediation & Mitigation

    1. Patching

  • Upgrade: Upgrade pulp_python to a version that includes the fix. The fix likely involves:
  • * Removing the redirect parameter from the URL construction logic. * Validating the redirect parameter against a whitelist of allowed domains (e.g., only the configured remote repository host). * Disabling the redirect parameter entirely if it is not a standard PyPI feature.
  • Check for Updates: Monitor the pulp_python GitHub repository and PyPI for the specific patch release. As of the CVE publication date (26.11.2026), a patched version should be available.
  • 2. Workarounds (If Immediate Patching is Not Possible)

  • Disable Pull-Through Caching: If possible, switch the remote repository policy to on_demand with strict validation, or disable the remote repository entirely and use a static repository.
  • Network Segmentation:
  • * Restrict outbound traffic from the Pulp Content App to only the specific IP/hostname of the remote PyPI repository. * Block access to cloud metadata services (e.g., 169.254.169.254) from the Pulp server using firewall rules. * Block access to internal network ranges (e.g., 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) from the Pulp server.
  • WAF Rules:
  • * Implement a WAF rule to block requests containing the redirect parameter in the query string for the Pulp Content App endpoints. * Example ModSecurity Rule (Illustrative):
    SecRule ARGS:redirect "@rx ^http" "id:100001,phase:2,deny,status:403,msg:'SSRF attempt via redirect parameter'"
  • Disable Remote Repository Credentials: If the remote repository does not require authentication, remove the username/password from the Pulp configuration. This mitigates the credential theft vector but does not prevent SSRF data exfiltration or cache poisoning.
  • 3. Detection

  • Web Server Logs:
  • * Look for requests to the Pulp Content App endpoints (e.g., /pypi/simple/) that contain the redirect parameter. * Example Log Pattern: GET /pypi/simple/<package>/?redirect=http://...
  • Pulp Logs:
  • * Check Pulp application logs for outbound HTTP requests to unexpected hosts. * Look for errors or warnings related to failed downloads from non-standard URLs.
  • Network Traffic:
  • * Monitor outbound traffic from the Pulp server for connections to cloud metadata IPs (169.254.169.254) or internal IPs. * Use tools like Zeek or Suricata to detect SSRF patterns.
  • Cache Poisoning Detection:
  • * Regularly audit the Pulp repository for unexpected packages or changes in package hashes. * Compare the hashes of cached packages with the official PyPI hashes.

    ⚠️ Urgency

  • CVSS Score: 10.0 (Critical)
  • CISA KEV: No (as of the provided data)
  • Exploit Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: None (UI:N)
Patching Priority: IMMEDIATE

This is a critical vulnerability with a low barrier to exploitation. An unauthenticated attacker can easily trigger the SSRF and potentially achieve full compromise of the cloud environment or supply chain. Even though it is not currently in the CISA KEV catalog, the high severity and ease of exploitation make it a top priority for patching.

Recommended Actions:
1. Immediately upgrade pulp_python to the latest patched version.
2. If patching is delayed, implement network segmentation to block outbound traffic from the Pulp server to all hosts except the legitimate remote PyPI repository.
3. Audit the Pulp repository for any signs of cache poisoning (unexpected packages or hash mismatches).
4. Rotate any credentials used for the remote PyPI repository, as they may have been compromised.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Pulp pulp_python"
CVSS Score
10 / 10 · CVSS CRITICAL
Weakness Types (CWE)
Affected Products (1)
Pulp:pulp_python
Related CVEs
9.9
CVE-2026-45262
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, Core/Where.php::s
9.6
CVE-2026-118743
Server-side request forgery in Microsoft Copilot allows an authorized attacker to elevate privileges over a ne
9.2
CVE-2026-144579
curl_cffi 0.15.0 through 0.17.0 contains a server-side request forgery protection bypass in allow_redirects='s
8.9
CVE-2026-144591
PhpSpreadsheet through 5.12.0 contains a server-side request forgery vulnerability that allows attackers to re
8.5
CVE-2026-135458
A path traversal vulnerability was identified in GitHub Enterprise Server that allowed a normal authenticated
8.4
CVE-2026-81137
Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains a Server-Side Request Fo
7.1
CVE-2026-144453
AgentCrew before 0.25.1 contains a server-side request forgery and local file read vulnerability that allows m