CVE-2019-5477

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.
OS Command Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
hackeroneCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 79%
VendorProductVersion
nokogirinokogiri
𝑥
≤ 1.10.3
canonicalubuntu_linux
16.04
canonicalubuntu_linux
18.04
canonicalubuntu_linux
19.04
canonicalubuntu_linux
19.10
debiandebian_linux
8.0
debiandebian_linux
10.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
rexical
bullseye
1.0.7-1
fixed
stretch
no-dsa
sid
1.0.7-2
fixed
trixie
1.0.7-2
fixed
bookworm
1.0.7-2
fixed
ruby-nokogiri
bullseye
1.11.1+dfsg-2
fixed
stretch
no-dsa
bullseye (security)
1.11.1+dfsg-2+deb11u1
fixed
bookworm
1.13.10+dfsg-2
fixed
sid
1.16.4+dfsg-1
fixed
trixie
1.16.4+dfsg-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
ruby-nokogiri
jammy
not-affected
impish
not-affected
hirsute
not-affected
groovy
not-affected
focal
not-affected
eoan
Fixed 1.10.3+dfsg1-2ubuntu0.1
released
disco
Fixed 1.10.0+dfsg1-2ubuntu0.1
released
bionic
Fixed 1.8.2-1ubuntu0.1
released
xenial
Fixed 1.6.7.2-3ubuntu0.1
released
trusty
Fixed 1.6.1+ds-1ubuntu0.1~esm1
released