# CVE-2026-48154: GoRest: InMemorySecret2FA race condition allows process crash via concurrent map access

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-12T18:29:08.000Z
- Modified: 2026-10-23T21:10:00.157Z
- Also known as: GHSA-cpwg-x64r-rgwg, GO-2026-5330
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pilinux gorest: < 1.12.2
- github.com/pilinux/gorest (Go): before 1.12.2

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/pilinux/gorest/security/advisories/GHSA-cpwg-x64r-rgwg> (exploit, advisory, web)
- <https://github.com/pilinux/gorest/pull/391> (fix, web)
- <https://github.com/pilinux/gorest/commit/117ff55fc21b47442da07c44c30b403af2da407b>
- <https://github.com/pilinux/gorest> (package)

## Sources

- CVE List: [CVE-2026-48154](https://www.cve.org/CVERecord?id=CVE-2026-48154), CVE Terms of Use, modified 2026-08-05
- GitHub Advisory Database: [GHSA-cpwg-x64r-rgwg](https://github.com/advisories/GHSA-cpwg-x64r-rgwg), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5330](https://pkg.go.dev/vuln/GO-2026-5330), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-48154](https://nvd.nist.gov/vuln/detail/CVE-2026-48154), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-48154 · Whole record: https://cve.day/CVE-2026-48154.json · Rebuilt by cve.day 2026-11-25T22:59:31.010Z
