CVE-2018-16396
publishedruby: Tainted flags are not propagated in Array#pack and String#unpack with some directives
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2019-1276 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Debian | jessie | ruby2.1 | Advisory build | 2.1.5-2+deb8u6 | DLA-1558-1 |
| Oracle Linux | 7 | rubyaarch64 | Advisory build | 0:2.0.0.648-36.el7 | ELSA-2019-2028 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubysrc | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Alpine Linux | v3.11 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.12 | ruby | Fixed | 2.5.2-r0 | Package fix record |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.13 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.14 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.15 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.16 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.17 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.18 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.19 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.20 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.21 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.22 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.23 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.24 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.4 | ruby | Fixed | 2.3.8-r0 | Package fix record |
| Alpine Linux | v3.5 | ruby | Fixed | 2.3.8-r0 | Package fix record |
| Alpine Linux | v3.6 | ruby | Fixed | 2.4.5-r0 | Package fix record |
| Alpine Linux | v3.7 | ruby | Fixed | 2.4.5-r0 | Package fix record |
| Alpine Linux | v3.8 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.9 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Debian | stretch | ruby2.3 | Advisory build | 2.3.3-1+deb9u4 | DSA-4332-1 |
| Oracle Linux | 7 | rubyx86_64 | Advisory build | 0:2.0.0.648-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | ruby-develaarch64 | Advisory build | 0:2.0.0.648-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | ruby-develx86_64 | Advisory build | 0:2.0.0.648-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | ruby-docaarch64 | Advisory build | 0:2.0.0.648-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | ruby-docx86_64 | Advisory build | 0:2.0.0.648-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | ruby-irbaarch64 | Advisory build | 0:2.0.0.648-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | ruby-irbx86_64 | Advisory build | 0:2.0.0.648-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | ruby-libsaarch64 | Advisory build | 0:2.0.0.648-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | ruby-libsx86_64 | Advisory build | 0:2.0.0.648-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | ruby-tcltkaarch64 | Advisory build | 0:2.0.0.648-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | ruby-tcltkx86_64 | Advisory build | 0:2.0.0.648-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-bigdecimalaarch64 | Advisory build | 0:1.2.0-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-bigdecimalx86_64 | Advisory build | 0:1.2.0-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-io-consoleaarch64 | Advisory build | 0:0.4.2-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-io-consolex86_64 | Advisory build | 0:0.4.2-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-jsonaarch64 | Advisory build | 0:1.7.7-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-jsonx86_64 | Advisory build | 0:1.7.7-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-minitestaarch64 | Advisory build | 0:4.3.2-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-minitestx86_64 | Advisory build | 0:4.3.2-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-psychaarch64 | Advisory build | 0:2.0.0-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-psychx86_64 | Advisory build | 0:2.0.0-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-rakeaarch64 | Advisory build | 0:0.9.6-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-rakex86_64 | Advisory build | 0:0.9.6-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-rdocaarch64 | Advisory build | 0:4.0.0-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygem-rdocx86_64 | Advisory build | 0:4.0.0-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygemsaarch64 | Advisory build | 0:2.0.14.1-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygemsx86_64 | Advisory build | 0:2.0.14.1-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygems-develaarch64 | Advisory build | 0:2.0.14.1-36.el7 | ELSA-2019-2028 |
| Oracle Linux | 7 | rubygems-develx86_64 | Advisory build | 0:2.0.14.1-36.el7 | ELSA-2019-2028 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubyx86_64 | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-ruby-debuginfox86_64 | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-ruby-develx86_64 | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-ruby-docnoarch | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-ruby-irbnoarch | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-ruby-libsx86_64 | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-ruby-tcltkx86_64 | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-bigdecimalx86_64 | Advisory build | 1.2.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-did_you_meanx86_64 | Advisory build | 1.0.0-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-io-consolex86_64 | Advisory build | 0.4.5-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-jsonx86_64 | Advisory build | 1.8.3.1-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-minitestnoarch | Advisory build | 5.8.5-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-net-telnetx86_64 | Advisory build | 0.1.1-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-power_assertnoarch | Advisory build | 0.2.6-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-psychx86_64 | Advisory build | 2.1.0.1-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-rakenoarch | Advisory build | 10.4.2-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-rdocnoarch | Advisory build | 4.2.1-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-test-unitnoarch | Advisory build | 3.1.5-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygemsnoarch | Advisory build | 2.5.2.3-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygems-develnoarch | Advisory build | 2.5.2.3-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubysrc | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubyx86_64 | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-debuginfox86_64 | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-develx86_64 | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-docnoarch | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-irbnoarch | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-libsx86_64 | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-bigdecimalx86_64 | Advisory build | 1.3.2-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-did_you_meanx86_64 | Advisory build | 1.1.0-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-io-consolex86_64 | Advisory build | 0.4.6-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-jsonx86_64 | Advisory build | 2.0.4-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-minitestnoarch | Advisory build | 5.10.1-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-net-telnetx86_64 | Advisory build | 0.1.1-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-opensslx86_64 | Advisory build | 2.0.9-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-power_assertnoarch | Advisory build | 0.4.1-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-psychx86_64 | Advisory build | 2.2.2-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-rakenoarch | Advisory build | 12.0.0-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-rdocnoarch | Advisory build | 5.0.0-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-test-unitnoarch | Advisory build | 3.2.3-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-xmlrpcnoarch | Advisory build | 0.2.1-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygemsnoarch | Advisory build | 2.6.14.3-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygems-develnoarch | Advisory build | 2.6.14.3-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby23-rubysrc | Advisory build | 2.3.8-69.el7 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby23-rubyx86_64 | Advisory build | 2.3.8-69.el7 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby23-ruby-debuginfox86_64 | Advisory build | 2.3.8-69.el7 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby23-ruby-develx86_64 | Advisory build | 2.3.8-69.el7 | RHSA-2018:3729 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
An issue was discovered in Ruby before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.2, and 2.6.x before 2.6.0-preview3. It does not taint strings that result from unpacking tainted strings with some formats.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
16- openSUSE-SU-2019:1771 http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
- 1042106 http://www.securitytracker.com/id/1042106
- RHSA-2018:3729 https://access.redhat.com/errata/RHSA-2018:3729
- RHSA-2018:3730 https://access.redhat.com/errata/RHSA-2018:3730
- RHSA-2018:3731 https://access.redhat.com/errata/RHSA-2018:3731
- RHSA-2019:2028 https://access.redhat.com/errata/RHSA-2019:2028
- https://hackerone.com/reports/385070
- [debian-lts-announce] 20181028 [SECURITY] [DLA 1558-1] ruby2.1 security update https://lists.debian.org/debian-lts-announce/2018/10/msg00020.html
- https://security.netapp.com/advisory/ntap-20190221-0002/
- USN-3808-1 https://usn.ubuntu.com/3808-1/
- DSA-4332 https://www.debian.org/security/2018/dsa-4332
- https://www.ruby-lang.org/en/news/2018/10/17/not-propagated-taint-flag-in-some-formats-of-pack-cve-2018-16396/
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/
- https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9994acbe9b959df5c5ed829573849e16a39057efe35d0b8024b24538bc649518
- Ingested
- 23 Sep 2026, 07:43:53 UTC
- Source record
- Official CVE record