# Potential Race Condition - ID: go-race-condition - Severity: MEDIUM - CWE: Race Condition (CWE-362) - Languages: Go ## Description Shared data accessed from goroutines without synchronization. ## Detection Message Shared data accessed without proper synchronization ## Remediation Protect shared data with sync.Mutex or use sync.Map for concurrent map access. ```go var mu sync.Mutex var counter int func increment() { mu.Lock() defer mu.Unlock() counter++ } ``` Learn more: https://shoulder.dev/learn/go/cwe-362/race-condition ## Documentation [object Object] ## Related Rules - **Concurrent Slice Access** [HIGH]: - **Direct Map Access on Thread-Safe Struct** [HIGH]: - **WaitGroup Misuse** [HIGH]: - **Race Condition in Concurrent Operations** [HIGH]: - **Potential Race Condition** [MEDIUM]: