CVE-2026-118389
published high CVSS 3.1 · 8.8Gitea RubyGems compact index injection through package metadata
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gitea | — | gitea.devGitea · 0 to < 28.3.0 · Other versions: unaffected | Affected | Not stated | Gitea |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gitea | Gitea | 0 to < 28.3.0 (affected · semver)Default: unaffected | Gitea · cna |
Weaknesses
1- CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
5- Gitea 28.4.0 release announcement https://blog.gitea.com/release-of-28.4.0/
- Fix: go-gitea/gitea pull request #39782 https://github.com/go-gitea/gitea/pull/39782
- Fix backport to release/v28: go-gitea/gitea pull request #39900 https://github.com/go-gitea/gitea/pull/39900
- go-gitea/gitea v28.3.0 release https://github.com/go-gitea/gitea/releases/tag/v28.3.0
- GitHub Security Advisory GHSA-49c9-hm8q-6rvq https://github.com/go-gitea/gitea/security/advisories/GHSA-49c9-hm8q-6rvq
Provider assertions
2Gitea · cna
Gitea RubyGems compact index injection through package metadata
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f40320cad03ca03cc4b12b6e07b06945d40e62e11d00c454ceee93b7849e520b
- Ingested
- 16 Nov 2026, 22:49:57 UTC
- Source record
- Official CVE record