GoRest: InMemorySecret2FA race condition allows process crash via concurrent map access
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
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 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pilinux | gorest | before 1.12.2 | 1.12.2 | Patch available | CNA |
| — | github.com/pilinux/gorest (Go) | before 1.12.2 | 1.12.2 | Patch available | GHSA-cpwg-x64r-rgwg |
- gorest Vendorpilinux Affected before 1.12.2 Fixed in 1.12.2 Patch available CNA
- github.com/pilinux/gorest (Go) Vendor— Affected before 1.12.2 Fixed in 1.12.2 Patch available GHSA-cpwg-x64r-rgwg
Remediation
- Fix · CNA gorest (pilinux) Fixed in 1.12.2
- Fix · GHSA-cpwg-x64r-rgwg github.com/pilinux/gorest (Go) Fixed in 1.12.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-48154
- 2026-10-03 Alias added: GHSA-cpwg-x64r-rgwg
References
Sources
- CVE-2026-48154 · CVE Program
- CVE-2026-48154 · NVD
- FIRST EPSS
- GHSA-cpwg-x64r-rgwg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences