Insecure Permissions Affecting gogs.io/gogs/models package, versions <0.12.0


0.0
medium

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    EPSS 0.05% (21st percentile)
Expand this section
NVD
6.5 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GOGSIOGOGSMODELS-1083962
  • published 22 Jun 2020
  • disclosed 22 Jun 2020
  • credit Unknown

How to fix?

Upgrade gogs.io/gogs/models to version 0.12.0 or higher.

Overview

gogs.io/gogs/models is a simple, stable and extensible self-hosted Git service

Affected versions of this package are vulnerable to Insecure Permissions. MakeEmailPrimary in models/user_mail.go lacks a "not the owner of the email" check.