{"answers":{"affected":"2 open source packages ship an affected version, including github.com/cloudsoda/go-smb2 and github.com/hirochachacha/go-smb2.","exploited":"There is no known exploitation of GO-2026-5051 in the wild and no public exploit code.","fix":"Upgrade github.com/cloudsoda/go-smb2 to 0.0.0-20260609183447-7b96c35f5f4b or later.","what":"GO-2026-5051 is a denial of service vulnerability in github.com/cloudsoda/go-smb2, published on 27 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GO-2026-5051 and fix it if it is affected.\n\nWhat it is: GO-2026-5051 is a denial of service vulnerability in github.com/cloudsoda/go-smb2, published on 27 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GO-2026-5051 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cloudsoda/go-smb2 (Go): affected all versions; fixed in 0.0.0-20260609183447-7b96c35f5f4b\n- github.com/hirochachacha/go-smb2 (Go): affected all versions; no fix listed\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/GO-2026-5051/ (Markdown: https://insights.sbomify.com/GO-2026-5051/index.md)","id":"GO-2026-5051","markdown":"https://insights.sbomify.com/GO-2026-5051/index.md","name":"GO-2026-5051","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go SMB2 client library","requires_auth":"none","summary":"A remote attacker can crash the Go SMB2 client via a malicious server response, causing a denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"ReadDir and ReadDirPlus parse the QUERY_DIRECTORY SMB response by advancing through entries using the server-supplied NextEntryOffset field. The pre-fix code does not bound next against the remaining buffer before re-slicing, and the entry decoder IsInvalid check performs length arithmetic in int after narrowing from uint16.\n\nA guest or anonymous directory listing against an attacker-controlled or man-in-the-middle SMB server crashes the Go client process with a runtime panic when the response contains an entry whose NextEntryOffset is larger than the remaining buffer, or whose declared FileNameLength produces a length that does not match the actual buffer size.","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Out-of-bounds read and panic in ReadDir in github.com/cloudsoda/go-smb2 and github.com/hirochachacha/go-smb2","id":"GO-2026-5051","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.0.0-20260609183447-7b96c35f5f4b"],"introduced":["0"],"last_affected":[],"package":"github.com/cloudsoda/go-smb2","purl":"pkg:golang/github.com/cloudsoda/go-smb2","source":"GO-2026-5051"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/hirochachacha/go-smb2","purl":"pkg:golang/github.com/hirochachacha/go-smb2","source":"GO-2026-5051"}],"products":null,"published":"2026-07-27","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A remote attacker can crash the Go SMB2 client via a malicious server response, causing a denial of service.","url":"https://insights.sbomify.com/GO-2026-5051/"}