CVE-2026-118389
8.8high
Gitea RubyGems compact index injection through package metadata
- Severity
- 8.8high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.44% (higher than 40% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gitea.dev | before 28.3.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-118389 changed 2026-11-16 | CVE Terms of Use |
| NVD | CVE-2026-118389 changed 2026-11-16 | Public domain |