CVE-2026-126984: Pulp_python: pulp_python: pull-through caching fetches a client-supplied url with the remote's credentials

Published Nov 25, 2026
·
Updated

A server-side request forgery flaw has been found in the getremoteartifacturl() function in pulppython/app/models.py of the pull-through caching feature in the pulppython 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 ondemand, 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.

Other sources

PythonRemote.getremoteartifacturl() in pulppython/app/models.py returns the request's redirect query parameter as the download URL. It does not compare that value with the remote's URL or with the URL the upstream simple page listed for the file.

pullthroughpackagesimple() in pulppython/app/pypi/views.py builds the simple-page link as <filename>?redirect=<upstream file URL>. Handler.matchandstream() in pulpcore/content/handler.py calls getremoteartifacturl() when the distribution has a remote and the relative path is not already stored. It builds a RemoteArtifact with that URL and no digest, then downloads it through Remote.getdownloader(). DownloaderFactory.httporhttps() sets aiohttp basic auth from the remote's username and password whenever the username is set, and HttpDownloader passes that auth on the GET to the URL it was given.

The response body is written to the client. The remote policy field defaults to immediate. For immediate and ondemand, the content type for a package file is PythonPackageContent, saveartifact() stores the file, and PythonRepository.asyncpullthroughaddcontent() adds it to the repository. PythonPackageContent.initfromartifactandrelativepath() takes the filename from the request path and the project name and version from the file's metadata. The package simple page builds its listing from the remote and then applies the repository's files with releases.update(localreleases), so a stored filename is the one later clients see. A streamed policy skips the save. The download, the returned body, and the basic-auth header still happen. A relative path that is already in the repository is served from the stored artifact.

An anonymous client can read the response of a URL it chooses, from the content app's network position. When the remote has a username and password, those credentials are sent to the host in that URL. From pulppython 3.14.0 onward the saved file is part of the repository and is served to later clients of the distribution.

The caller needs no Pulp account. Distribution.contentguard is null by default, and Handler.permit() allows the request when no guard is set. The distribution must have a remote. That is the pull-through configuration. No extra plugin is required.

The redirect return was introduced by Gerrod Ubben in commit 81b613388069487d50f9db19c5e3a3675c9d7bc7, committed 2021-11-30. pulppython 3.6.0, released 2021-12-15, is the first release that contains it. Saving pull-through content into the repository was added in commit df8b5ad22dbac8537d427975815e05b4894ed492 on 2025-04-02, released in pulppython 3.14.0 on 2025-04-10.

The same function appends .metadata to the client-supplied URL when the requested path ends in .metadata. Remote.getremoteartifacturl() joins the configured remote URL and the relative path.

— Red Hat

Affected Software

1 affected component
pypi/pulp_python>=3.6.0

Event History

Nov 25, 2026
Data Sourced
via Red Hat·03:07 PM
DescriptionSeverityAffected Software
Nov 26, 2026
CVE Published
via MITRE·03:40 PM
Data Sourced
via MITRE·03:40 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

A Python distribution using pull-through caching is exposed if its content app is reachable by a network attacker or user and the distribution has a remote configured. The affected behavior applies when the remote policy is immediate, which is the default, or on_demand.

2

What does an attacker need to exploit this?

The attacker needs network access to the content app and the ability to make a request that supplies a redirect query parameter. No credentials or user interaction are described as necessary.

3

When are remote credentials at risk?

If the configured remote has a username and password, the content app sends those credentials to the host selected through the client-supplied URL. The attacker-controlled host can therefore receive the remote's credentials.

4

Can exploitation leave persistent content in the repository?

Yes. With immediate or on_demand remote policy, the downloaded file is saved in the distribution repository and may later be served to other clients. Its project name and version are taken from the file, while its filename comes from the request path.

5

How can administrators identify potentially affected cached files?

Review repository content cached through pull-through requests for filenames that overlap files already stored in the repository, since such a filename is served from the stored file. The provided information does not specify a log signature or other definitive detection method.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203