SecurityContext

CVE-2026-70406: Gitea - Broken Access Control

  • Cve: CVE-2026-70406
  • Name: Gitea - Broken Access Control
  • Description: Gitea's shared comparison helper omits the token repository-access check used when updating pull requests. A public-only token with read:repository scope can route a comparison or pull request creation through a public base repository and retrieve commit history and diffs from a private head repository accessible to the token owner. This bypasses the token's public-only restriction; it does not remove the account's underlying repository permission checks.
  • Impact: Attackers can access commit history and diffs of private repositories, potentially exposing sensitive code and information.
  • Remediation: Update to the latest version where token repository-access checks are enforced.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: information_disclosure
  • Requirement type: logged_in
  • Requirements: Attacker needs a public-only token with read:repository scope
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00341
  • Epss percentile: 0.27957
  • Assignee: 88ee5874-cf24-4952-aea0-31affedb7ff2
  • Published at: 2026-10-14T15:17:22Z
  • Age in days: 41
  • Modified at: 2026-10-14T16:17:52Z
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-70406
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-863Incorrect Authorization

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://blog.gitea.com/release-of-1.27.3/
https://github.com/go-gitea/gitea/pull/39006
https://github.com/go-gitea/gitea/pull/39013
https://github.com/go-gitea/gitea/releases/tag/v1.27.3
https://github.com/go-gitea/gitea/security/advisories/GHSA-m78w-jjjx-gp8r

Products

ProductAffectedPlatform boundSourcesUrl
gitea:gitea<= 1.27.2nocna_alias/v1/products/gitea/gitea

Projects

RepositoryLink kindsIndexedUrl
go-gitea/giteapull, releases, security_advisoryyes/v1/repositories/go-gitea/gitea

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 33493
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports