{"answers":{"affected":"3 open source packages ship an affected version, including github.com/pilinux/gorest.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-48154 exists.","fix":"Upgrade github.com/pilinux/gorest to 1.12.2 or later.","what":"CVE-2026-48154 is a medium-severity vulnerability in pilinux gorest, published on 4 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-48154 and fix it if it is affected.\n\nWhat it is: CVE-2026-48154 is a medium-severity vulnerability in pilinux gorest, published on 4 Aug 2026. 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-2026-48154 exists.\n\nAffected packages and fixed versions:\n- github.com/pilinux/gorest (Go): affected all versions; fixed in 1.12.2\n- github.com/pilinux/gorest (Go): affected all versions; fixed in 1.12.2\n- github.com/pilinux/gorest (Go): affected all versions; fixed in 1.12.2\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-2026-48154/ (Markdown: https://insights.sbomify.com/CVE-2026-48154/index.md)","id":"CVE-2026-48154","markdown":"https://insights.sbomify.com/CVE-2026-48154/index.md","name":"CVE-2026-48154","record":{"aliases":["GHSA-cpwg-x64r-rgwg","GO-2026-5330"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go REST API starter kit","requires_auth":"none","summary":"An attacker can crash the GoRest application by triggering a race condition in the 2FA secret storage map, causing a denial of service.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"description":"GoRest is a Golang starter kit built with the Gin framework for prototyping and developing RESTful APIs. In versions prior to 1.12.2 nMemorySecret2FA contains a race condition due to an unsynchronized package-level map used to store 2FA secrets. Multiple HTTP handlers in handler/login.go and handler/twoFA.go read from and write to this map concurrently, and because Go's runtime treats unsynchronized concurrent map access as an unrecoverable fatal error, an attacker can repeatedly trigger this condition to crash the process on demand. This results in high, repeatable availability impact with no confidentiality or integrity consequences. This issue has been fixed in version 1.12.2.","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":"GoRest: InMemorySecret2FA race condition allows process crash via concurrent map access","id":"CVE-2026-48154","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"race_condition","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"pypdf: Possible large memory usage for large offsets for layout mode text","id":"CVE-2026-48155"},"packages":[{"ecosystem":"Go","fixed":["1.12.2"],"introduced":["0"],"last_affected":[],"package":"github.com/pilinux/gorest","purl":null,"source":"GHSA-cpwg-x64r-rgwg"},{"ecosystem":"Go","fixed":["1.12.2"],"introduced":["0"],"last_affected":[],"package":"github.com/pilinux/gorest","purl":"pkg:golang/github.com/pilinux/gorest","source":"GHSA-cpwg-x64r-rgwg"},{"ecosystem":"Go","fixed":["1.12.2"],"introduced":["0"],"last_affected":[],"package":"github.com/pilinux/gorest","purl":"pkg:golang/github.com/pilinux/gorest","source":"GO-2026-5330"}],"prev":{"headline":"Budibase: SSRF via OAuth2 token endpoint URL reaches internal hosts and cloud metadata","id":"CVE-2026-48153"},"products":["gorest"],"published":"2026-08-04","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-05","vendors":["pilinux"]},"summary":"An attacker can crash the GoRest application by triggering a race condition in the 2FA secret storage map, causing a denial of service.","url":"https://insights.sbomify.com/CVE-2026-48154/"}