UBUNTU-CVE-2019-5477

Source
https://ubuntu.com/security/CVE-2019-5477
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-5477.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2019-5477
Related
Published
2019-08-16T16:15:00Z
Modified
2019-08-16T16:15:00Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:14.04:LTS / ruby-nokogiri

Package

Name
ruby-nokogiri
Purl
pkg:deb/ubuntu/ruby-nokogiri?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.1+ds-1ubuntu0.1~esm1

Affected versions

1.*

1.5.9-2
1.5.9-3
1.6.0-1
1.6.1+ds-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.6.1+ds-1ubuntu0.1~esm1",
            "binary_name": "ruby-nokogiri"
        },
        {
            "binary_version": "1.6.1+ds-1ubuntu0.1~esm1",
            "binary_name": "ruby-nokogiri-dbgsym"
        }
    ]
}

Ubuntu:16.04:LTS / ruby-nokogiri

Package

Name
ruby-nokogiri
Purl
pkg:deb/ubuntu/ruby-nokogiri?arch=src?distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.7.2-3ubuntu0.1

Affected versions

1.*

1.6.6.2+ds-2build2
1.6.6.3-1
1.6.7-1
1.6.7.1-1
1.6.7.2-3
1.6.7.2-3build1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.6.7.2-3ubuntu0.1",
            "binary_name": "ruby-nokogiri"
        },
        {
            "binary_version": "1.6.7.2-3ubuntu0.1",
            "binary_name": "ruby-nokogiri-dbgsym"
        }
    ]
}

Ubuntu:18.04:LTS / ruby-nokogiri

Package

Name
ruby-nokogiri
Purl
pkg:deb/ubuntu/ruby-nokogiri?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.8.2-1ubuntu0.1

Affected versions

1.*

1.8.0-1
1.8.1-1
1.8.1-1build1
1.8.2-1build1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.8.2-1ubuntu0.1",
            "binary_name": "ruby-nokogiri"
        },
        {
            "binary_version": "1.8.2-1ubuntu0.1",
            "binary_name": "ruby-nokogiri-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / ruby-nokogiri

Package

Name
ruby-nokogiri
Purl
pkg:deb/ubuntu/ruby-nokogiri?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.10.4+dfsg1-1

Affected versions

1.*

1.10.3+dfsg1-2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.10.4+dfsg1-1",
            "binary_name": "ruby-nokogiri"
        },
        {
            "binary_version": "1.10.4+dfsg1-1",
            "binary_name": "ruby-nokogiri-dbgsym"
        }
    ]
}