StraitOfVuln
Latest / CVE-2026-118386

CVE-2026-118386

MediumCVSS 6.5 (v3.1)Deferred
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-118386
Published / updated
01 Nov 2026, 10:18 UTC · last modified 06 Nov 2026, 16:17 UTC
Severity
MEDIUM
CVSS score
6.5 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N · Attack vector: Network
Affected vendor
Gitea
Affected products
Gitea
Affected versions
Gitea: 1.19.0 to before 28.3.0
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
Gitea 28.3.0
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.31% probability of exploitation in the next 30 days · 26% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
88ee5874-cf24-4952-aea0-31affedb7ff2