Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gogs.io/gogs
  4. ›
  5. CVE-2020-14958

CVE-2020-14958: Improper Preservation of Permissions

May 18, 2021

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

References

  • github.com/advisories/GHSA-4c7m-vv47-7c69
  • github.com/gogs/gogs/commit/82ff0c5852f29daa5f95d965fd50665581e7ea3c
  • github.com/gogs/gogs/pull/5988
  • nvd.nist.gov/vuln/detail/CVE-2020-14958

Code Behaviors & Features

Detect and mitigate CVE-2020-14958 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.12.0

Fixed versions

  • 0.12.0

Solution

Upgrade to version 0.12.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-281: Improper Preservation of Permissions

Source file

go/gogs.io/gogs/CVE-2020-14958.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:50 +0000.