CVE-2025-54314: Withdrawn Advisory: Thor can construct an unsafe shell command from library input.
This advisory was withdrawn on Aug 13, 2025. The publisher no longer considers it a valid vulnerability.
Withdrawn Advisory This 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. Original Description Thor before 1.4.0 can construct an unsafe shell command from library input.
Published Jul 20, 2025 · Updated Aug 13, 2025
Affected packages
thor
- Ecosystem
- RubyGems
- Affected
- < 1.4.0
- Fixed in
- 1.4.0
- Check
bundle info thor
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Withdrawn Advisory
This 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.
Original Description
Thor before 1.4.0 can construct an unsafe shell command from library input.
Credited to odaysec.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-54314
- https://github.com/rails/thor/pull/897
- https://github.com/rails/thor/commit/536b79036a0efb765c1899233412e7b1ca94abfa
- https://hackerone.com/reports/3260153
- https://github.com/rails/thor/releases/tag/v1.4.0
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/thor/CVE-2025-54314.yml
- https://github.com/github/advisory-database/pull/5912#issuecomment-3169255309
- https://github.com/advisories/GHSA-mqcp-p2hv-vw6x
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
