{
  "schema_version": "1.4.0",
  "id": "GHSA-4c7m-vv47-7c69",
  "modified": "2021-05-12T14:55:34Z",
  "published": "2021-05-18T20:33:05Z",
  "aliases": [
    "CVE-2020-14958"
  ],
  "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.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Go",
        "name": "gogs.io/gogs"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.12.0"
            }
          ]
        }
      ]
    }
  ],
  "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"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-281"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-05-12T14:55:34Z",
    "nvd_published_at": null
  }
}