Vulnerability · Published Jul 20, 2025 · Assigned by mitre
CVE-2025-54314
Low 2.8
In plain English
A low-severity OS command injection in Thor from rubyonrails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)2.8Low
Exploit odds (30 days)0.2%top 91.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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."
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| RubyGems | thor | 1.4.0 | GHSA-mqcp-p2hv-vw6x |
| Ubuntu:22.04:LTS | ruby-thor | no fix listed | UBUNTU-CVE-2025-54314 |
| Ubuntu:24.04:LTS | ruby-thor | no fix listed | UBUNTU-CVE-2025-54314 |
| Ubuntu:25.10 | ruby-thor | no fix listed | UBUNTU-CVE-2025-54314 |
| Ubuntu:26.04:LTS | ruby-thor | no fix listed | UBUNTU-CVE-2025-54314 |
| Ubuntu:26.10 | ruby-thor | no fix listed | UBUNTU-CVE-2025-54314 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | Thor | 0 – before 1.4.0 |
Weakness: CWE-78 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N