Loading advisory.
Loading advisory.
Gogs user can update repository content with read-only permission
The endpoint PUT /repos/:owner/:repo/contents/ does not require write permissions and allows access with read permission only via repoAssignment().
Published 2026-02-06 17:43 UTC · Modified 2026-02-19 20:41 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| gogs.io/gogs | Go | < 0.13.4 all versions | 0.13.4 | go get gogs.io/gogs@v0.13.4 |
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
Execution of git push
As a result, a token with read-only permission can be used to modify repository contents.
Possession of a valid access token
Read permission on the target repository (public repository or collaborator with read access)
The attacker accesses the target repository with a read-only token
The attacker sends a PUT /contents request to update an arbitrary file
The server creates a commit and performs a git push on behalf of the attacker
Source code tampering
Injection of backdoors
Compromise of release artifacts and distributed packages
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.003 on 2026-11-24 to 0.005 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |
| 2026-11-26 | 0.005 | 0.003 | v2026.06.15 |