PatchSiren cyber security CVE debrief
CVE-2026-118386 Gitea CVE debrief
A vulnerability in Gitea allows unauthorized access to Actions secrets and repository tokens through a specifically crafted pull request review. This issue arises from the discrepancy between the commit checked for workflow triggers and the commit associated with fork restrictions. An attacker with read access to a repository can exploit this by placing a malicious commit via a fork pull request or AGit push and then submitting a review that names this commit on a pull request within the same repository. If the instance has a runner serving the repository, the attacker's workflow can run without approval, gaining access to the repository's Actions secrets and its owner's GITEA_TOKEN, which has write access to the repository. To address this, review-triggered workflows now run on the pull request head.
- Vendor
- Gitea
- Product
- Unknown
- CVSS
- Unknown
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-01
- Original CVE updated
- 2026-11-01
- Advisory published
- 2026-11-01
- Advisory updated
- 2026-11-01
Who should care
Gitea instance administrators and users with read access to repositories should assess their exposure and take necessary actions to prevent exploitation. This includes verifying instance updates, restricting write access, and monitoring workflow activity. Security teams and vulnerability management teams should also review the vulnerability and its potential impact on their systems.
Why it matters
CVE-2026-118386 allows attackers to bypass approval for workflow runs, potentially leading to unauthorized access to sensitive information and elevated privileges within Gitea repositories.
- Potential unauthorized access to Actions secrets
- Possible elevation of privileges through GITEA_TOKEN
- Risk of malicious workflow execution without approval
- Need for verification of instance updates and monitoring of workflow activity
Technical summary
The vulnerability arises from a discrepancy in how commits are checked for workflow triggers and fork restrictions in Gitea. An attacker can exploit this by submitting a crafted pull request review that names a malicious commit, potentially gaining access to Actions secrets and repository tokens if a runner is serving the repository. This issue allows attackers to bypass approval for workflow runs, potentially leading to unauthorized access to sensitive information and elevated privileges within Gitea repositories.
Defensive priority
Defenders should prioritize verifying their Gitea instances are updated to a version that fixes this vulnerability, restrict write access to repositories, and closely monitor workflow runs for suspicious activity.
Recommended defensive actions
- Verify Gitea instances are updated to the latest version
- Restrict write access to repositories
- Monitor workflow runs for suspicious activity
- Review compensating controls for exposed systems
- Check relevant monitoring, detection, and logs for exposed assets
- Track exceptions and retest remediated assets
- Confirm whether affected product deployments exist in managed environments
Evidence notes
The CVE record and NVD entry provide details on the vulnerability, including its description and references to patches and advisories. Evidence is limited to public sources and may not be comprehensive. Defenders should verify instance updates and review workflow activity for potential exposure. Additional details can be found in the official CVE Program record and NIST NVD detail page.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-118386 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-118386
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-118386 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-118386
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://blog.gitea.com/release-of-28.3.0/
88ee5874-cf24-4952-aea0-31affedb7ff2
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/pull/40099
88ee5874-cf24-4952-aea0-31affedb7ff2
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/pull/40117
88ee5874-cf24-4952-aea0-31affedb7ff2
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/releases/tag/v28.3.0
88ee5874-cf24-4952-aea0-31affedb7ff2
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466
88ee5874-cf24-4952-aea0-31affedb7ff2
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.