CVE-2025-68271 — Vulnerability in openc3 — CVE Details
openc3-api Vulnerable to Unauthenticated Remote Code Execution
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.19%). Schedule for your next planned update.
Does your project use an affected openc3 version?
Paste your Gemfile.lock to check it for CVE-2025-68271 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
OpenC3 COSMOS contains a critical remote code execution vulnerability reachable through the JSON-RPC API. When a JSON-RPC request uses the string form of certain APIs, attacker-controlled parameter text is parsed into values using String#convert_to_value. For array-like inputs, convert_to_value executes eval().
Because the cmd code path parses the command string before calling authorize(), an unauthenticated attacker can trigger Ruby code execution even though the request ultimately fails authorization (401).
Advisory Timeline
- First published January 13, 2026 (317 days ago).
- Last revised February 3, 2026 — 20 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install openc3 -v 6.10.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| openc3 RubyGems · Affected: 5.0.10, 5.0.11, 5.0.6, 5.0.7 (+66 more) | 6.10.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-95
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/OpenC3/cosmos/security/advisories/GHSA-w757-4qv9-mghpWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-68271ADVISORY
- https://github.com/OpenC3/cosmos/commit/01e9fbc5e66e9a2500b71a75a44775dd1fc2d1deWEB
- https://github.com/OpenC3/cosmosPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openc3/CVE-2025-68271.ymlWEB
Frequently Asked Questions
- What is CVE-2025-68271?
- openc3-api Vulnerable to Unauthenticated Remote Code Execution. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2025-68271?
- CVE-2025-68271 affects openc3. It has a 1.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-68271 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 67.9% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-42088CRITICAL
OpenC3 COSMOS: Permissions Bypass Provides User Access to Unassigned Administrative Actions via Script Runner Tool
- CVE-2026-77602CRITICAL
OpenC3 COSMOS: Authenticated remote code execution via the user-writable config overlay (table definitions, cmd/tlm definitions, and script suites)
- CVE-2026-42087CRITICAL
OpenC3 COSMOS has SQL Injection in QuestDB Time-Series Database
- CVE-2024-46977HIGH
OpenC3 Path Traversal via screen controller (`GHSL-2024-127`)
- CVE-2026-42085MEDIUM
OpenC3 COSMOS allows arbitrary writes to plugins directory via path-traversed config filenames
- CVE-2024-47529MEDIUM
OpenC3 stores passwords in clear text (`GHSL-2024-129`)
- CVE-2026-42086MEDIUM
OpenC3 COSMOS is Vulnerable to Self-XSS Through the Command Sender
- CVE-2024-43795MEDIUM
OpenC3 Cross-site Scripting in Login functionality (`GHSL-2024-128`)