Read the docs
TI-2026-35590 Aliases CVE-2026-48154GHSA-cpwg-x64r-rgwg

GoRest: InMemorySecret2FA race condition allows process crash via concurrent map access

Priority MEDIUM 60CWE-362Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00398 34th percentileScored 2026-11-07
Fix Fixed gorest (pilinux): 1.12.2github.com/pilinux/gorest (Go): 1.12.2

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

VendorProductAffected versionsFixed inStatusSource
pilinuxgorestbefore 1.12.21.12.2Patch availableCNA
—github.com/pilinux/gorest (Go)before 1.12.21.12.2Patch availableGHSA-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

  1. 2026-10-02 Threatist record created from CVE-2026-48154
  2. 2026-10-03 Alias added: GHSA-cpwg-x64r-rgwg

References

Sources