CVE-2019-16255

ruby: Code injection via command argument of Shell#test / Shell#[]

Published Nov 26, 2019 CVSS 3.1 · 8.1 High EPSS 4.2% KEV · Not listed
Description
Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows code injection if the first argument (aka the "command" argument) to Shell#[] or Shell#test in lib/shell.rb is untrusted data. An attacker can exploit this to call an arbitrary Ruby method.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2007-1 ruby2.1 security update
Debian DLA Debian DLA DLA-2027-1 jruby security update
Debian DLA Debian DLA DLA-2330-1 jruby security update
Debian DLA Debian DLA DLA-3408-1 jruby security update
Debian DSA Debian DSA DSA-4586-1 ruby2.5 security update
Debian DSA Debian DSA DSA-4587-1 ruby2.3 security update
EUVD EUVD EUVD-2019-7061 Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows code injection if the first argument (aka the "command" argument) to Shell#[] or Shell#test in lib/shell.rb is untrusted data. An attacker can exploit this to call an arbitrary Ruby method.
Ubuntu USN Ubuntu USN USN-4201-1 Ruby vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.01648}

epss

{'score': 0.01877}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 1:10 AM
Reserved
Sep 11, 2019, 12:00 AM
Status
Modified
Published
Nov 26, 2019, 6:15 PM
Modified
Jun 17, 2026, 2:22 AM
Severity
Moderate
Public date
Nov 26, 2019, 12:00 AM