{"id":"UBUNTU-CVE-2021-3798","details":"A flaw was found in openCryptoki. The openCryptoki Soft token does not check if an EC key is valid when an EC key is created via C_CreateObject, nor when C_DeriveKey is used with ECDH public data. This may allow a malicious user to extract the private key by performing an invalid curve attack.","modified":"2026-09-01T21:00:06.355164431Z","published":"2022-08-23T16:15:00Z","upstream":["CVE-2021-3798"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-3798"},{"type":"REPORT","url":"https://bugs.launchpad.net/ubuntu/+source/opencryptoki/+bug/1928780"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-3798"}],"affected":[{"package":{"name":"opencryptoki","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/opencryptoki?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.1+dfsg-3ubuntu5","3.4.1+dfsg-1ubuntu1","3.4.1+dfsg-1ubuntu2","3.4.1+dfsg-1ubuntu3","3.4.1+dfsg-1ubuntu4","3.4.1+dfsg-1ubuntu4.1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.4.1+dfsg-1ubuntu4.1","binary_name":"libopencryptoki0"},{"binary_version":"3.4.1+dfsg-1ubuntu4.1","binary_name":"opencryptoki"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3798.json"}},{"package":{"name":"opencryptoki","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/opencryptoki?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.7.0+dfsg-4","3.8.1+dfsg-2","3.8.1+dfsg-3","3.8.2+dfsg-0ubuntu1","3.9.0+dfsg-0ubuntu1","3.9.0+dfsg-0ubuntu1.1","3.9.0+dfsg-0ubuntu1.2","3.9.0+dfsg-0ubuntu1.3","3.9.0+dfsg-0ubuntu1.4"],"ecosystem_specific":{"binaries":[{"binary_name":"libopencryptoki0","binary_version":"3.9.0+dfsg-0ubuntu1.4"},{"binary_name":"opencryptoki","binary_version":"3.9.0+dfsg-0ubuntu1.4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3798.json"}},{"package":{"name":"opencryptoki","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/opencryptoki?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.11.1+dfsg-0ubuntu2","3.11.1+dfsg-0ubuntu3","3.12.1+dfsg-0ubuntu1","3.13.0+dfsg-0ubuntu4","3.13.0+dfsg-0ubuntu5","3.13.0+dfsg-0ubuntu5.1","3.13.0+dfsg-0ubuntu5.2"],"ecosystem_specific":{"binaries":[{"binary_name":"libopencryptoki0","binary_version":"3.13.0+dfsg-0ubuntu5.2"},{"binary_name":"opencryptoki","binary_version":"3.13.0+dfsg-0ubuntu5.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3798.json"}},{"package":{"name":"opencryptoki","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/opencryptoki?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.16.0+dfsg-0ubuntu1","3.16.0+dfsg-0ubuntu2","3.16.0+dfsg-0ubuntu3","3.17.0+dfsg+20220202.b40982e-0ubuntu1","3.17.0+dfsg+20220202.b40982e-0ubuntu1.1","3.17.0+dfsg+20220202.b40982e-0ubuntu1.2","3.17.0+dfsg+20220202.b40982e-0ubuntu1.3"],"ecosystem_specific":{"binaries":[{"binary_name":"libopencryptoki0","binary_version":"3.17.0+dfsg+20220202.b40982e-0ubuntu1.3"},{"binary_name":"opencryptoki","binary_version":"3.17.0+dfsg+20220202.b40982e-0ubuntu1.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3798.json"}},{"package":{"name":"opencryptoki","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/opencryptoki?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.21.0+dfsg-0ubuntu1","3.21.0+dfsg-0ubuntu2","3.22.0+dfsg-0ubuntu1","3.23.0+dfsg-0ubuntu1","3.23.0+dfsg-0ubuntu2","3.23.0+dfsg-0ubuntu3","3.23.0+dfsg-0ubuntu3.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libopencryptoki0","binary_version":"3.23.0+dfsg-0ubuntu3.1"},{"binary_version":"3.23.0+dfsg-0ubuntu3.1","binary_name":"opencryptoki"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3798.json"}},{"package":{"name":"opencryptoki","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/opencryptoki?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.24.0+git20250128.0462717+dfsg-0ubuntu1","3.25.0+dfsg-0ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libopencryptoki0","binary_version":"3.25.0+dfsg-0ubuntu1"},{"binary_name":"opencryptoki","binary_version":"3.25.0+dfsg-0ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3798.json"}},{"package":{"name":"opencryptoki","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/opencryptoki?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.25.0+dfsg-0ubuntu1","3.26.0+dfsg-0ubuntu1","3.26.0+dfsg-0ubuntu1.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libopencryptoki0","binary_version":"3.26.0+dfsg-0ubuntu1.1"},{"binary_name":"opencryptoki","binary_version":"3.26.0+dfsg-0ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3798.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}