{"answers":{"affected":"3 open source packages ship an affected version, including github.com/coredns/coredns.","exploited":"There is no known exploitation of GHSA-gv9j-4w24-q7vx in the wild and no public exploit code.","fix":"Upgrade github.com/coredns/coredns to 1.6.6 or later.","what":"GHSA-gv9j-4w24-q7vx is a vulnerability in github.com/coredns/coredns, published on 1 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-gv9j-4w24-q7vx and fix it if it is affected.\n\nWhat it is: GHSA-gv9j-4w24-q7vx is a vulnerability in github.com/coredns/coredns, published on 1 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-gv9j-4w24-q7vx in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/coredns/coredns (Go): affected all versions; fixed in 1.6.6\n- github.com/coredns/coredns (Go): affected all versions; fixed in 1.6.6\n- github.com/coredns/coredns (Go): affected all versions; fixed in 1.6.6\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/GHSA-gv9j-4w24-q7vx/ (Markdown: https://insights.sbomify.com/GHSA-gv9j-4w24-q7vx/index.md)","id":"GHSA-gv9j-4w24-q7vx","markdown":"https://insights.sbomify.com/GHSA-gv9j-4w24-q7vx/index.md","name":"GHSA-gv9j-4w24-q7vx","record":{"aliases":["GO-2022-0368"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"DNS server","requires_auth":"none","summary":"Predictable transaction IDs in CoreDNS allow attackers to forge DNS responses, potentially redirecting traffic or poisoning caches.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nCoreDNS before 1.6.6 (using go DNS package \u003c 1.1.25) improperly generates random numbers because math/rand is used. The TXID becomes predictable, leading to response forgeries.\n\n### Patches\nThe problem has been fixed in 1.6.6+.\n\n### References\n- [CVE-2019-19794](https://nvd.nist.gov/vuln/detail/CVE-2019-19794)\n\n### For more information\nPlease consult [our security guide](https://github.com/coredns/coredns/blob/master/.github/SECURITY.md) for more information regarding our security process.","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":"Improper random number generation in github.com/coredns/coredns","id":"GHSA-gv9j-4w24-q7vx","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"weak_cryptography","year":"2022"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["1.6.6"],"introduced":["0"],"last_affected":[],"package":"github.com/coredns/coredns","purl":null,"source":"GHSA-gv9j-4w24-q7vx"},{"ecosystem":"Go","fixed":["1.6.6"],"introduced":["0"],"last_affected":[],"package":"github.com/coredns/coredns","purl":"pkg:golang/github.com/coredns/coredns","source":"GHSA-gv9j-4w24-q7vx"},{"ecosystem":"Go","fixed":["1.6.6"],"introduced":["0"],"last_affected":[],"package":"github.com/coredns/coredns","purl":"pkg:golang/github.com/coredns/coredns","source":"GO-2022-0368"}],"products":null,"published":"2022-03-01","related":[],"sources":[{"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"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Predictable transaction IDs in CoreDNS allow attackers to forge DNS responses, potentially redirecting traffic or poisoning caches.","url":"https://insights.sbomify.com/GHSA-gv9j-4w24-q7vx/"}