{"schemaVersion":3,"id":"CVE-2022-42717","aliases":["UBUNTU-CVE-2022-42717"],"status":"published","duplicateOf":null,"title":null,"description":"An issue was discovered in Hashicorp Packer before 2.3.1. The recommended sudoers configuration for Vagrant on Linux is insecure. If the host has been configured according to this documentation, non-privileged users on the host can leverage a wildcard in the sudoers configuration to execute arbitrary commands as root.","dates":{"published":"2022-10-11T00:00:00.000Z","modified":"2025-05-20T14:12:42.637Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00253,"percentile":0.1581,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.011000000000000029,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00242},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00251,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00251,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00251,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00251,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00251,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00253,"percentile":0.1581}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00251,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00251,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00251,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00251,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00251,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00253,"percentile":0.1581}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-284","name":"Improper Access Control","description":"The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.","type":"weakness","status":"Incomplete","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/284.html"}],"affected":[{"vendor":"ubuntu","product":"vagrant","name":"vagrant","label":"vagrant","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/vagrant","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"hashicorp","product":"vagrant","name":"vagrant","label":"vagrant","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.3.1","eol":null,"hubHref":"/vendor/hashicorp/vagrant"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/hashicorp/vagrant/pull/12910","label":"github.com/hashicorp/vagrant/pull/12910","hostname":"github.com","tags":["REPORT","Patch","Third Party Advisory"]},{"url":"https://www.vagrantup.com/docs/synced-folders/nfs","label":"www.vagrantup.com/docs/synced-folders/nfs","hostname":"www.vagrantup.com","tags":["REPORT","Product"]},{"url":"https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423","label":"discuss.hashicorp.com/t/…","hostname":"discuss.hashicorp.com","tags":["REPORT","Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-42717","label":"ubuntu.com/security/CVE-2022-42717","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-42717","label":"www.cve.org/CVERecord?id=CVE-2022-42717","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42717","label":"nvd.nist.gov/vuln/detail/CVE-2022-42717","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-10-11T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-05-20T14:12:42.637Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T05:46:13.633Z","stale":false,"partial":false}}