{"id":"CVE-2026-118386","aliases":["CVE-2026-118386"],"related":[],"kind":"vulnerability","state":"published","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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-01T09:47:07.487Z","modified":"2026-11-06T16:17:50.893Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"type":"semver","introduced":"1.19.0","fixed":"28.3.0","status":"affected"}],"vendor":"Gitea","product":"Gitea","package":"gitea.dev","source":"cvelist"}],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea/pull/40099","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea/pull/40117","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://blog.gitea.com/release-of-28.3.0/","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v28.3.0","tags":["release-notes"],"sources":["cvelist","nvd"]}],"credits":["https://github.com/silverwind","https://github.com/bircni","https://github.com/wxiaoguang"],"assigner":"Gitea","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T15:44:31.233Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-118386","url":"https://www.cve.org/CVERecord?id=CVE-2026-118386","licence":"CVE Terms of Use","modified":"2026-11-06T15:44:56.287Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-118386","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118386","licence":"Public domain","modified":"2026-11-06T16:17:50.893Z"}],"updatedAt":"2026-11-25T22:59:48.094Z","epss":{"score":0.00314,"percentile":0.26209,"date":"2026-12-01T12:00:22.000Z"}}