s2
--:--:--UTC

Searching APEX

Starting…

  1. Searching Threats, IOCs & Threat Intelligence locally
  2. Querying external providers
  3. Asking AI Forensic Validator
  4. Creating new entry from validated hit

0s elapsed

CVE-2026-48154

📛 CVE Title

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

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.

Overview

State
PUBLISHED
Assigner (CNA)
GitHub_M
CVSS severity
MEDIUM
CVSS score
CVSS 5.9 / 10 5.9 5.9 / 10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Effective score
5.9 / 10 MEDIUM source: CNA overview
CWE(s)
CWE-362
Reserved
2026-05-20
Published
2026-08-04 19:45 UTC
Last updated
2026-08-04 19:45 UTC
Source
https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/48xxx/CVE-2026-48154.json

Affected products (1)

VendorProductVersionsPlatforms
pilinux gorest < 1.12.2 (affected)

Vendor references (3)

References embedded in the original CVE record by the assigning CNA.

Web references (0)

DuckDuckGo results ranked by threat-intel / vendor advisory domains. Generated by the 🔎 Find references (web) button above — same flow as the Remediations search.

No web references attached yet.

AI Forensic Analysis

Only Available for Registered Users. Sign in to view.

Raw JSON

The full cvelistV5 record. Download as CVE-2026-48154.json.

{
  "containers": {
    "cna": {
      "affected": [
        {
          "product": "gorest",
          "vendor": "pilinux",
          "versions": [
            {
              "status": "affected",
              "version": "< 1.12.2"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "attackComplexity": "HIGH",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 5.9,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "NONE",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-362",
              "description": "CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-04T19:45:51.909Z",
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M"
      },
      "references": [
        {
          "name": "https://github.com/pilinux/gorest/security/advisories/GHSA-cpwg-x64r-rgwg",
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://github.com/pilinux/gorest/security/advisories/GHSA-cpwg-x64r-rgwg"
        },
        {
          "name": "https://github.com/pilinux/gorest/pull/391",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/pilinux/gorest/pull/391"
        },
        {
          "name": "https://github.com/pilinux/gorest/commit/117ff55fc21b47442da07c44c30b403af2da407b",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/pilinux/gorest/commit/117ff55fc21b47442da07c44c30b403af2da407b"
        }
      ],
      "source": {
        "advisory": "GHSA-cpwg-x64r-rgwg",
        "discovery": "UNKNOWN"
      },
      "title": "GoRest: InMemorySecret2FA race condition allows process crash via concurrent map access"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "cveId": "CVE-2026-48154",
    "datePublished": "2026-08-04T19:45:51.909Z",
    "dateReserved": "2026-05-20T23:12:43.031Z",
    "dateUpdated": "2026-08-04T19:45:51.909Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}