# Withdrawn Advisory: Thor can construct an unsafe shell command from library input.

Advisory record · `GHSA-mqcp-p2hv-vw6x` · Withdrawn

- **Identifiers:** `GHSA-mqcp-p2hv-vw6x` · `CVE-2025-54314`
- **State:** Withdrawn
- **Severity:** CVSS 2.8 Low
- **Critical:** No
- **Weakness (CWE):** [CWE-78](https://cwe.mitre.org/data/definitions/78.html)
- **Tags:** [Command injection](https://agentprime.io/advisories/tag/command-injection.md)
- **Published:** 20 Jul 2025
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

**Withdrawn.** The GitHub Advisory Database withdrew this advisory on 13 Aug 2025. The record stays here, marked withdrawn.

Published by the GitHub Advisory Database at 20 Jul 2025, 03:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `thor` (RubyGems): affected `<1.4.0`; fixed in `1.4.0`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 2.8 Low, CVSS 3.1: `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N`, from CNA (mitre)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0019, the 8th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:16 UTC: First seen by agentprime
- 31 Oct 2026, 15:16 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-mqcp-p2hv-vw6x)

## Sources

- [GitHub Advisory Database: GHSA-mqcp-p2hv-vw6x](https://github.com/advisories/GHSA-mqcp-p2hv-vw6x)
- [OSV: GHSA-mqcp-p2hv-vw6x](https://osv.dev/vulnerability/GHSA-mqcp-p2hv-vw6x)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54314>
- <https://github.com/github/advisory-database/pull/5912#issuecomment-3169255309>
- <https://github.com/rails/thor/pull/897>
- <https://github.com/rails/thor/commit/536b79036a0efb765c1899233412e7b1ca94abfa>
- <https://hackerone.com/reports/3260153>
- <https://github.com/rails/thor>
- <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>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-mqcp-p2hv-vw6x>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-mqcp-p2hv-vw6x/>. Everything for agents: <https://agentprime.io/llms.txt>.
