Bug 1692516 (CVE-2019-8322) - CVE-2019-8322 rubygems: Escape sequence injection vulnerability in gem owner
Summary: CVE-2019-8322 rubygems: Escape sequence injection vulnerability in gem owner
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-8322
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1692530 1695928 1695930 1695931 1695932 1695933 1695934 1699283 1700313 1700325 1713073 1837068
Blocks: 1692529
TreeView+ depends on / blocked
 
Reported: 2019-03-25 18:59 UTC by Pedro Sampaio
Modified: 2020-06-30 12:09 UTC (History)
24 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-10 10:51:52 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker THREESCALE-2164 0 Major New Rebuild of AMP backend for rubygems CVEs (Due June 12, 2019) 2020-06-11 13:52:15 UTC
Red Hat Product Errata RHBA-2019:1402 0 None None None 2019-06-07 03:19:11 UTC
Red Hat Product Errata RHBA-2019:1463 0 None None None 2019-06-12 04:30:14 UTC
Red Hat Product Errata RHSA-2019:1148 0 None None None 2019-05-13 09:02:51 UTC
Red Hat Product Errata RHSA-2019:1150 0 None None None 2019-05-13 09:18:54 UTC
Red Hat Product Errata RHSA-2019:1235 0 None None None 2019-05-15 17:53:13 UTC
Red Hat Product Errata RHSA-2019:1429 0 None None None 2019-06-11 05:32:40 UTC
Red Hat Product Errata RHSA-2020:2769 0 None None None 2020-06-30 12:09:24 UTC

Description Pedro Sampaio 2019-03-25 18:59:31 UTC
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.

Upstream patch:

https://bugs.ruby-lang.org/attachments/7669

References:

https://www.ruby-lang.org/en/news/2019/03/05/multiple-vulnerabilities-in-rubygems/
https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html

Comment 1 Pedro Sampaio 2019-03-25 19:14:28 UTC
Created rubygems tracking bugs for this issue:

Affects: fedora-all [bug 1692530]

Comment 2 Scott Gayou 2019-04-03 22:40:15 UTC
Flaw is in owner_command.rb

```ruby
    with_response response do |resp|
      owners = Gem::SafeYAML.load clean_text(resp.body)
      say "Owners for gem: #{name}"
      owners.each do |owner|
```

Comment 5 errata-xmlrpc 2019-05-13 09:02:49 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS

Via RHSA-2019:1148 https://access.redhat.com/errata/RHSA-2019:1148

Comment 6 errata-xmlrpc 2019-05-13 09:18:52 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS

Via RHSA-2019:1150 https://access.redhat.com/errata/RHSA-2019:1150

Comment 7 errata-xmlrpc 2019-05-15 17:53:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2019:1235 https://access.redhat.com/errata/RHSA-2019:1235

Comment 12 errata-xmlrpc 2019-06-11 05:32:39 UTC
This issue has been addressed in the following products:

  CloudForms Management Engine 5.10

Via RHSA-2019:1429 https://access.redhat.com/errata/RHSA-2019:1429

Comment 17 errata-xmlrpc 2020-06-30 12:09:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.4 Advanced Update Support
  Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions
  Red Hat Enterprise Linux 7.4 Telco Extended Update Support

Via RHSA-2020:2769 https://access.redhat.com/errata/RHSA-2020:2769


Note You need to log in before you can comment on or make changes to this bug.