CVE-2019-15845
Public on 2019-11-26
Modified on 2024-02-22
Description
A flaw was discovered in Ruby in the way certain functions handled strings containing NULL bytes. Specifically, the built-in methods File.fnmatch and its alias File.fnmatch? did not properly handle path patterns containing the NULL byte. A remote attacker could exploit this flaw to make a Ruby script access unexpected files and to bypass intended file system access restrictions.
Severity
CVSS v3 Base Score
See breakdown
Affected Packages
Platform | Package | Release Date | Advisory | Status |
---|---|---|---|---|
Amazon Linux 2 - Core | ruby | 2024-02-29 | ALAS2-2024-2486 | Fixed |
Amazon Linux 2 - Ruby2.6 Extra | ruby | 2023-08-21 | ALAS2RUBY2.6-2023-007 | Fixed |
Amazon Linux 1 | ruby24 | 2020-08-26 | ALAS-2020-1422 | Fixed |
Amazon Linux 2023 | ruby3.2 | Not Affected |
CVSS Scores
Score Type | Score | Vector | |
---|---|---|---|
Amazon Linux | CVSSv3 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
NVD | CVSSv2 | 6.4 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
NVD | CVSSv3 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |