---
id: CVE-2026-118386
title: Gitea Actions fork workflow trust through pull request review commit
summary: >-
  Workflows triggered by a pull request review were read from the commit named
  in the review's `commit_id`, while the fork restrictions were decided by the
  reviewed pull request, and the commit was not checked to belong to that pull
  reques…
severity: none
cwe:
  - CWE-863
vendor: Gitea
product: gitea.dev
affected:
  - gitea.dev >= 1.19.0 < 28.3.0
published: '2026-11-01'
updated: '2026-11-01'
sourceUpdated: '2026-11-01T09:47:07.487Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-118386'
references:
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466'
    label: GitHub Security Advisory GHSA-32h8-5xqg-h466
  - url: 'https://github.com/go-gitea/gitea/pull/40099'
    label: 'Fix: go-gitea/gitea pull request #40099'
  - url: 'https://github.com/go-gitea/gitea/pull/40117'
    label: 'Fix backport to release/v28: go-gitea/gitea pull request #40117'
  - url: 'https://blog.gitea.com/release-of-28.3.0/'
    label: Gitea 28.3.0 release announcement
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v28.3.0'
    label: go-gitea/gitea v28.3.0 release
tags:
  - cve.org
epss: 0.00149
epssPercentile: 0.04079
ingestedAt: '2026-11-05T18:28:50.699Z'
---

## Overview

Workflows triggered by a pull request review were read from the commit named in the review's `commit_id`, while the fork restrictions were decided by the reviewed pull request, and the commit was not checked to belong to that pull request. A user with read access to a repository could place a commit of their own in it, through a fork pull request or an AGit push, and submit a review naming that commit on a pull request whose head branch is in the same repository. On instances with a runner serving the repository, the attacker's workflow then ran without approval, received the Actions secrets of the repository and its owner, and got a `GITEA_TOKEN` with write access to the repository. Review-triggered workflows now run on the pull request head.

## Affected

- `gitea.dev >= 1.19.0 < 28.3.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
