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
VendorProductAffected 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.
Fix within
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
Exploitation
<1% chance of attack within 30 days
Type
CWE-74Injection
Timeline
Published15 Nov 2026
Updated22 Nov 2026
First seen15 Nov 2026
Sources
CVE-2026-118389 · MITRE
Track software like this
Free during beta