{"id":"CVE-2026-48154","published":"2026-08-04T19:45:51Z","modified":"2026-08-05T19:48:20Z","title":"GoRest: InMemorySecret2FA race condition allows process crash via concurrent map access","vendor":"pilinux","product":"gorest","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00398,"percentile":0.3491,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://github.com/pilinux/gorest/security/advisories/GHSA-cpwg-x64r-rgwg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pilinux/gorest/pull/391","tags":["x_refsource_MISC"]},{"url":"https://github.com/pilinux/gorest/commit/117ff55fc21b47442da07c44c30b403af2da407b","tags":["x_refsource_MISC"]}],"priority":{"score":11.1,"factors":[{"name":"EPSS percentile","points":6.98},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"pilinux","affectedVersions":[{"vendor":"pilinux","product":"gorest","versions":["< 1.12.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-05T19:36:32.320558Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/pilinux/gorest","vulnerableRanges":["<1.12.2"],"patched":["1.12.2"],"from":["GHSA-cpwg-x64r-rgwg","GO-2026-5330"],"provenance":"source"}],"summary":{"text":"The GoRest starter kit (pilinux/gorest, Gin-based REST API framework) contains a race condition in its InMemorySecret2FA component, where an unsynchronized package-level map holding 2FA secrets is accessed concurrently by multiple login and 2FA handlers. An unauthenticated remote attacker over the network can repeatedly trigger concurrent access to this map, with no user interaction, causing the process to crash on demand; the attack is considered high complexity, and it results in availability impact only.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:59Z"},"euvd":{"id":"EUVD-2026-52883","exploited":false,"provenance":"source"}}