CVE-2019-8322Rubygems
High 7.5 No auth needed
Follow: this CVE · Rubygems · Rubygems We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 3.3% probability of exploitation in 30 days · percentile 89
- Auth required
- No
- Published
- Jun 17, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-74
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Rubygems.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | rubygems-update |
≥ 2.6.0 < 2.7.9 |
2.7.9 |
gem "rubygems-update", ">= 2.7.9" |
| RubyGems | rubygems-update |
≥ 3.0.0 < 3.0.2 |
3.0.2 |
gem "rubygems-update", ">= 3.0.2" |
Per OSV / GitHub Advisories (GHSA-mh37-8c3g-3fgc). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubygems | rubygems | ≥ 2.6.0 ≤ 3.0.2 |
| debian | debian_linux | 9.0 |
| opensuse | leap | 15.0 |
| opensuse | leap | 15.1 |
Official sources
References
Links published by the sources. Open them with care.
- lists.opensuse.org Mailing List Third Party Advisory
- hackerone.com Permissions Required Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory