{"id":"CVE-2026-42084","aliases":["CVE-2026-42084","GHSA-wgx6-g857-jjf7","PYSEC-2026-2242"],"related":[],"kind":"vulnerability","state":"published","title":"OpenC3 COSMOS: Hijacked session token can be used to reset password for persistence","summary":"OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems. Prior to versions 6.10.5 and 7.0.0-rc3, 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. This issue has been patched in versions 6.10.5 and 7.0.0-rc3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems. Prior to versions 6.10.5 and 7.0.0-rc3, 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. This issue has been patched in versions 6.10.5 and 7.0.0-rc3.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe 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.\n\n### Details\nThe 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.\n\n### PoC\n1. Attacker is logged in user account with hijacked valid session token, but not knowing the actual password\n2. Legitimate user, as preventive action, changes his password (_password123_) using old password (_password_), that he knows, then establishes new session\n3. 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\n<img width=\"912\" height=\"479\" alt=\"image\" src=\"https://github.com/user-attachments/assets/d27b5980-0326-40f8-bb39-657d7b1c95a0\" />\n<img width=\"923\" height=\"423\" alt=\"image\" src=\"https://github.com/user-attachments/assets/060d9fe1-637e-4a2d-9142-76612984ea28\" />\n\n### Impact\nPersistence of an attacker who obtained valid session token and preventing legitimate users from account access","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenC3 COSMOS proporciona la funcionalidad necesaria para enviar comandos a y recibir datos de uno o más sistemas embebidos. Antes de las versiones 6.10.5 y 7.0.0-rc3, la funcionalidad de cambio de contraseña de OpenC3 permite a un usuario cambiar su contraseña sin proporcionar la contraseña antigua, al aceptar un token de sesión válido en su lugar. En escenarios de brecha asumida, este comportamiento puede ser explotado por un atacante que ya ha obtenido un token de sesión válido, para obtener persistencia en una cuenta secuestrada (incluyendo la de administrador) y evitar que usuarios legítimos accedan a la cuenta. Este problema ha sido parcheado en las versiones 6.10.5 y 7.0.0-rc3.","source":"nvd"}],"published":"2026-04-22T22:13:10.000Z","modified":"2026-10-26T19:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-620"],"affected":[{"ranges":[{"version":"< 6.10.5","status":"affected"},{"version":">= 7.0.0.pre.rc1, < 7.0.0-rc3","status":"affected"}],"vendor":"OpenC3","product":"cosmos","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.10.5"}],"ecosystem":"RubyGems","package":"openc3","purl":"pkg:gem/openc3","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0.pre.rc1","status":"affected","fixed":"7.0.0-rc3"}],"ecosystem":"RubyGems","package":"openc3","purl":"pkg:gem/openc3","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.10.5"},{"status":"affected","version":"7.0.0"},{"status":"affected","version":"7.0.0"}],"vendor":"openc3","product":"cosmos","cpe":"cpe:2.3:a:openc3:cosmos:*:*:*:*:open_source:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.10.5"}],"ecosystem":"PyPI","package":"openc3","purl":"pkg:pypi/openc3","source":"pysec"}],"references":[{"url":"https://github.com/OpenC3/cosmos/security/advisories/GHSA-wgx6-g857-jjf7","tags":["evidence","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/OpenC3/cosmos/commit/2e623714e3426d5ae81b6f8239d4a2a6937ef776","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/OpenC3/cosmos/releases/tag/v6.10.5","tags":["advisory","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3","tags":["advisory","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42084","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/OpenC3/cosmos","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openc3/CVE-2026-42084.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-05-06T13:39:31.426Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42084","url":"https://www.cve.org/CVERecord?id=CVE-2026-42084","licence":"CVE Terms of Use","modified":"2026-05-06T13:39:58.104Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wgx6-g857-jjf7","url":"https://github.com/advisories/GHSA-wgx6-g857-jjf7","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:03.787Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42084","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42084","licence":"Public domain","modified":"2026-10-26T19:10:00.163Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2242","url":"https://osv.dev/vulnerability/PYSEC-2026-2242","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:38.673Z"}],"updatedAt":"2026-11-25T22:59:20.539Z","epss":{"score":0.0031,"percentile":0.25701,"date":"2026-12-01T12:00:22.000Z"}}