CVE-2020-14958: Insecure Permissions in Gogs
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.37017%
CWE
Published
5/18/2021
Updated
1/9/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
gogs.io/gogs | go | < 0.12.0 | 0.12.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows the function signature
changed from MakeEmailPrimary()
to MakeEmailPrimary()
, with added UID validation
. Before patch, there was no check that email.UID
matches the requesting user's ID, enabling unauthorized primary email changes. This matches CWE-281
's improper permission preservation description.