Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/pilinux/gorest/commit/117ff55fc21b47442da07c44c30b403af2da407
- https://github.com/pilinux/gorest/pull/391
- https://github.com/pilinux/gorest/security/advisories/GHSA-cpwg-x64r-rgwg
- https://github.com/pilinux/gorest/security/advisories/GHSA-cpwg-x64r-rgwg
FAQ
What is CVE-2026-48154?
CVE-2026-48154 is a vulnerability with a CVSS score of 5.9 (MEDIUM). 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...
How severe is CVE-2026-48154?
CVE-2026-48154 has been rated MEDIUM with a CVSS base score of 5.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-48154?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.