{"answers":{"affected":"6 open source packages ship an affected version, including github.com/distribution/distribution and github.com/distribution/distribution/v3. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-33540 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-33540 is a high-severity server-side request forgery vulnerability in distribution, published on 6 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-33540 and fix it if it is affected.\n\nWhat it is: CVE-2026-33540 is a high-severity server-side request forgery vulnerability in distribution, published on 6 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-33540 exists.\n\nAffected packages and fixed versions:\n- github.com/distribution/distribution (Go): affected all versions; no fix listed\n- github.com/distribution/distribution (Go): affected all versions up to 2.8.3; no fix listed\n- github.com/distribution/distribution (Go): affected all versions up to 2.8.3; no fix listed\n- github.com/distribution/distribution/v3 (Go): affected all versions; fixed in 3.1.0\n- github.com/distribution/distribution/v3 (Go): affected all versions; fixed in 3.1.0\n- github.com/distribution/distribution/v3 (Go): affected all versions; fixed in 3.1.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-33540/ (Markdown: https://insights.sbomify.com/CVE-2026-33540/index.md)","id":"CVE-2026-33540","markdown":"https://insights.sbomify.com/CVE-2026-33540/index.md","name":"CVE-2026-33540","record":{"aliases":["CLEANSTART-2026-NX58071","CLEANSTART-2026-ZI66882","DEBIAN-CVE-2026-33540","GHSA-3p65-76g6-3w7r","GO-2026-5094","MINI-27f3-rp82-prhg","MINI-2c56-9qvf-7468","MINI-72p5-97vg-rmjj","MINI-7r77-9chc-xmm2","MINI-85q4-wx4f-fwh4","MINI-8mqp-39qq-5vc2","MINI-9h82-vw7q-p4xq","MINI-9r22-mqqc-4jgf","MINI-9rfg-4jm2-cr27","MINI-c727-qfmp-55h6","MINI-cx94-m58w-6jcr","MINI-hg6g-vvxq-hqq2","MINI-j98p-wc7p-3c38","MINI-mh8m-whc7-7qwj","MINI-p726-4jgq-662x","MINI-prf8-gfxp-fw6v","MINI-q27f-r864-7rqj","MINI-qcqw-4xvr-9mrf","MINI-r4c3-q3vg-pw2m","MINI-r82v-3q9p-p79x","MINI-r8cm-rf53-5c5p","MINI-r925-pmmq-j99h","MINI-wjpm-hr7g-j3vp","MINI-x42p-4f3v-prm3","MINI-xpr2-jv4g-469q","UBUNTU-CVE-2026-33540"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Container registry distribution","requires_auth":"none","summary":"Attackers can exfiltrate upstream registry credentials by manipulating WWW-Authenticate headers in pull-through cache mode.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"distribution","vendor":"distribution_project"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"Distribution is a toolkit to pack, ship, store, and deliver container content. Prior to 3.1.0, in pull-through cache mode, distribution discovers token auth endpoints by parsing WWW-Authenticate challenges returned by the configured upstream registry. The realm URL from a bearer challenge is used without validating that it matches the upstream registry host. As a result, an attacker-controlled upstream (or an attacker with MitM position to the upstream) can cause distribution to send the configured upstream credentials via basic auth to an attacker-controlled realm URL. This vulnerability is fixed in 3.1.0.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Distribution affected by pull-through cache credential exfiltration via www-authenticate bearer realm","id":"CVE-2026-33540","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":6,"n_references":1,"next":{"headline":"TSPortal's Uncontrolled User Creation via Validation Side Effects Leads to Potential Denial of Service","id":"CVE-2026-33541"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/distribution/distribution","purl":"pkg:golang/github.com/distribution/distribution","source":"GO-2026-5094"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.8.3"],"package":"github.com/distribution/distribution","purl":null,"source":"GHSA-3p65-76g6-3w7r"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.8.3"],"package":"github.com/distribution/distribution","purl":"pkg:golang/github.com/distribution/distribution","source":"GHSA-3p65-76g6-3w7r"},{"ecosystem":"Go","fixed":["3.1.0"],"introduced":["0"],"last_affected":[],"package":"github.com/distribution/distribution/v3","purl":null,"source":"GHSA-3p65-76g6-3w7r"},{"ecosystem":"Go","fixed":["3.1.0"],"introduced":["0"],"last_affected":[],"package":"github.com/distribution/distribution/v3","purl":"pkg:golang/github.com/distribution/distribution/v3","source":"GHSA-3p65-76g6-3w7r"},{"ecosystem":"Go","fixed":["3.1.0"],"introduced":["0"],"last_affected":[],"package":"github.com/distribution/distribution/v3","purl":"pkg:golang/github.com/distribution/distribution/v3","source":"GO-2026-5094"}],"prev":{"headline":"Parse Server: SQL injection via aggregate and distinct field names in PostgreSQL adapter","id":"CVE-2026-33539"},"products":["distribution"],"published":"2026-04-06","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-06","vendors":["distribution"]},"summary":"Attackers can exfiltrate upstream registry credentials by manipulating WWW-Authenticate headers in pull-through cache mode.","url":"https://insights.sbomify.com/CVE-2026-33540/"}