{"answers":{"affected":"6 open source packages ship an affected version, including zotregistry.dev/zot and zotregistry.dev/zot/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-31801 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-31801 is a high-severity missing authorization vulnerability in project-zot zot, published on 10 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-31801 and fix it if it is affected.\n\nWhat it is: CVE-2026-31801 is a high-severity missing authorization vulnerability in project-zot zot, published on 10 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-31801 exists.\n\nAffected packages and fixed versions:\n- zotregistry.dev/zot (Go): affected all versions; no fix listed\n- zotregistry.dev/zot (Go): affected from 1.3.0-20210831063041-c8779d9e87d9 up to 1.4.4-20251014054906-73eef25681af; no fix listed\n- zotregistry.dev/zot (Go): affected from 1.3.0-20210831063041-c8779d9e87d9 up to 1.4.4-20251014054906-73eef25681af; no fix listed\n- zotregistry.dev/zot/v2 (Go): affected all versions; fixed in 2.1.15\n- zotregistry.dev/zot/v2 (Go): affected all versions; fixed in 2.1.15\n- zotregistry.dev/zot/v2 (Go): affected all versions; fixed in 2.1.15\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-31801/ (Markdown: https://insights.sbomify.com/CVE-2026-31801/index.md)","id":"CVE-2026-31801","markdown":"https://insights.sbomify.com/CVE-2026-31801/index.md","name":"CVE-2026-31801","record":{"aliases":["GHSA-85jx-fm8m-x8c6","GO-2026-4668"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Container image registry","requires_auth":"low_privilege","summary":"Attackers with create permissions can overwrite existing 'latest' tags in zot registry without update permissions, bypassing authorization controls.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"zot","vendor":"zotregistry"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"description":"zot is ancontainer image/artifact registry based on the Open Container Initiative Distribution Specification. From 1.3.0 to 2.1.14, zot’s dist-spec authorization middleware infers the required action for PUT /v2/{name}/manifests/{reference} as create by default, and only switches to update when the tag already exists and reference != \"latest\". As a result, when latest already exists, a user who is allowed to create (but not allowed to update) can still pass the authorization check for an overwrite attempt of latest. This vulnerability is fixed in 2.1.15.","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":"zot create-only policy allows overwrite attempts of existing latest tag (update permission not required)","id":"CVE-2026-31801","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":6,"n_references":1,"next":{"headline":"node-tar Symlink Path Traversal via Drive-Relative Linkpath","id":"CVE-2026-31802"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"zotregistry.dev/zot","purl":"pkg:golang/zotregistry.dev/zot","source":"GO-2026-4668"},{"ecosystem":"Go","fixed":[],"introduced":["1.3.0-20210831063041-c8779d9e87d9"],"last_affected":["1.4.4-20251014054906-73eef25681af"],"package":"zotregistry.dev/zot","purl":null,"source":"GHSA-85jx-fm8m-x8c6"},{"ecosystem":"Go","fixed":[],"introduced":["1.3.0-20210831063041-c8779d9e87d9"],"last_affected":["1.4.4-20251014054906-73eef25681af"],"package":"zotregistry.dev/zot","purl":"pkg:golang/zotregistry.dev/zot","source":"GHSA-85jx-fm8m-x8c6"},{"ecosystem":"Go","fixed":["2.1.15"],"introduced":["0"],"last_affected":[],"package":"zotregistry.dev/zot/v2","purl":null,"source":"GHSA-85jx-fm8m-x8c6"},{"ecosystem":"Go","fixed":["2.1.15"],"introduced":["0"],"last_affected":[],"package":"zotregistry.dev/zot/v2","purl":"pkg:golang/zotregistry.dev/zot/v2","source":"GHSA-85jx-fm8m-x8c6"},{"ecosystem":"Go","fixed":["2.1.15"],"introduced":["0"],"last_affected":[],"package":"zotregistry.dev/zot/v2","purl":"pkg:golang/zotregistry.dev/zot/v2","source":"GO-2026-4668"}],"prev":{"headline":"Parse Server: Classes `_GraphQLConfig` and `_Audience` master key bypass via generic class routes","id":"CVE-2026-31800"},"products":["zot"],"published":"2026-03-10","related":[{"cvss_score":7.3,"headline":"IdP group membership revocation ignored in zot","id":"CVE-2025-23208","kev_date_added":null,"published":"2025-01-17"},{"cvss_score":4.3,"headline":"Cache driver GetBlob() allows read access to any blob without access control check","id":"CVE-2024-39897","kev_date_added":null,"published":"2024-07-09"}],"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-11","vendors":["project-zot"]},"summary":"Attackers with create permissions can overwrite existing 'latest' tags in zot registry without update permissions, bypassing authorization controls.","url":"https://insights.sbomify.com/CVE-2026-31801/"}