{"answers":{"affected":"3 open source packages ship an affected version, including github.com/theupdateframework/go-tuf/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-24686 exists.","fix":"Upgrade github.com/theupdateframework/go-tuf/v2 to 2.4.1 or later.","what":"CVE-2026-24686 is a medium-severity path traversal vulnerability in theupdateframework go-tuf, published on 27 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-24686 and fix it if it is affected.\n\nWhat it is: CVE-2026-24686 is a medium-severity path traversal vulnerability in theupdateframework go-tuf, published on 27 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-24686 exists.\n\nAffected packages and fixed versions:\n- github.com/theupdateframework/go-tuf/v2 (Go): affected all versions; fixed in 2.4.1\n- github.com/theupdateframework/go-tuf/v2 (Go): affected all versions; fixed in 2.4.1\n- github.com/theupdateframework/go-tuf/v2 (Go): affected all versions; fixed in 2.4.1\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-24686/ (Markdown: https://insights.sbomify.com/CVE-2026-24686/index.md)","id":"CVE-2026-24686","markdown":"https://insights.sbomify.com/CVE-2026-24686/index.md","name":"CVE-2026-24686","record":{"aliases":["BELL-CVE-2026-24686","CLEANSTART-2026-AP98474","CLEANSTART-2026-BV58345","DEBIAN-CVE-2026-24686","GHSA-jqc5-w2xx-5vq4","GO-2026-4377","MINI-2f3g-pmh6-5w9v","MINI-338m-4wh4-9pqm","MINI-3cc8-33jx-9m8r","MINI-3f9v-6w4m-4wmf","MINI-4j42-f456-vp2v","MINI-6c4m-q3vf-4f7p","MINI-6crw-ph6f-c7q6","MINI-7wf4-75v6-fj6g","MINI-8f95-9wr5-8f3p","MINI-8g9r-52pq-h265","MINI-8m8g-jg9p-86vj","MINI-9wmg-85cq-pv62","MINI-fjgf-mhj6-j5jq","MINI-g452-qvpc-37m5","MINI-g64w-8g99-c6w9","MINI-h9pp-mchm-wx5j","MINI-hpq2-rqr8-pq6m","MINI-hpxc-m83x-r653","MINI-m9xm-582m-2wwh","MINI-mf6q-vr8m-rrjx","MINI-pfhw-h3mw-q539","MINI-qjvq-6q5c-cg83","MINI-qmph-3758-7r2f","MINI-rhw9-32cm-gqrh","MINI-v32j-7mh9-56c5","MINI-vvhf-cg3p-5cvq","MINI-w3hf-c9cw-223v","MINI-w9gh-pxcg-2f9c","MINI-wf64-wjj8-j5g2","MINI-wjpg-77w8-267c","MINI-wmfm-x9h2-v24x","MINI-xfw9-9w56-mfwx","MINI-xwh5-mgv6-4r86","UBUNTU-CVE-2026-24686"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go TUF library","requires_auth":"low_privilege","summary":"An attacker can write arbitrary files outside the intended cache directory by supplying malicious repository names in the go-tuf TAP 4 Multirepo Client.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"go-tuf","vendor":"theupdateframework"}],"cvss":{"score":4.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"go-tuf is a Go implementation of The Update Framework (TUF). go-tuf's TAP 4 Multirepo Client uses the map file repository name string (`repoName`) as a filesystem path component when selecting the local metadata cache directory. Starting in version 2.0.0 and prior to version 2.4.1, if an application accepts a map file from an untrusted source, an attacker can supply a `repoName` containing traversal (e.g., `../escaped-repo`) and cause go-tuf to create directories and write the root metadata file outside the intended `LocalMetadataDir` cache base, within the running process's filesystem permissions. Version 2.4.1 contains a patch.","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":"go-tuf Path Traversal in TAP 4 Multirepo Client Allows Arbitrary File Write via Malicious Repository Names","id":"CVE-2026-24686","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Umbraco.Forms has path traversal and file enumeration vulnerability in Linux/Mac","id":"CVE-2026-24687"},"packages":[{"ecosystem":"Go","fixed":["2.4.1"],"introduced":["0"],"last_affected":[],"package":"github.com/theupdateframework/go-tuf/v2","purl":null,"source":"GHSA-jqc5-w2xx-5vq4"},{"ecosystem":"Go","fixed":["2.4.1"],"introduced":["0"],"last_affected":[],"package":"github.com/theupdateframework/go-tuf/v2","purl":"pkg:golang/github.com/theupdateframework/go-tuf/v2","source":"GHSA-jqc5-w2xx-5vq4"},{"ecosystem":"Go","fixed":["2.4.1"],"introduced":["0"],"last_affected":[],"package":"github.com/theupdateframework/go-tuf/v2","purl":"pkg:golang/github.com/theupdateframework/go-tuf/v2","source":"GO-2026-4377"}],"prev":{"headline":"OpenProject has Argument Injection on Repository module that allows Arbitrary File Write","id":"CVE-2026-24685"},"products":["go-tuf"],"published":"2026-01-27","related":[{"cvss_score":8,"headline":"No protection against rollback attacks in go-tuf","id":"CVE-2022-29173","kev_date_added":null,"published":"2022-05-05"},{"cvss_score":5.9,"headline":"go-tuf affected by client DoS via malformed server response","id":"CVE-2026-23991","kev_date_added":null,"published":"2026-01-22"},{"cvss_score":5.9,"headline":"go-tuf improperly validates the configured threshold for delegations","id":"CVE-2026-23992","kev_date_added":null,"published":"2026-01-22"}],"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-01-27","vendors":["theupdateframework"]},"summary":"An attacker can write arbitrary files outside the intended cache directory by supplying malicious repository names in the go-tuf TAP 4 Multirepo Client.","url":"https://insights.sbomify.com/CVE-2026-24686/"}