GHSA-76wm-422q-92mq

Source
https://github.com/advisories/GHSA-76wm-422q-92mq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/06/GHSA-76wm-422q-92mq/GHSA-76wm-422q-92mq.json
Aliases
Published
2019-06-20T16:06:11Z
Modified
2024-02-16T08:05:58.997983Z
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 ensureloadablespec during the preinstall check.

References

Affected packages

RubyGems / rubygems-update

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.0
Fixed
2.7.9

Affected versions

2.*

2.6.0
2.6.1
2.6.2
2.6.3
2.6.4
2.6.5
2.6.6
2.6.7
2.6.8
2.6.9
2.6.10
2.6.11
2.6.12
2.6.13
2.6.14
2.7.0
2.7.1
2.7.2
2.7.3
2.7.4.pre1
2.7.4
2.7.5
2.7.6
2.7.7
2.7.8

RubyGems / rubygems-update

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.0.0
Fixed
3.0.2

Affected versions

3.*

3.0.0
3.0.1