GoRest: InMemorySecret2FA race condition allows process crash via concurrent map access
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| pilinux | gorest | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pilinux | Gorest |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-cpwg-x64r-rgwg | gorest InMemorySecret2FA race condition allows process crash via concurrent map access (CWE-362) |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.398% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Pilinux
Pilinux gorest |
|
| Vendors & Products |
Pilinux
Pilinux gorest |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | GoRest: InMemorySecret2FA race condition allows process crash via concurrent map access | |
| Weaknesses | CWE-362 | |
| References |
| |
| Metrics |
cvssV3_1
|