Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.8
CVE-2026-118389: Gitea allows fake gem listings via malformed metadata
CVE-2026-118389 · published 6 days ago
Summary
Gitea's RubyGems package registry could accept gem files that contain newline characters in their platform or dependency information. This lets someone who can upload a gem create false entries in the package index, making clients download malicious or unintended code. The issue has been fixed by rejecting gems with such metadata, but you should ensure your Gitea instance is updated to the latest version.
What to do
- Update gitea gitea to version 28.3.0 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| gitea | gitea | < 28.3.0 |
Original advisory text
Gitea RubyGems compact index injection through package metadata
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.
References
- https://github.com/go-gitea/gitea/pull/39782 Patch
- https://github.com/go-gitea/gitea/pull/39900 Patch
- https://blog.gitea.com/release-of-28.4.0/ Vendor Advisory
- https://github.com/go-gitea/gitea/releases/tag/v28.3.0 Vendor Advisory
- https://github.com/go-gitea/gitea/security/advisories/GHSA-49c9-hm8q-6rvq Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-1183... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-118389 Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Severity
8.8
High
Type
CWE-74Injection
Timeline
Published15 Nov 2026
Updated22 Nov 2026
First seen15 Nov 2026
Sources
CVE-2026-118389 · NVD
CVE-2026-118389 · MITRE
CVE-2026-118389 · OSV
GHSA-49c9-hm8q-6rvq · GHSA
Track software like this
Free during beta