Skip to content
Threat Feed
high advisory

RubyGems package registry index injection (CVE-2026-118389)

The RubyGems package registry in Gitea versions prior to 28.3.0 allowed the injection of newline characters into gem metadata, enabling authenticated publishers to forge index entries and trick downstream clients into installing attacker-controlled dependencies.

CVE search metadata

CVE search record: CVE-2026-118389. Severity: high. CVSS: 8.8. EPSS: 0.17%. KEV: no. Product: Gitea. Brief: RubyGems package registry index injection (CVE-2026-118389). Brief link: https://feed.craftedsignal.io/briefs/2026-11-rubygems-registry-injection-cve-2026-118389/

Triage facts

Revision 1
Applicability
Gitea
Evidence
Unknown
Severity
High
Sources
2 public sources
Freshness
Revision 1Nov 16, 23:56 UTC
Vulnerabilities
1 CVE
Source quality
ALikely

Overview

The RubyGems package registry in Gitea incorrectly permitted newline characters within gem metadata fields including platform, dependency names, and version requirements. Because the compact index format used by clients is line-based, an authenticated user capable of publishing a gem to a registry could inject malicious lines into the index.

Attack Chain

An authenticated user with package publishing permissions can manipulate the package index by submitting gem metadata containing newline characters. This action results in forged index entries, which may reference non-existent packages or malicious versions of existing gems. Downstream clients resolving gems from the affected registry are then led to install these attacker-chosen dependencies.

Impact

Successful exploitation allows an authenticated user to perform supply chain attacks by forcing the installation of arbitrary or malicious dependencies on client systems that rely on the compromised Gitea registry.

Recommendation

Verify the current version of Gitea in use. While Gitea versions prior to 28.3.0 are identified as affected, the available evidence does not explicitly confirm a remediated version or release. Organizations should monitor for updates and restrict package publishing permissions to trusted users until further guidance is provided.

Threat Hunt

Identify suspicious gem metadata by searching package registry logs or database entries for newline characters (\n, \r) within the 'platform', 'dependency_names', or 'dependency_version_requirements' fields.

T1195.002 high high confidence hunt now

Data: Gem metadata registry logs, Package database records