Sha256: e64585dbc1751227a3c21f4214dc82e2964d85c8e10cb4ad534c1355bcd2b8b4

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

---
engine: ruby
cve: 2018-16396
url: https://www.ruby-lang.org/en/news/2018/10/17/not-propagated-taint-flag-in-some-formats-of-pack-cve-2018-16396/
title: Tainted flags not always propogated in Array#pack and String#unpack
date: 2018-10-17
description: |
  In `Array#pack` and `String#unpack` with some formats, the tainted flags of
  the original data are not propagated to the returned string/array.

  `Array#pack` method converts the receiver’s contents into a string with
  specified format. If the receiver contains some tainted objects, the
  returned string also should be tainted. `String#unpack` method which
  converts the receiver into an array also should propagate its tainted flag
  to the objects contained in the returned array. But, with `B`, `b`, `H` and
  `h` directives, the tainted flags are not propagated. So, if a script
  processes unreliable inputs by `Array#pack` and/or `String#unpack` with these
  directives and checks the reliability with tainted flags, the check might be
  wrong.

  All users running an affected release should upgrade immediately.
patched_versions:
  - "~> 2.3.8"
  - "~> 2.4.5"
  - "~> 2.5.2"
  - "~> 2.6.0-preview3"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bundler-budit-0.6.2 data/ruby-advisory-db/rubies/ruby/CVE-2018-16396.yml
bundler-budit-0.6.1 data/ruby-advisory-db/rubies/ruby/CVE-2018-16396.yml