{"answers":{"affected":"5 open source packages ship an affected version, including trust-dns-server.","exploited":"There is no known exploitation of GHSA-5fm9-h728-fwpj in the wild and no public exploit code.","fix":"Upgrade trust-dns-server to a fixed version for your release line: 0.22.1 or 0.23.0-alpha.3.","what":"GHSA-5fm9-h728-fwpj is a denial of service vulnerability in trust-dns-server, published on 1 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-5fm9-h728-fwpj and fix it if it is affected.\n\nWhat it is: GHSA-5fm9-h728-fwpj is a denial of service vulnerability in trust-dns-server, published on 1 Jun 2023. 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-5fm9-h728-fwpj in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- trust-dns-server (crates.io): affected all versions; fixed in 0.22.1\n- trust-dns-server (crates.io): affected all versions; fixed in 0.22.1\n- trust-dns-server (crates.io): affected from 0.0.0-0; fixed in 0.22.1, 0.23.0-alpha.3\n- trust-dns-server (crates.io): affected from 0.23.0-alpha.2; fixed in 0.23.0-alpha.3\n- trust-dns-server (crates.io): affected from 0.23.0-alpha.2; fixed in 0.23.0-alpha.3\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-5fm9-h728-fwpj/ (Markdown: https://insights.sbomify.com/GHSA-5fm9-h728-fwpj/index.md)","id":"GHSA-5fm9-h728-fwpj","markdown":"https://insights.sbomify.com/GHSA-5fm9-h728-fwpj/index.md","name":"GHSA-5fm9-h728-fwpj","record":{"aliases":["RUSTSEC-2023-0041"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust DNS library","requires_auth":"none","summary":"Remote attackers can cause denial of service in trust-dns by sending crafted DNS packets that trigger infinite response loops, consuming network and CPU resources.","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":"trust-dns and trust-dns-server are vulnerable to remotely triggered denial-of-service attacks, consuming both network and CPU resources.\nDNS messages with the QR=1 bit set are responded to with a `FormErr` response.\nThis allows creating a traffic loop, in which these `FormErr` responses are sent nonstop between vulnerable servers.\n\nThere are two scenarios how this can be exploited: 1) Create a loop between two instances of trust-dns, consuming network resources, or 2) consuming the CPU of a single instance.\n\nWith two instances *A* and *B* an attacker sends a DNS query with a spoofed source IP address to *A*.\n*A* replies with a `FormErr` to *B*.\nNow both servers with ping-pong the message back and forth until by chance the packet is dropped in the network.\nMultiple spoofed packets can be sent by the attacker, increasing resource consumption.\n\nA single server can get locked up replying to itself.\nSame setup as above, but now *A* sends the reply to itself.\nThe packet is sent out as fast as the CPU and network stack manage.\nThis locks up a CPU core.\nMultiple packets from the attacker consume multiple CPU cores.","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"trust-dns vulnerable to Remote Attackers causing Denial-of-Service (packet loops) with crafted DNS packets","id":"GHSA-5fm9-h728-fwpj","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":5,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.22.1"],"introduced":["0"],"last_affected":[],"package":"trust-dns-server","purl":null,"source":"GHSA-5fm9-h728-fwpj"},{"ecosystem":"crates.io","fixed":["0.22.1"],"introduced":["0"],"last_affected":[],"package":"trust-dns-server","purl":"pkg:cargo/trust-dns-server","source":"GHSA-5fm9-h728-fwpj"},{"ecosystem":"crates.io","fixed":["0.22.1","0.23.0-alpha.3"],"introduced":["0.0.0-0","0.23.0-0"],"last_affected":[],"package":"trust-dns-server","purl":"pkg:cargo/trust-dns-server","source":"RUSTSEC-2023-0041"},{"ecosystem":"crates.io","fixed":["0.23.0-alpha.3"],"introduced":["0.23.0-alpha.2"],"last_affected":[],"package":"trust-dns-server","purl":null,"source":"GHSA-5fm9-h728-fwpj"},{"ecosystem":"crates.io","fixed":["0.23.0-alpha.3"],"introduced":["0.23.0-alpha.2"],"last_affected":[],"package":"trust-dns-server","purl":"pkg:cargo/trust-dns-server","source":"GHSA-5fm9-h728-fwpj"}],"products":null,"published":"2023-06-01","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Remote attackers can cause denial of service in trust-dns by sending crafted DNS packets that trigger infinite response loops, consuming network and CPU resources.","url":"https://insights.sbomify.com/GHSA-5fm9-h728-fwpj/"}