{"api_version":"1","generated_at":"2026-04-23T04:33:31+00:00","cve":"CVE-2019-5477","urls":{"html":"https://cve.report/CVE-2019-5477","api":"https://cve.report/api/cve/CVE-2019-5477.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-5477","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-5477"},"summary":{"title":"CVE-2019-5477","description":"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.","state":"PUBLIC","assigner":"support@hackerone.com","published_at":"2019-08-16 16:15:00","updated_at":"2022-10-14 18:46:00"},"problem_types":["CWE-78"],"metrics":[],"references":[{"url":"https://usn.ubuntu.com/4175-1/","name":"USN-4175-1","refsource":"UBUNTU","tags":["Third Party Advisory"],"title":"USN-4175-1: Nokogiri vulnerability | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/sparklemotion/nokogiri/issues/1915","name":"https://github.com/sparklemotion/nokogiri/issues/1915","refsource":"CONFIRM","tags":["Patch","Third Party Advisory"],"title":"CVE-2019-5477 - Nokogiri Command Injection Vulnerability · Issue #1915 · sparklemotion/nokogiri · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html","name":"[debian-lts-announce] 20221012 [SECURITY] [DLA 3149-1] ruby-nokogiri security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3149-1] ruby-nokogiri security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://hackerone.com/reports/650835","name":"https://hackerone.com/reports/650835","refsource":"MISC","tags":["Permissions Required"],"title":"HackerOne","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/202006-05","name":"GLSA-202006-05","refsource":"GENTOO","tags":["Third Party Advisory"],"title":"Nokogiri: Command injection (GLSA 202006-05) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00019.html","name":"[debian-lts-announce] 20221012 [SECURITY] [DLA 3150-1] rexical security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3150-1] rexical security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdoc","name":"https://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdoc","refsource":"MISC","tags":["Release Notes"],"title":"rexical/CHANGELOG.rdoc at master · tenderlove/rexical · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2019/09/msg00027.html","name":"[debian-lts-announce] 20190926 [SECURITY] [DLA 1933-1] ruby-nokogiri security update","refsource":"MLIST","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] [DLA 1933-1] ruby-nokogiri security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-5477","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-5477","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2019","cve_id":"5477","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"5477","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"5477","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"19.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"5477","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"19.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"5477","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"5477","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"5477","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"19.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"5477","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"19.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"5477","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"5477","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"5477","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"5477","vulnerable":"1","versionEndIncluding":"1.10.3","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nokogiri","cpe5":"nokogiri","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2019-5477","qid":"181133","title":"Debian Security Update for rexical (DLA 3150-1)"},{"cve":"CVE-2019-5477","qid":"181134","title":"Debian Security Update for ruby-nokogiri (DLA 3149-1)"},{"cve":"CVE-2019-5477","qid":"501236","title":"Alpine Linux Security Update for ruby-nokogiri"},{"cve":"CVE-2019-5477","qid":"505378","title":"Alpine Linux Security Update for ruby-nokogiri"},{"cve":"CVE-2019-5477","qid":"750375","title":"OpenSUSE Security Update for rubygem-nokogiri (openSUSE-SU-2021:0237-1)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2019-5477","ASSIGNER":"support@hackerone.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"Nokogiri (ruby gem)","version":{"version_data":[{"version_value":"Fixed in v1.10.4"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"OS Command Injection (CWE-78)"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://hackerone.com/reports/650835","url":"https://hackerone.com/reports/650835"},{"refsource":"MISC","name":"https://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdoc","url":"https://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdoc"},{"refsource":"CONFIRM","name":"https://github.com/sparklemotion/nokogiri/issues/1915","url":"https://github.com/sparklemotion/nokogiri/issues/1915"},{"refsource":"MLIST","name":"[debian-lts-announce] 20190926 [SECURITY] [DLA 1933-1] ruby-nokogiri security update","url":"https://lists.debian.org/debian-lts-announce/2019/09/msg00027.html"},{"refsource":"UBUNTU","name":"USN-4175-1","url":"https://usn.ubuntu.com/4175-1/"},{"refsource":"GENTOO","name":"GLSA-202006-05","url":"https://security.gentoo.org/glsa/202006-05"},{"refsource":"MLIST","name":"[debian-lts-announce] 20221012 [SECURITY] [DLA 3149-1] ruby-nokogiri security update","url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html"},{"refsource":"MLIST","name":"[debian-lts-announce] 20221012 [SECURITY] [DLA 3150-1] rexical security update","url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00019.html"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]}},"nvd":{"publishedDate":"2019-08-16 16:15:00","lastModifiedDate":"2022-10-14 18:46:00","problem_types":["CWE-78"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:*","versionEndIncluding":"1.10.3","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2019","CveId":"5477","Ordinal":"143097","Title":"CVE-2019-5477","CVE":"CVE-2019-5477","Year":"2019"},"notes":[{"CveYear":"2019","CveId":"5477","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2019","CveId":"5477","Ordinal":"2","NoteData":"2019-08-16","Type":"Other","Title":"Published"},{"CveYear":"2019","CveId":"5477","Ordinal":"3","NoteData":"2020-06-12","Type":"Other","Title":"Modified"}]}}}