Lucene search

K
rubygemsRubySecRUBY:RUBY-2018-8778
HistoryMar 27, 2018 - 9:00 p.m.

Buffer under-read in String#unpack

2018-03-2721:00:00
RubySec
www.ruby-lang.org
21

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

String#unpack receives format specifiers as its parameter, and can be
specified the position of parsing the data by the specifier @. If a big
number is passed with @, the number is treated as the negative value, and
out-of-buffer read is occurred. So, if a script accepts an external input as
the argument of String#unpack, the attacker can read data on heaps.

All users running an affected release should upgrade immediately.

Affected configurations

Vulners
Node
rubyrubyRange2.2.02.2.10
OR
rubyrubyRange2.3.02.3.7
OR
rubyrubyRange2.4.02.4.4
OR
rubyrubyRange2.5.02.5.1
OR
rubyrubyRange2.6.01
VendorProductVersionCPE
rubyruby*cpe:2.3:a:ruby:ruby:*:*:*:*:*:*:*:*

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N