Loading...
Skip to main content

CVE-2026-42084 — Vulnerability in openc3 — CVE Details

HIGH

OpenC3 COSMOS: Hijacked session token can be used to reset password for persistence

Published April 22, 2026Updated September 10, 2026Source: osv

Summary

### Summary The OpenC3 password change functionality allows a user to change their password without providing the old password, by accepting a valid session token instead. In assumed breach scenarios, this behaviour can be exploited by an attacker who has already obtained a valid session token, to gain persistence in hijacked account (including admin) and prevent legitimate users from accessing the account. ### Details The design flaw in authentication model ([authentication.rb](https://github.com/OpenC3/cosmos/blob/397abec0d57972881a2e8dc10902d0dce9c27f42/openc3/lib/openc3/utilities/authentication.rb)) allows for interchangeable use of password and session tokens for user authentication As old tokens are not revoked upon password reset, an attacker who has obtained a valid session token can continue to authenticate and change the account’s password even after the victim resets it, thereby maintaining persistent control over the compromised account. ### PoC 1. Attacker is logged in user account with hijacked valid session token, but not knowing the actual password 2. Legitimate user, as preventive action, changes his password (_password123_) using old password (_password_), that he knows, then establishes new session 3. Attacker issues another password change request (in web proxy like Burp) supplying his still valid token as _old_password_, changing it to attacker-password, from this point preventing any other legitimate users from accessing account <img width="912" height="479" alt="image" src="https://github.com/user-attachments/assets/d27b5980-0326-40f8-bb39-657d7b1c95a0" /> <img width="923" height="423" alt="image" src="https://github.com/user-attachments/assets/060d9fe1-637e-4a2d-9142-76612984ea28" /> ### Impact Persistence of an attacker who obtained valid session token and preventing legitimate users from account access

Advisory Timeline

  • First published April 22, 2026 (173 days ago).
  • Last revised September 10, 2026 — 140 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update openc3 to 7.0.0-rc3 or later
gem install openc3 -v 7.0.0-rc3
Bundler
Update openc3 to 6.10.5 or later
gem install openc3 -v 6.10.5

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
openc3
rubygems
7.0.0, 7.0.0.pre.rc1, 7.0.0.pre.rc2, 7.0.0.pre.rc3 (+6 more)7.0.0-rc3
openc3
rubygems
5.0.10, 5.0.11, 5.0.6, 5.0.7 (+69 more)6.10.5

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2026-42084?
OpenC3 COSMOS: Hijacked session token can be used to reset password for persistence This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2026-42084?
CVE-2026-42084 affects openc3. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-42084 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-wgx6-g857-jjf7
PYSEC-2026-2242

Related CVEs

  • CVE-2026-42088
    CRITICAL

    OpenC3 COSMOS: Permissions Bypass Provides User Access to Unassigned Administrative Actions via Script Runner Tool

  • CVE-2026-77602
    CRITICAL

    OpenC3 COSMOS: Authenticated remote code execution via the user-writable config overlay (table definitions, cmd/tlm definitions, and script suites)

  • CVE-2026-42087
    CRITICAL

    OpenC3 COSMOS has SQL Injection in QuestDB Time-Series Database

  • CVE-2024-46977
    HIGH

    OpenC3 Path Traversal via screen controller (`GHSL-2024-127`)

  • CVE-2026-42085
    MEDIUM

    OpenC3 COSMOS allows arbitrary writes to plugins directory via path-traversed config filenames

  • CVE-2024-47529
    MEDIUM

    OpenC3 stores passwords in clear text (`GHSL-2024-129`)

  • CVE-2026-42086
    MEDIUM

    OpenC3 COSMOS is Vulnerable to Self-XSS Through the Command Sender

  • CVE-2024-43795
    MEDIUM

    OpenC3 Cross-site Scripting in Login functionality (`GHSL-2024-128`)

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies