{"answers":{"affected":"8 open source packages ship an affected version, including github.com/gofiber/fiber, github.com/gofiber/fiber/v2 and github.com/gofiber/fiber/v2/middleware/session. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-38513 in the wild and no public exploit code.","fix":"Upgrade github.com/gofiber/fiber to 2.52.5 or later.","what":"CVE-2024-38513 is a critical authentication bypass vulnerability in gofiber fiber, published on 1 Jul 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-38513 and fix it if it is affected.\n\nWhat it is: CVE-2024-38513 is a critical authentication bypass vulnerability in gofiber fiber, published on 1 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-38513 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/gofiber/fiber (Go): affected all versions; no fix listed\n- github.com/gofiber/fiber (Go): affected all versions; fixed in 2.52.5\n- github.com/gofiber/fiber (Go): affected all versions; fixed in 2.52.5\n- github.com/gofiber/fiber/v2 (Go): affected all versions; fixed in 2.52.5\n- github.com/gofiber/fiber/v2 (Go): affected all versions; fixed in 2.52.5\n- github.com/gofiber/fiber/v2 (Go): affected all versions; fixed in 2.52.5\n- github.com/gofiber/fiber/v2/middleware/session (Go): affected all versions; fixed in 2.52.5\n- github.com/gofiber/fiber/v2/middleware/session (Go): affected all versions; fixed in 2.52.5\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-38513/ (Markdown: https://insights.sbomify.com/CVE-2024-38513/index.md)","id":"CVE-2024-38513","markdown":"https://insights.sbomify.com/CVE-2024-38513/index.md","name":"CVE-2024-38513","record":{"aliases":["GHSA-98j2-3j3p-fw2v","GO-2024-2959"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go web framework","requires_auth":"none","summary":"Attackers can inject session IDs in GoFiber, enabling session fixation and unauthorized access if server-side validation is missing.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fiber","vendor":"gofiber"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-384","name":"Session Fixation"}],"description":"Fiber is an Express-inspired web framework written in Go A vulnerability present in versions prior to 2.52.5 is a session middleware issue in GoFiber versions 2 and above. This vulnerability allows users to supply their own session_id value, resulting in the creation of a session with that key. If a website relies on the mere presence of a session for security purposes, this can lead to significant security risks, including unauthorized access and session fixation attacks. All users utilizing GoFiber's session middleware in the affected versions are impacted. The issue has been addressed in version 2.52.5. Users are strongly encouraged to upgrade to version 2.52.5 or higher to mitigate this vulnerability. Users who are unable to upgrade immediately can apply the following workarounds to reduce the risk: Either implement additional validation to ensure session IDs are not supplied by the user and are securely generated by the server, or regularly rotate session IDs and enforce strict session expiration policies.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Fiber Session Middleware Token Injection Vulnerability","id":"CVE-2024-38513","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":8,"n_references":2,"next":{"headline":"NextChat Server-Side Request Forgery (SSRF)","id":"CVE-2024-38514"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber","purl":"pkg:golang/github.com/gofiber/fiber","source":"GO-2024-2959"},{"ecosystem":"Go","fixed":["2.52.5"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber","purl":null,"source":"GHSA-98j2-3j3p-fw2v"},{"ecosystem":"Go","fixed":["2.52.5"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber","purl":"pkg:golang/github.com/gofiber/fiber","source":"GHSA-98j2-3j3p-fw2v"},{"ecosystem":"Go","fixed":["2.52.5"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber/v2","purl":null,"source":"GHSA-98j2-3j3p-fw2v"},{"ecosystem":"Go","fixed":["2.52.5"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber/v2","purl":"pkg:golang/github.com/gofiber/fiber/v2","source":"GHSA-98j2-3j3p-fw2v"},{"ecosystem":"Go","fixed":["2.52.5"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber/v2","purl":"pkg:golang/github.com/gofiber/fiber/v2","source":"GO-2024-2959"},{"ecosystem":"Go","fixed":["2.52.5"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber/v2/middleware/session","purl":null,"source":"GHSA-98j2-3j3p-fw2v"},{"ecosystem":"Go","fixed":["2.52.5"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber/v2/middleware/session","purl":"pkg:golang/github.com/gofiber/fiber/v2/middleware/session","source":"GHSA-98j2-3j3p-fw2v"}],"prev":{"headline":"Command injection in XClarity Controller","id":"CVE-2024-38512"},"products":["fiber"],"published":"2024-07-01","related":[{"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.4,"headline":"Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials","id":"CVE-2024-25124","kev_date_added":null,"published":"2024-02-21"},{"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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["gofiber"]},"summary":"Attackers can inject session IDs in GoFiber, enabling session fixation and unauthorized access if server-side validation is missing.","url":"https://insights.sbomify.com/CVE-2024-38513/"}