CVE-2026-118389 Details
Description
The RubyGems package registry accepted gems whose platform, dependency names or dependency version requirements contain newline characters. Because the compact index served to clients is line-based, a user who can publish a gem to an owner's registry could forge index entries, such as packages that do not exist or additional versions of an existing gem with dependencies of their choice. Clients that resolve gems from that registry could then be led to install attacker-chosen dependencies. Gems with such metadata are now rejected.
A vulnerability exists in Gitea's RubyGems package registry feature, specifically in versions through 28.2.0. The issue arises because the registry accepts gems with newline characters in their platform, dependency names, or version requirements. This acceptance of malformed metadata can lead to a supply chain attack by poisoning the RubyGems compact index, which is served to clients and is line-based. An attacker could forge index entries, such as non-existent packages or additional versions of existing gems with chosen dependencies. When clients resolve gems from the affected registry, they could inadvertently install these attacker-controlled dependencies. The vulnerability has been patched in Gitea version 28.3.0.
Users can upgrade to Gitea version 28.3.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 15, 2026CISA-ADP
Assessed Nov 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://blog.gitea.com/release-of-28.4.0/ | Gitea Limited | Release NotesVendor |
| https://github.com/go-gitea/gitea/pull/39782 | Gitea Limited | Issue TrackingVendor |
| https://github.com/go-gitea/gitea/pull/39900 | Gitea Limited | Issue TrackingVendor |
| https://github.com/go-gitea/gitea/releases/tag/v28.3.0 | Gitea Limited | Release NotesVendor |
| https://github.com/go-gitea/gitea/security/advisories/GHSA-49c9-hm8q-6rvq | Gitea Limited | AdvisoryTechnical AnalysisVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | Gitea Limited |
Affected Products
| Product | Versions |
|---|---|
| RubyGems | <= 28.2.0 (semver) |
CPE
Remediation
| |
| Gitea | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 16, 2026 | CVE Modified | CISA-ADP |
| Nov 15, 2026 | New CVE Received | Gitea Limited |
Volerion