{"answers":{"affected":"6 open source packages ship an affected version, including github.com/gofiber/utils and github.com/gofiber/utils/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66565 exists.","fix":"Upgrade github.com/gofiber/utils to 1.2.0 or later.","what":"CVE-2025-66565 is a critical vulnerability in gofiber utils, published on 9 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-66565 and fix it if it is affected.\n\nWhat it is: CVE-2025-66565 is a critical vulnerability in gofiber utils, published on 9 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66565 exists.\n\nAffected packages and fixed versions:\n- github.com/gofiber/utils (Go): affected all versions; fixed in 1.2.0\n- github.com/gofiber/utils (Go): affected all versions; fixed in 1.2.0\n- github.com/gofiber/utils (Go): affected all versions; fixed in 1.2.0\n- github.com/gofiber/utils/v2 (Go): affected all versions; fixed in 2.0.0-rc.4\n- github.com/gofiber/utils/v2 (Go): affected all versions; fixed in 2.0.0-rc.4\n- github.com/gofiber/utils/v2 (Go): affected all versions; fixed in 2.0.0-rc.4\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-2025-66565/ (Markdown: https://insights.sbomify.com/CVE-2025-66565/index.md)","id":"CVE-2025-66565","markdown":"https://insights.sbomify.com/CVE-2025-66565/index.md","name":"CVE-2025-66565","record":{"aliases":["GHSA-m98w-cqp3-qcqr","GO-2025-4208"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go utility library","requires_auth":"none","summary":"Fiber Utils silently returns predictable UUIDs when cryptographic random generation fails, compromising security-critical operations in Fiber applications.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"utils","vendor":"gofiber"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"},{"id":"CWE-331","name":"Insufficient Entropy"},{"id":"CWE-252","name":"Unchecked Return Value"}],"description":"Fiber Utils is a collection of common functions created for Fiber. In versions 2.0.0-rc.3 and below, when the system's cryptographic random number generator (crypto/rand) fails, both functions silently fall back to returning predictable UUID values, including the zero UUID \"00000000-0000-0000-0000-000000000000\". The vulnerability occurs through two related but distinct failure paths, both ultimately caused by crypto/rand.Read() failures, compromising the security of all Fiber applications using these functions for security-critical operations. This issue is fixed in version 2.0.0-rc.4.","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":"Fiber Utils UUIDv4 and UUID Silent Fallback to Predictable Values","id":"CVE-2025-66565","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"weak_cryptography","year":"2025"},"n_packages":6,"n_references":2,"next":{"headline":"yawkat LZ4 Java has a possible information leak in Java safe decompressor","id":"CVE-2025-66566"},"packages":[{"ecosystem":"Go","fixed":["1.2.0"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/utils","purl":null,"source":"GHSA-m98w-cqp3-qcqr"},{"ecosystem":"Go","fixed":["1.2.0"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/utils","purl":"pkg:golang/github.com/gofiber/utils","source":"GHSA-m98w-cqp3-qcqr"},{"ecosystem":"Go","fixed":["1.2.0"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/utils","purl":"pkg:golang/github.com/gofiber/utils","source":"GO-2025-4208"},{"ecosystem":"Go","fixed":["2.0.0-rc.4"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/utils/v2","purl":null,"source":"GHSA-m98w-cqp3-qcqr"},{"ecosystem":"Go","fixed":["2.0.0-rc.4"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/utils/v2","purl":"pkg:golang/github.com/gofiber/utils/v2","source":"GHSA-m98w-cqp3-qcqr"},{"ecosystem":"Go","fixed":["2.0.0-rc.4"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/utils/v2","purl":"pkg:golang/github.com/gofiber/utils/v2","source":"GO-2025-4208"}],"prev":{"headline":"Sigstore Timestamp Authority allocates excessive memory during request parsing","id":"CVE-2025-66564"},"products":["utils"],"published":"2025-12-09","related":[],"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":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-12-09","vendors":["gofiber"]},"summary":"Fiber Utils silently returns predictable UUIDs when cryptographic random generation fails, compromising security-critical operations in Fiber applications.","url":"https://insights.sbomify.com/CVE-2025-66565/"}