{"answers":{"affected":"3 open source packages ship an affected version, including github.com/gofiber/fiber/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-25124 exists.","fix":"Upgrade github.com/gofiber/fiber/v2 to 2.52.1 or later.","what":"CVE-2024-25124 is a critical vulnerability in gofiber fiber, published on 21 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-25124 and fix it if it is affected.\n\nWhat it is: CVE-2024-25124 is a critical vulnerability in gofiber fiber, published on 21 Feb 2024. 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-2024-25124 exists.\n\nAffected packages and fixed versions:\n- github.com/gofiber/fiber/v2 (Go): affected all versions; fixed in 2.52.1\n- github.com/gofiber/fiber/v2 (Go): affected all versions; fixed in 2.52.1\n- github.com/gofiber/fiber/v2 (Go): affected all versions; fixed in 2.52.1\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-2024-25124/ (Markdown: https://insights.sbomify.com/CVE-2024-25124/index.md)","id":"CVE-2024-25124","markdown":"https://insights.sbomify.com/CVE-2024-25124/index.md","name":"CVE-2024-25124","record":{"aliases":["GHSA-fmg4-x8pw-hjhg","GO-2024-2574"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Go web framework","requires_auth":"none","summary":"Fiber's CORS middleware allows insecure wildcard origins with credentials, potentially exposing sensitive user data to unauthorized access.","user_interaction":"not_required","vuln_class":"misconfiguration"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fiber","vendor":"gofiber"}],"cvss":{"score":9.4,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-942","name":"Permissive Cross-domain Security Policy with Untrusted Domains"},{"id":"CWE-346","name":"Origin Validation Error"}],"description":"Fiber is a web framework written in go. Prior to version 2.52.1, the CORS middleware allows for insecure configurations that could potentially expose the application to multiple CORS-related vulnerabilities. Specifically, it allows setting the Access-Control-Allow-Origin header to a wildcard (`*`) while also having the Access-Control-Allow-Credentials set to true, which goes against recommended security best practices. The impact of this misconfiguration is high as it can lead to unauthorized access to sensitive user data and expose the system to various types of attacks listed in the PortSwigger article linked in the references. Version 2.52.1 contains a patch for this issue. As a workaround, users may manually validate the CORS configurations in their implementation to ensure that they do not allow a wildcard origin when credentials are enabled. The browser fetch api, as well as browsers and utilities that enforce CORS policies, are not affected by this.","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 has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials","id":"CVE-2024-25124","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"misconfiguration","year":"2024"},"n_packages":3,"n_references":8,"next":{"headline":"Absolute path traversal vulnerability in digdag server","id":"CVE-2024-25125"},"packages":[{"ecosystem":"Go","fixed":["2.52.1"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber/v2","purl":null,"source":"GHSA-fmg4-x8pw-hjhg"},{"ecosystem":"Go","fixed":["2.52.1"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber/v2","purl":"pkg:golang/github.com/gofiber/fiber/v2","source":"GHSA-fmg4-x8pw-hjhg"},{"ecosystem":"Go","fixed":["2.52.1"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber/v2","purl":"pkg:golang/github.com/gofiber/fiber/v2","source":"GO-2024-2574"}],"prev":{"headline":"Path Manipulation in file mslib/index.py in MSS","id":"CVE-2024-25123"},"products":["fiber"],"published":"2024-02-21","related":[{"cvss_score":10,"headline":"Fiber Session Middleware Token Injection Vulnerability","id":"CVE-2024-38513","kev_date_added":null,"published":"2024-07-01"},{"cvss_score":10,"headline":"CSRF Token Reuse Vulnerability in fiber","id":"CVE-2023-45128","kev_date_added":null,"published":"2023-10-16"},{"cvss_score":9.2,"headline":"Fiber insecurely fallsback in utils.UUIDv4() / utils.UUID() — predictable / zero‑UUID on crypto/rand failure","id":"CVE-2025-66630","kev_date_added":null,"published":"2026-02-09"},{"cvss_score":8.7,"headline":"Fiber Susceptible to Crash via `BodyParser` Due to Unvalidated Large Slice Index in Decoder","id":"CVE-2025-54801","kev_date_added":null,"published":"2025-08-05"},{"cvss_score":8.6,"headline":"CSRF Token Validation Vulnerability in fiber","id":"CVE-2023-45141","kev_date_added":null,"published":"2023-10-16"},{"cvss_score":7.7,"headline":"Fiber has an Arbitrary File Read in Static Middleware on Windows","id":"CVE-2026-25891","kev_date_added":null,"published":"2026-02-24"}],"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":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-26","vendors":["gofiber"]},"summary":"Fiber's CORS middleware allows insecure wildcard origins with credentials, potentially exposing sensitive user data to unauthorized access.","url":"https://insights.sbomify.com/CVE-2024-25124/"}