CVE-2026-126984

Description

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.

Statement

Red Hat Product Security has rated this vulnerability with a Critical security impact. This vulnerability affects pulp_python's pull-through caching.

A network attacker who can reach the content app can exploit a Python distribution that has a remote. The content guard is unset by default, so the request does not require authentication. The remote policy defaults to immediate. Immediate and on_demand both save the downloaded file. A streamed policy still downloads the client-supplied URL and still sends the remote credentials when they are set.

S (Scope): Changed. The response body belongs to the host named in the client-supplied URL, and that host has its own access control. The remote username and password are sent to that host. Those credentials authorize access to the upstream index, which is a separate authority from the content app. The repository write is the content app’s own data, and it is the more severe outcome, so the integrity impact below is included with the changed scope.

C (Confidentiality): High. The caller receives the full response of the URL it chose. When the remote has a username and password, that secret is disclosed to the host in the URL. Disclosure of a credential that unlocks the upstream index is a direct, serious loss.

I (Integrity): High. From pulp_python 3.14.0, the downloaded file is added to the repository under a filename and project name the caller chooses. Later clients of the distribution are served that file, including in place of an upstream filename that was not already stored.

A (Availability): None. The content app keeps serving requests.

The vulnerable code was introduced in pulp_python 3.6.0 when pull-through caching was added. Releases before 3.6.0 do not contain this feature. Saving the downloaded file into the repository was added in pulp_python 3.14.0

Every release from 3.6.0 through 3.38.1 contains the vulnerable function.
Red Hat does not ship pulp_python in any of its Product or Service.

Red Hat Satellite 6.16, 6.17, 6.18, and 6.19 ship rubygem-pulp_python_client. That package is the generated Ruby client for the Pulp API. It does not contain the content app or get_remote_artifact_url(). Those streams are not affected.

Mitigation

Clear the remote field on each Python distribution. Set it to null. The content handler downloads a client-supplied redirect URL only when that field is set, so pull-through caching stops. Packages already stored in the repository continue to be served.

Customers who need pull-through caching should apply the update when a release contains the signed-link fix.

Understanding the Weakness (CWE)

Confidentiality

Technical Impact: Read Application Data

Integrity

Technical Impact: Execute Unauthorized Code or Commands

Access Control

Technical Impact: Bypass Protection Mechanism

By providing URLs to unexpected hosts or ports, attackers can make it appear that the server is sending the request, possibly bypassing access controls such as firewalls that prevent the attackers from accessing the URLs directly. The server can be used as a proxy to conduct port scanning of hosts in internal networks, use other URLs such as that can access documents on the system (using file://), or use other protocols such as gopher:// or tftp://, which may provide greater control over the contents of requests.

Acknowledgements

Red Hat would like to thank Mihaly Hazag (EVT) for reporting this issue.

Frequently Asked Questions

Want to get errata notifications? Sign up here.