CVE-2026-118389 Gitea RubyGems compact index injection through package metadata
gitea gitea: no CVSS score yet.
On this page
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.
- CWE
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
- OWASP Top 10
- A05:2025 Injection
- Published
- Modified
- Assigned by
- Gitea (CNA)
- NVD analysis
- Deferred: the NVD does not plan to analyze it
- Record from
- the NVD, synced
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-118389 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-118389?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-118389?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-118389 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Gitea | before 28.3.0 |
Attack patterns (CAPEC)
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).
History
- The NVD deferred its analysis
Changes since this site first stored the record. The same for every record: /api/public/changes.