CVE-2026-48154
MEDIUM 5.9CVSS 3.1gorest InMemorySecret2FA race condition allows process crash via concurrent map access (CWE-362)
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.
- Published
- 4 Aug 2026
- Last modified
- 23 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-362
- Also known as
- GHSA-cpwg-x64r-rgwgGO-2026-5330
- Sources
- NVDJSONOSV GHSA-cpwg-x64r-rgwgJSONOSV GO-2026-5330JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/pilinux/gorest | < 1.12.2 | 1.12.2 |
References
- https://github.com/pilinux/gorest/commit/117ff55fc21b47442da07c44c30b403af2da407b
- https://github.com/pilinux/gorest/pull/391 · WEB, FIX
- https://github.com/pilinux/gorest/security/advisories/GHSA-cpwg-x64r-rgwg · WEB, ADVISORY
- https://github.com/pilinux/gorest · PACKAGE
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 4 Aug 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 12 Jun 2026)