7.5high

CVE-2019-8322

RubyGems Escape sequence injection vulnerability in gem owner

Also known as GHSA-mh37-8c3g-3fgc

Published 7 y ago · modified 4 mo ago · JSON

CVSS
7.5
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
3.3%
percentile 89%
Public exploits
0
none known

Summary

An issue was discovered in RubyGems 2.6 and later through 3.0.2. The gem owner command outputs the contents of the API response directly to stdout. Therefore, if the response is crafted, escape sequence injection may occur.

Exploit prediction (EPSS)

3.28% probability of exploitation in the next 30 days, higher than 89% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.17.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD2.05.0AV:N/AC:L/Au:N/C:N/I:P/A:N
GitHub3.17.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected packages

EcosystemPackageAffectedFixed in
rubygemsrubygems-update
>=2.6.0, <2.7.9
>=3.0.0, <3.0.2
2.7.9
3.0.2

Classification

Weakness
  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component

References

  • hackerone.com /reports/315087 · x_refsource_MISC, x_transferred
  • lists.opensuse.org /opensuse-security-announce/2019-07/msg00036.html · vendor-advisory, x_refsource_SUSE, x_transferred
  • lists.debian.org /debian-lts-announce/2020/08/msg00027.html · mailing-list, x_refsource_MLIST, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2019-8322 · advisory
  • blog.rubygems.org /2019/03/05/security-advisories-2019-03.html · web
  • github.com /rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2019-8322.yml · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.