Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gitea.dev
  4. ›
  5. CVE-2026-58416

CVE-2026-58416: Gitea: Fork-PR Actions task can read a third private repository via the collaborative-owner branch (missing fork-PR guard)

July 21, 2026

GetActionsUserRepoPermission (models/perm/access/repo_permission.go) decides whether an Actions task token may access a target repo. Its cross-repo branches each enforce a fork-PR discriminator — except the collaborative-owner branch, which is missing the !task.IsForkPullRequest guard that its sibling has. As a result, when a private repo B lists owner A as a collaborative owner, an attacker-controlled fork pull-request workflow whose base repo is owned by A is granted code-read on B — i.e. the fork’s YAML can clone a third private repository it has no rights to.

References

  • github.com/advisories/GHSA-fj8v-hjwv-qm88
  • github.com/go-gitea/gitea/commit/1d43b736b5a16c5f80cfdcd9a9448a9c983ddaa0
  • github.com/go-gitea/gitea/pull/38214
  • github.com/go-gitea/gitea/releases/tag/v1.27.0
  • github.com/go-gitea/gitea/security/advisories/GHSA-fj8v-hjwv-qm88
  • nvd.nist.gov/vuln/detail/CVE-2026-58416

Code Behaviors & Features

Detect and mitigate CVE-2026-58416 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.27.0

Fixed versions

  • 1.27.0

Solution

Upgrade to version 1.27.0 or above.

Impact 6.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-280: Improper Handling of Insufficient Permissions or Privileges
  • CWE-863: Incorrect Authorization

Source file

go/gitea.dev/CVE-2026-58416.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:44 +0000.