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

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-11-01T09:47:07.487Z
- Modified: 2026-11-06T16:17:50.893Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Gitea

## 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.

(As written by CVE List.)

## Affected

- gitea.dev: from 1.19.0 before 28.3.0

## References

- <https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466> (vendor-advisory)
- <https://github.com/go-gitea/gitea/pull/40099> (patch)
- <https://github.com/go-gitea/gitea/pull/40117> (patch)
- <https://blog.gitea.com/release-of-28.3.0/> (release-notes)
- <https://github.com/go-gitea/gitea/releases/tag/v28.3.0> (release-notes)

## Sources

- CVE List: [CVE-2026-118386](https://www.cve.org/CVERecord?id=CVE-2026-118386), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-118386](https://nvd.nist.gov/vuln/detail/CVE-2026-118386), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-118386 · Whole record: https://cve.day/CVE-2026-118386.json · Rebuilt by cve.day 2026-11-25T22:59:48.094Z
