CVE-2020-14958Gogs
Medium 6.5
Follow: this CVE · Gogs · Gogs We alert you by email or Slack (account required).
- Priority
- 39
- CVSS 3.1
- 6.5
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 62
- Auth required
- Yes
- Published
- Jun 21, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-281
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
What happens
In Gogs 0.11.91, MakeEmailPrimary in models/user_mail.go lacks a "not the owner of the email" check.
What to do
- Apply the vendor's security update for Gogs.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | gogs.io/gogs |
< 0.12.0 |
0.12.0 |
go get gogs.io/gogs@v0.12.0 |
| Go | gogs.io/gogs |
< 0.12.0 |
0.12.0 |
go get gogs.io/gogs@v0.12.0 |
Per OSV / GitHub Advisories (GHSA-4c7m-vv47-7c69, GO-2022-0788). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gogs | gogs | 0.11.91 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory