{"id":"CVE-2025-54314","aliases":["CVE-2025-54314","GHSA-mqcp-p2hv-vw6x"],"related":[],"kind":"vulnerability","state":"published","title":"Thor before 1.4.0 can construct an unsafe shell command from library input.","summary":"Thor before 1.4.0 can construct an unsafe shell command from library input. NOTE: this is disputed by the Supplier because \"the method that was fixed can only be used with arguments that are controlled by Thor, and there is no way an attacker can take control of those arguments.\"","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Thor before 1.4.0 can construct an unsafe shell command from library input. NOTE: this is disputed by the Supplier because \"the method that was fixed can only be used with arguments that are controlled by Thor, and there is no way an attacker can take control of those arguments.\"","source":"cvelist"},{"lang":"en","text":"### Withdrawn Advisory\nThis advisory has been withdrawn because the method described can only be used with arguments that are controlled by Thor, and an external attacker cannot access the functionality described in the body of the CVE. This link is maintained to preserve external references.\n\n### Original Description\nThor before 1.4.0 can construct an unsafe shell command from library input.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Thor anterior a 1.4.0 puede construir un comando de shell inseguro desde la entrada de la librería.","source":"nvd"}],"published":"2025-07-20T00:00:00.000Z","modified":"2026-09-10T03:50:57.968Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N","score":2.8,"rating":"LOW"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N","score":2.8,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.4.0","status":"affected"}],"vendor":"rubyonrails","product":"Thor","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.4.0"}],"ecosystem":"RubyGems","package":"thor","purl":"pkg:gem/thor","source":"ghsa"}],"references":[{"url":"https://github.com/rails/thor/commit/536b79036a0efb765c1899233412e7b1ca94abfa","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://hackerone.com/reports/3260153","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rails/thor/pull/897","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rails/thor/releases/tag/v1.4.0","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/github/advisory-database/pull/5912#issuecomment-3169255309","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54314","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rails/thor","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/thor/CVE-2025-54314.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-07-21T18:31:26.798Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54314","url":"https://www.cve.org/CVERecord?id=CVE-2025-54314","licence":"CVE Terms of Use","modified":"2025-08-10T00:19:19.943Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mqcp-p2hv-vw6x","url":"https://github.com/advisories/GHSA-mqcp-p2hv-vw6x","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:57.968Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54314","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54314","licence":"Public domain","modified":"2026-06-17T09:39:50.040Z"}],"updatedAt":"2026-11-25T22:59:01.455Z","epss":{"score":0.00194,"percentile":0.09552,"date":"2026-12-01T12:00:22.000Z"}}