{"id":"CVE-2026-48154","title":"GoRest is a Golang starter kit built with the Gin framework for prototyping and developing RESTful APIs","summary":"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 …","severity":"medium","cvss":5.9,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-362"],"vendor":"pilinux","product":"github.com/pilinux/gorest","affected":["github.com/pilinux/gorest <= 1.12.1"],"patched":["github.com/pilinux/gorest 1.12.2"],"published":"2026-08-04","updated":"2026-09-10","sourceUpdated":"2026-09-10T20:37:00.427","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-48154","references":[{"url":"https://github.com/pilinux/gorest/commit/117ff55fc21b47442da07c44c30b403af2da407b","label":"security-advisories@github.com"},{"url":"https://github.com/pilinux/gorest/pull/391","label":"security-advisories@github.com"},{"url":"https://github.com/pilinux/gorest/security/advisories/GHSA-cpwg-x64r-rgwg","label":"security-advisories@github.com"},{"url":"https://github.com/pilinux/gorest/security/advisories/GHSA-cpwg-x64r-rgwg","label":"134c704f-9b21-4f2e-91b3-4a467353bcc0"},{"url":"https://github.com/advisories/GHSA-cpwg-x64r-rgwg"}],"tags":["nvd","ghsa","go"],"epss":0.00299,"epssPercentile":0.22812,"aliases":["GHSA-cpwg-x64r-rgwg"],"ecosystem":"go","ingestedAt":"2026-07-07T15:41:59.227Z","slug":"CVE-2026-48154","body":"## Overview\n\nGoRest 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Package advisory (CVE-2026-48154)\n\nAffected packages:\n\n- `github.com/pilinux/gorest <= 1.12.1`\n\nPatched in:\n\n- `github.com/pilinux/gorest 1.12.2`\n\nSource: https://github.com/advisories/GHSA-cpwg-x64r-rgwg","depth":"sunlit","depthScore":33,"depthScoreParts":{"impact":32.5,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}