CVE-2025-54314: rubyonrails Thor · OS Command Injection
Affects rubyonrails ThorSource CVE Database V5
Not known to be exploited · CVSS 2.8 Low · fixed in 1.4.0 : update rubyonrails Thor when convenient.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 8% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.4.0
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
Weaponised: 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 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| rubyonrails Thor | Affected
| Fixed in– |
AI-suggested
European organizations should ensure that all Ruby on Rails projects using Thor upgrade to version 1.4.0 or later, where this vulnerability is addressed. Additionally, restrict local access to development and production environments to trusted personnel only, minimizing the risk of local exploitation. Implement strict code review and dependency management practices to detect and replace vulnerable gem versions. Employ runtime security monitoring to detect anomalous command executions within Ruby processes. For environments where upgrading is not immediately possible, consider sandboxing or containerizing Ruby applications to limit the impact of potential command injections. Finally, maintain an inventory of Ruby gems and their versions to quickly identify and remediate vulnerable components.
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
- github.com/rails/thor/commit/536b79036a0efb765c1899233412e7b1ca94abfa (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/releases/tag/v1.4.0 (opens in a new tab)
- github.com/github/advisory-database/pull/5912 (opens in a new tab)