CVE-2019-5477
CRITICAL9.8EPSS 9.3%Nokogiri Command Injection Vulnerability
發布日:2019/8/19修改日:2026/4/28
描述
A command injection vulnerability in Nokogiri v1.10.3 and earlier allows commands to be executed in a subprocess via Ruby's `Kernel.open` method. Processes are vulnerable only if the undocumented method `Nokogiri::CSS::Tokenizer#load_file` is being called with unsafe user input as the filename. This vulnerability appears in code generated by the Rexical gem versions v1.0.6 and earlier. Rexical is used by Nokogiri to generate lexical scanner code for parsing CSS queries. The underlying vulnerability was addressed in Rexical v1.0.7 and Nokogiri upgraded to this version of Rexical in Nokogiri v1.10.4.
受影響套件(7)
- Debian/rexicalfrom 0, < 1.0.7-1
- Debian/rexicalfrom 0, < 1.0.5-2+deb10u1
- Debian/ruby-nokogirifrom 0, < 1.10.0+dfsg1-2+deb10u1
- Debian/ruby-nokogirifrom 0, < 1.6.3.1+ds-1+deb8u1
- Debian/ruby-nokogirifrom 0, < 1.10.4+dfsg1-1
- RubyGems/nokogirifrom 0, < 1.10.4
- RubyGems/rexicalfrom 0, < 1.0.7
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
參考連結(15)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2019-5477
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2019-5477
- PATCHhttps://github.com/sparklemotion/nokogiri
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2019-5477.yml
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/rexical/CVE-2019-5477.yml
- WEBhttps://github.com/sparklemotion/nokogiri/commit/5d30128343573a9428c86efc758ba2c66e9f12dc
- WEBhttps://github.com/sparklemotion/nokogiri/issues/1915
- WEBhttps://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdoc
- WEBhttps://github.com/tenderlove/rexical/commit/a652474dbc66be350055db3e8f9b3a7b3fd75926
- WEBhttps://hackerone.com/reports/650835
- WEBhttps://lists.debian.org/debian-lts-announce/2019/09/msg00027.html
- WEBhttps://lists.debian.org/debian-lts-announce/2022/10/msg00018.html
- WEBhttps://lists.debian.org/debian-lts-announce/2022/10/msg00019.html
- WEBhttps://security.gentoo.org/glsa/202006-05
- WEBhttps://usn.ubuntu.com/4175-1