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

Status: published. Published: 2026-11-01. Updated: 2026-11-06.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: Gitea) — https://github.com/go-gitea/gitea/pull/40099
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: Gitea) — https://github.com/go-gitea/gitea/pull/40117
- fix: gitea.dev (go): GitHub reports patched versions 28.3.0. Check the advisory for the affected release branch. (source: GitHub GHSA-32h8-5xqg-h466) — https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466

## Affected products and versions

- Gitea / Gitea (gitea.dev): ≥ 1.19.0; < 28.3.0 (affected, semver). Source: CNA: Gitea
-  / gitea.dev (gitea.dev): >= 1.19.0, <= 28.2.0 (affected, GitHub advisory range). Source: GitHub GHSA-32h8-5xqg-h466

## Severity and prioritization

- CVSS 3.1: 6.5 (medium); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N; source: ADP: CISA-ADP

- CISA KEV: No listing in collected sources

- EPSS: 0.15% as of 2026-11-06; percentile 4.08%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-863

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466 (CNA: Gitea; vendor-advisory)

- https://github.com/go-gitea/gitea/pull/40099 (CNA: Gitea; patch)

- https://github.com/go-gitea/gitea/pull/40117 (CNA: Gitea; patch)

- https://blog.gitea.com/release-of-28.3.0/ (CNA: Gitea; release-notes)

- https://github.com/go-gitea/gitea/releases/tag/v28.3.0 (CNA: Gitea; release-notes)

- https://blog.gitea.com/release-of-28.3.0/ (88ee5874-cf24-4952-aea0-31affedb7ff2)

- https://github.com/go-gitea/gitea/pull/40099 (88ee5874-cf24-4952-aea0-31affedb7ff2)

- https://github.com/go-gitea/gitea/pull/40117 (88ee5874-cf24-4952-aea0-31affedb7ff2)

- https://github.com/go-gitea/gitea/releases/tag/v28.3.0 (88ee5874-cf24-4952-aea0-31affedb7ff2)

- https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466 (88ee5874-cf24-4952-aea0-31affedb7ff2)

- https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466 (GitHub Security Advisories; advisory)

## Provenance

- CNA: Gitea: https://www.cve.org/CVERecord?id=CVE-2026-118386; retrieved 2026-11-06; source updated 2026-11-06

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-118386; retrieved 2026-11-02; source updated 2026-11-01

- GitHub Security Advisories: https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466; retrieved 2026-11-02; source updated 2026-11-01

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-118386; retrieved 2026-11-06; source updated Not reported

Revision: 3eb77b4e4ef505e75a078ae88ee08d4c7d072dcb964917805baf4e67cfb25c3b

Canonical: https://y2.dev/cve/CVE-2026-118386

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.