CVE-2025-54314 Details
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."
A vulnerability exists in Thor versions prior to 1.4.0, where the application can create an unsafe shell command using input from its own libraries. This flaw could lead to the execution of arbitrary commands on the system. Although the Thor team disputes the existence of this vulnerability, citing that the method in question only accepts arguments controlled by Thor, the potential for misuse remains.
Users can upgrade to Thor version 1.4.0 or later, which addresses this vulnerability. Instructions for updating can be found on the Thor GitHub repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 20, 2025CISA-ADP
Assessed Jul 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/github/advisory-database/pull/5912#issuecomment-3169255309 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://github.com/rails/thor/commit/536b79036a0efb765c1899233412e7b1ca94abfa | [email protected] | Source CodeVendor |
| https://github.com/rails/thor/pull/897 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/rails/thor/releases/tag/v1.4.0 | [email protected] | Release NotesVendor |
| https://hackerone.com/reports/3260153 | [email protected] | Issue TrackingPermission Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Rails Thor | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 10, 2025 | CVE Modified | [email protected] |
| Jul 20, 2025 | New CVE Received | [email protected] |
Volerion