{"id":"GHSA-4c7m-vv47-7c69","summary":"Insecure Permissions in Gogs","details":"In Gogs 0.11.91, MakeEmailPrimary in models/user_mail.go lacks a \"not the owner of the email\" check.","aliases":["CVE-2020-14958","GO-2022-0788"],"modified":"2024-08-21T15:57:35.326737Z","published":"2021-05-18T20:33:05Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-05-12T14:55:34Z","nvd_published_at":null,"cwe_ids":["CWE-281"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-14958"},{"type":"WEB","url":"https://github.com/gogs/gogs/pull/5988"},{"type":"WEB","url":"https://github.com/gogs/gogs/commit/82ff0c5852f29daa5f95d965fd50665581e7ea3c"}],"affected":[{"package":{"name":"gogs.io/gogs","ecosystem":"Go","purl":"pkg:golang/gogs.io/gogs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-4c7m-vv47-7c69/GHSA-4c7m-vv47-7c69.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}