Advisory

GHSA-76wm-422q-92mq

Also known as: CVE-2019-8324

Summary

Code injection in RubyGems

Details

An issue was discovered in RubyGems 2.6 and later through 3.0.2. A crafted gem with a multi-line name is not handled correctly. Therefore, an attacker could inject arbitrary code to the stub line of gemspec, which is eval-ed by code in ensure_loadable_spec during the preinstall check.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2019-06-20 16:06 UTC
Modified
2024-02-16 08:05 UTC

Affected packages and fixes

rubygems-update

RubyGems · All systems

Affected

  • introduced 2.6.0, fixed 2.7.9 (ecosystem)

Fixed versions

2.7.9

Fix

The export has no generic command for this ecosystem.

rubygems-update

RubyGems · All systems

Affected

  • introduced 3.0.0, fixed 3.0.2 (ecosystem)

Fixed versions

3.0.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences