Security mailing lists by PureSourceCode

CVE-2026-23632

MEDIUM 6.5CVSS 3.1

Gogs user can update repository content with read-only permission

Gogs is an open source self-hosted Git service. In version 0.13.3 and prior, the endpoint "PUT /repos/:owner/:repo/contents/*" does not require write permissions and allows access with read permission only via repoAssignment(). After passing the permission check, PutContents() invokes UpdateRepoFile(), which results in commit creation and the execution of git push. As a result, a token with read-only permission can be used to modify repository contents. This issue has been patched in versions 0.13.4 and 0.14.0+dev.

Published
6 Feb 2026
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-862CWE-863
Also known as
GHSA-5qhx-gwfj-6jqrGO-2026-4450
Sources
NVDJSONOSV GHSA-5qhx-gwfj-6jqrJSONOSV GO-2026-4450JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD gogs gogs
cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
< 0.13.4 0.13.4
OSV Go gogs.io/gogs < 0.13.4 0.13.4
OSV Go gogs.io/gogs all versions

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 6 Feb 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Feb 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Feb 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.