{"id":"CVE-2025-4658","aliases":["CVE-2025-4658","GHSA-56wx-66px-9j66","GO-2025-3680"],"related":[],"kind":"vulnerability","state":"published","title":"Authentication Bypass in OPKSSH","summary":"Versions of OpenPubkey library prior to 0.10.0  contained a vulnerability that would allow a specially crafted JWS to bypass signature verification. As OPKSSH depends on the OpenPubkey library for authentication, this vulnerability in OpenPubkey also applies to OPKSSH versions prior to 0.5.0 and would allow an attacker to bypass OPKSSH authentication.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Versions of OpenPubkey library prior to 0.10.0  contained a vulnerability that would allow a specially crafted JWS to bypass signature verification. As OPKSSH depends on the OpenPubkey library for authentication, this vulnerability in OpenPubkey also applies to OPKSSH versions prior to 0.5.0 and would allow an attacker to bypass OPKSSH authentication.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nVersions of OpenPubkey library prior to 0.10.0 contained a vulnerability that would allow a specially crafted JWS to bypass signature verification. As OPKSSH depends on the OpenPubkey library for authentication, this vulnerability in OpenPubkey also applies to OPKSSH versions prior to 0.5.0 and would allow an attacker to bypass OPKSSH authentication.\n\n### Patches\n\nThe vulnerability does not exist in more recent versions of OPKSSH. his only impacts OPKSSH  when used to verify ssh keys on a server, the OPKSSH client is unaffected. To remediate upgrade to a version of OPKSSH v0.5.0 or greater.\n\nTo determine if you are vulnerable run on your server:\n\n```bash\nopkssh --version\n```\n\nIf the version is less than 0.5.0 you should upgrade. To upgrade to the latest version run:\n\n```bash\nwget -qO- \"https://raw.githubusercontent.com/openpubkey/opkssh/main/scripts/install-linux.sh\" | sudo bash\n``` \n\n\n### References\n\n[CVE-2025-4658](https://www.cve.org/CVERecord?id=CVE-2025-4658)\n\nThe upstream vulnerability in OpenPubkey is [CVE-2025-3757](https://www.cve.org/CVERecord?id=CVE-2025-3757) and has the security advisory https://github.com/openpubkey/openpubkey/security/advisories/GHSA-537f-gxgm-3jjq","format":"markdown","source":"ghsa"},{"lang":"en","text":"OPKSSH Vulnerable to Authentication Bypass in github.com/openpubkey/opkssh","format":"markdown","source":"go"},{"lang":"es","text":"Las versiones de la librería OpenPubkey anteriores a la 0.10.0 contenían una vulnerabilidad que permitía a un JWS especialmente manipulado eludir la verificación de firmas. Dado que OPKSSH depende de la librería OpenPubkey para la autenticación, esta vulnerabilidad también afecta a las versiones de OPKSSH anteriores a la 0.5.0 y permitiría a un atacante eludir la autenticación de OPKSSH.","source":"nvd"}],"published":"2025-05-13T16:33:35.195Z","modified":"2026-06-17T09:33:43.513Z","severity":{"scorer":"cloudflare","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"cloudflare","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-305","CWE-347"],"affected":[{"ranges":[{"type":"custom","introduced":"0.1.0","lastAffected":"0.4.0","status":"affected"}],"vendor":"OPKSSH","product":"OPKSSH","repo":"https://github.com/openpubkey/opkssh","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.5.0"}],"ecosystem":"Go","package":"github.com/openpubkey/opkssh","purl":"pkg:golang/github.com/openpubkey/opkssh","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.5.0"}],"ecosystem":"Go","package":"github.com/openpubkey/opkssh","purl":"pkg:golang/github.com/openpubkey/opkssh","source":"go"},{"ranges":[{"status":"affected","fixed":"0.10.0"}],"vendor":"openpubkey","product":"openpubkey","cpe":"cpe:2.3:a:openpubkey:openpubkey:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"0.5.0"}],"vendor":"openpubkey","product":"opkssh","cpe":"cpe:2.3:a:openpubkey:opkssh:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openpubkey/opkssh","tags":["package","product"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openpubkey/opkssh/security/advisories/GHSA-56wx-66px-9j66","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4658","tags":["advisory"],"sources":["ghsa","go"]}],"credits":["Ethan Heilman"],"assigner":"cloudflare","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-05-13T20:09:04.295Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-4658","url":"https://www.cve.org/CVERecord?id=CVE-2025-4658","licence":"CVE Terms of Use","modified":"2025-05-13T20:11:58.123Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-56wx-66px-9j66","url":"https://github.com/advisories/GHSA-56wx-66px-9j66","licence":"CC-BY-4.0","modified":"2025-05-15T20:41:49.515Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3680","url":"https://pkg.go.dev/vuln/GO-2025-3680","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:33.643Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-4658","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4658","licence":"Public domain","modified":"2026-06-17T09:33:43.513Z"}],"updatedAt":"2026-11-25T22:58:58.011Z","epss":{"score":0.00346,"percentile":0.30189,"date":"2026-12-02T12:00:21.000Z"}}