{"id":"CVE-2022-2818","aliases":["CVE-2022-2818","GHSA-8wj3-cpmr-8whp"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Removal of Sensitive Information Before Storage or Transfer in cockpit-hq/cockpit","summary":"Improper Removal of Sensitive Information Before Storage or Transfer in GitHub repository cockpit-hq/cockpit prior to 2.2.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Removal of Sensitive Information Before Storage or Transfer in GitHub repository cockpit-hq/cockpit prior to 2.2.2.","source":"cvelist"},{"lang":"en","text":"Cockpit Content Platform through version 2.2.1 is vulnerable to a two-factor authentication (2FA) bypass. The 2FA secret is disclosed in a JWT token after user logs into their account, allowing an attacker to bypass the 2FA code. A patch is available on the `develop` branch and is expected to be part of version 2.2.2.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una Omisión de Autenticación por Debilidad Primaria en el repositorio de GitHub cockpit-hq/cockpit versiones anteriores a 2.2.2.","source":"nvd"}],"published":"2022-08-15T09:50:24.000Z","modified":"2026-06-17T04:42:38.413Z","severity":{"scorer":"@huntrdev","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"},"severities":[{"scorer":"@huntrdev","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"},{"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:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-212","CWE-287","CWE-305"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"2.2.2","status":"affected"}],"vendor":"cockpit-hq","product":"cockpit-hq/cockpit","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.2"}],"ecosystem":"Packagist","package":"cockpit-hq/cockpit","purl":"pkg:composer/cockpit-hq/cockpit","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.2.2"}],"vendor":"agentejo","product":"cockpit","cpe":"cpe:2.3:a:agentejo:cockpit:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/ee27e5df-516b-4cf4-9f28-346d907b5491","tags":["exploit","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cockpit-hq/cockpit/commit/4bee1b903ee20818f4a8ecb9d974b9536cc54cb4","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2818","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cockpit-hq/cockpit","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-2818","url":"https://www.cve.org/CVERecord?id=CVE-2022-2818","licence":"CVE Terms of Use","modified":"2024-08-03T00:52:58.603Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8wj3-cpmr-8whp","url":"https://github.com/advisories/GHSA-8wj3-cpmr-8whp","licence":"CC-BY-4.0","modified":"2024-02-16T08:04:13.103Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-2818","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2818","licence":"Public domain","modified":"2026-06-17T04:42:38.413Z"}],"updatedAt":"2026-11-25T22:58:14.190Z","epss":{"score":0.01673,"percentile":0.77534,"date":"2026-12-01T12:00:22.000Z"}}