Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/pilinux/gorest
  4. ›
  5. CVE-2026-48154

CVE-2026-48154: gorest InMemorySecret2FA race condition allows process crash via concurrent map access (CWE-362)

June 12, 2026

The InMemorySecret2FA in database/model/twoFA.go was defined as a package-level map[uint64]Secret2FA — a bare Go map with no synchronization primitive. Multiple HTTP handlers in handler/login.go and handler/twoFA.go read from and wrote to this map concurrently. Go’s runtime detects unsynchronized concurrent map access and throws an unrecoverable fatal error, which crashes the entire process.

This is a CWE-362 race condition: the shared resource (the map) is accessed concurrently without proper synchronization, and the failure mode is a hard process crash (denial of service).

References

  • github.com/advisories/GHSA-cpwg-x64r-rgwg
  • github.com/pilinux/gorest/pull/391
  • github.com/pilinux/gorest/security/advisories/GHSA-cpwg-x64r-rgwg
  • nvd.nist.gov/vuln/detail/CVE-2026-48154

Code Behaviors & Features

Detect and mitigate CVE-2026-48154 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.12.2

Fixed versions

  • 1.12.2

Solution

Upgrade to version 1.12.2 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

go/github.com/pilinux/gorest/CVE-2026-48154.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:35 +0000.