CVE-2025-54314: Ruby thor · Thor before 1.4.0 can construct an unsafe shell command from library input
Affects ruby-thorSource GCVE Database
Not known to be exploited · CVSS 2.8 Low.
Data as of 24 Nov 2026, 20:10 UTC
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10ruby-thorpkg:deb/ubuntu/ruby-thor?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSruby-thorpkg:deb/ubuntu/ruby-thor?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10ruby-thorpkg:deb/ubuntu/ruby-thor?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSruby-thorpkg:deb/ubuntu/ruby-thor?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSruby-thorpkg:deb/ubuntu/ruby-thor?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSruby-thorpkg:deb/ubuntu/ruby-thor?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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."
References
- ubuntu.com/security/CVE-2025-54314 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-54314 (opens in a new tab)
- hackerone.com/reports/3260153 (opens in a new tab)
- github.com/rails/thor/pull/897 (opens in a new tab)
- github.com/rails/thor/commit/536b79036a0efb765c1899233412e7b1ca94abfa (opens in a new tab)
- github.com/rails/thor/releases/tag/v1.4.0 (opens in a new tab)