Vulnerability · Published Aug 4, 2026 · Assigned by GitHub_M

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

Medium 5.9

In plain English

A medium-severity race condition in gorest from pilinux. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.4%top 65.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/pilinux/gorest1.12.2GHSA-cpwg-x64r-rgwg
Gogithub.com/pilinux/gorest1.12.2GO-2026-5330

Affected products (as reported)

VendorProductVersions
pilinux gorest < 1.12.2

Weakness: CWE-362 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References