# CVE-2020-14958: Insecure Permissions in Gogs

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.93%, higher than 61% of CVEs (2026-12-01)
- Published: 2020-06-21T19:57:21.000Z
- Modified: 2026-06-17T02:55:50.137Z
- Also known as: GHSA-4c7m-vv47-7c69, GO-2022-0788
- Weaknesses: CWE-281
- Assigned by: mitre

## Description

In Gogs 0.11.91, MakeEmailPrimary in models/user_mail.go lacks a "not the owner of the email" check.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gogs.io/gogs (Go): before 0.12.0
- gogs gogs: 0.11.91

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/gogs/gogs/commit/82ff0c5852f29daa5f95d965fd50665581e7ea3c> (patch, third-party-advisory, web)
- <https://github.com/gogs/gogs/pull/5988> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-14958> (advisory)
- <https://github.com/advisories/GHSA-4c7m-vv47-7c69> (advisory)

## Sources

- CVE List: [CVE-2020-14958](https://www.cve.org/CVERecord?id=CVE-2020-14958), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-4c7m-vv47-7c69](https://github.com/advisories/GHSA-4c7m-vv47-7c69), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0788](https://pkg.go.dev/vuln/GO-2022-0788), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2020-14958](https://nvd.nist.gov/vuln/detail/CVE-2020-14958), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-14958 · Whole record: https://cve.day/CVE-2020-14958.json · Rebuilt by cve.day 2026-11-25T22:57:53.056Z
