PatchSiren cyber security CVE debrief
CVE-2026-118389 Gitea CVE debrief
Gitea RubyGems compact index injection through package metadata allows an attacker to forge index entries, potentially leading to the installation of attacker-chosen dependencies. This issue affects Gitea versions less than 28.3.0. The vulnerability arises from the RubyGems package registry accepting gems with newline characters in platform, dependency names, or dependency version requirements, enabling an attacker to manipulate index entries. Defenders should assess exposure and verify Gitea versions, prioritizing updates to version 28.3.0 or later.
- Vendor
- Gitea
- Product
- Unknown
- CVSS
- Unknown
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-15
- Original CVE updated
- 2026-11-16
- Advisory published
- 2026-11-15
- Advisory updated
- 2026-11-16
Who should care
Defenders responsible for Gitea deployments, especially those hosting package registries, should assess exposure and verify their versions. Additionally, developers and administrators of Gitea instances should prioritize updating to version 28.3.0 or later.
Why it matters
CVE-2026-118389 allows attackers to forge index entries in Gitea RubyGems compact index through package metadata, potentially leading to malicious dependency installations. Defenders should prioritize verifying Gitea deployments and updating to version 28.3.0 or later.
- Dependency injection and potential for malicious package installations.
- Exposure of Gitea deployments to potential attacks through forged index entries.
- Need for verification of Gitea versions and configurations to prevent exploitation.
- Potential disruption of services due to unusual dependency installations.
Technical summary
The RubyGems package registry accepted gems with newline characters in platform, dependency names, or dependency version requirements. This allowed a user to forge index entries, potentially leading to the installation of attacker-chosen dependencies. Gems with such metadata are now rejected. The issue affects Gitea versions less than 28.3.0, and defenders should prioritize verifying Gitea deployments and updating to version 28.3.0 or later. The vulnerability enables attackers to manipulate index entries, potentially leading to malicious dependency installations.
Defensive priority
Defenders should prioritize verifying Gitea deployments, especially those hosting package registries, and ensure they are running version 28.3.0 or later. Additionally, defenders should monitor for unusual dependency installations.
Recommended defensive actions
- Verify Gitea deployments to ensure they are running version 28.3.0 or later.
- Monitor for unusual dependency installations in Gitea-hosted package registries.
- Review and update Gitea configurations to prevent exploitation.
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
Evidence notes
The CVE record and source item provide details on the vulnerability, but specific exploitation instances or victim information are not mentioned. The vendor, Gitea, has released patches and advisories.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-118389 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-118389
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-118389 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-118389
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Gitea RubyGems compact index injection through package metadata
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/118xxx/CVE-2026-118389.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/security/advisories/GHSA-49c9-hm8q-6rvq
Supplemental source - vendor-advisory
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/pull/39782
Supplemental source - patch
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/pull/39900
Supplemental source - patch
-
Source reference
Unverified legacy reference
URL: https://blog.gitea.com/release-of-28.4.0/
Supplemental source - release-notes
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/releases/tag/v28.3.0
Supplemental source - release-notes
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.