{"answers":{"affected":"1 open source package ship an affected version, including consul.","exploited":"There is no known exploitation of CVE-2026-5061 in the wild and no public exploit code.","fix":"Upgrade consul to 0.42.0 or later.","what":"CVE-2026-5061 is a medium-severity path traversal vulnerability in HashiCorp Tooling, published on 12 May 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-5061 and fix it if it is affected.\n\nWhat it is: CVE-2026-5061 is a medium-severity path traversal vulnerability in HashiCorp Tooling, published on 12 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-5061 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- consul (Bitnami): affected from 0.1.0; fixed in 0.42.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-5061/ (Markdown: https://insights.sbomify.com/CVE-2026-5061/index.md)","id":"CVE-2026-5061","markdown":"https://insights.sbomify.com/CVE-2026-5061/index.md","name":"CVE-2026-5061","record":{"aliases":["BIT-consul-2026-5061","GHSA-m633-g3vp-7qw3"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Consul template library","requires_auth":"low_privilege","summary":"An attacker can bypass sandbox restrictions to read arbitrary files outside the intended directory using a symlink attack in the file helper.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"HashiCorp","cpe":[],"cvss":{"score":4.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"description":"The consul-template library before version 0.42.0 is vulnerable to a sandbox path bypass in the file template helper that may allow reading an out-of-sandbox file. This vulnerability (CVE-2026-5061) is fixed in consul-template 0.42.0.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":"2026-08-01","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-08-01T16:49:47Z","kind":"github_poc","ref":"https://github.com/0xmrma/CVE-2026-5061","stars":1,"title":"Consul Template validated where a symlink pointed during template evaluation, but its later dependency fetch read the original path. Retargeting the link between those operations turned an in-sandbox file reference into an out-of-sandbox file disclosure."}],"tier":"poc_unverified"},"has_fix":true,"headline":"Consul-template vulnerable to sandbox path bypass in file helper via a symlink attack","id":"CVE-2026-5061","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":1,"n_references":1,"next":{"headline":"PrettyLinks \u003c= 3.6.20 - Authenticated (Administrator+) SQL Injection via 's' Parameter","id":"CVE-2026-5062"},"packages":[{"ecosystem":"Bitnami","fixed":["0.42.0"],"introduced":["0.1.0"],"last_affected":[],"package":"consul","purl":"pkg:bitnami/consul","source":"BIT-consul-2026-5061"}],"prev":{"headline":"Missing authorization in MasterStudy LMS WordPress Plugin – for Online Courses and Education","id":"CVE-2026-5060"},"products":["Tooling"],"published":"2026-05-12","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-12","vendors":["HashiCorp"]},"summary":"An attacker can bypass sandbox restrictions to read arbitrary files outside the intended directory using a symlink attack in the file helper.","url":"https://insights.sbomify.com/CVE-2026-5061/"}