Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-14958

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-14958
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:51 UTC · Revision 1

Source evidence

CVE-2020-14958

core-osv · Original source

Published 21 Jun 2020, 20:15 UTC

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

osv:CVE-2020-14958
Complete source record
{
  "id": "c238ecfadb6afecda605a76a5acdc425524b516772e0d6ca4a9896a450f7fc0c",
  "url": "https://osv.dev/vulnerability/CVE-2020-14958",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-14958",
    "summary": "In Gogs 0.11.91, MakeEmailPrimary in models/user_mail.go lacks a \"not the owner of the email\" check.",
    "evidence": "osv:CVE-2020-14958",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2020-14958",
      "aliases": [
        "CVE-2020-14958",
        "GHSA-4c7m-vv47-7c69",
        "GO-2022-0788"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gogs/gogs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c154721f4a8f3e24d2f6fb61e74b4b64529255c2"
                },
                {
                  "last_affected": "c154721f4a8f3e24d2f6fb61e74b4b64529255c2"
                },
                {
                  "fixed": "82ff0c5852f29daa5f95d965fd50665581e7ea3c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gogs:gogs:0.11.91:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.11.91"
                      },
                      {
                        "last_affected": "0.11.91"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "82ff0c5852f29daa5f95d965fd50665581e7ea3c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.11.91",
            "v0.11.91"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-14958.json"
          }
        }
      ],
      "modified": "2026-10-20T10:51:51.619024382Z",
      "provider": "osv",
      "references": [
        "https://github.com/gogs/gogs/commit/82ff0c5852f29daa5f95d965fd50665581e7ea3c",
        "https://github.com/gogs/gogs/pull/5988"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-14958",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 383030,
  "published_at": "2020-06-21T20:15:09.533+00:00"
}