# CVE-2025-54314: Thor before 1.4.0 can construct an unsafe shell command from library input.

- Severity: Low 2.8 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-07-20T00:00:00.000Z
- Modified: 2026-09-10T03:50:57.968Z
- Also known as: GHSA-mqcp-p2hv-vw6x
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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."

(As written by CVE List.)

## Affected

- rubyonrails Thor: before 1.4.0
- thor (RubyGems): before 1.4.0

## Every score

- mitre: CVSS:3.1 2.8 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/rails/thor/commit/536b79036a0efb765c1899233412e7b1ca94abfa> (web)
- <https://hackerone.com/reports/3260153> (web)
- <https://github.com/rails/thor/pull/897> (web)
- <https://github.com/rails/thor/releases/tag/v1.4.0> (web)
- <https://github.com/github/advisory-database/pull/5912#issuecomment-3169255309> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54314> (advisory)
- <https://github.com/rails/thor> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/thor/CVE-2025-54314.yml> (web)

## Sources

- CVE List: [CVE-2025-54314](https://www.cve.org/CVERecord?id=CVE-2025-54314), CVE Terms of Use, modified 2025-08-10
- GitHub Advisory Database: [GHSA-mqcp-p2hv-vw6x](https://github.com/advisories/GHSA-mqcp-p2hv-vw6x), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-54314](https://nvd.nist.gov/vuln/detail/CVE-2025-54314), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54314 · Whole record: https://cve.day/CVE-2025-54314.json · Rebuilt by cve.day 2026-11-25T22:59:01.455Z
