{"id":"ALPINE-CVE-2021-33560","details":"Libgcrypt before 1.8.8 and 1.9.x before 1.9.3 mishandles ElGamal encryption because it lacks exponent blinding to address a side-channel attack against mpi_powm, and the window size is not chosen appropriately. This, for example, affects use of ElGamal in OpenPGP.","modified":"2025-12-03T22:46:30.412763Z","published":"2021-06-08T11:15:07.767Z","upstream":["CVE-2021-33560"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-33560"}],"affected":[{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.11","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.8-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}},{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.8-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}},{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.8-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0","1.8.6-r0","1.8.7-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}},{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.4-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0","1.8.6-r0","1.8.7-r0","1.9.1-r0","1.9.1-r1","1.9.2-r0","1.9.3-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}},{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.4-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0","1.8.6-r0","1.8.7-r0","1.9.1-r0","1.9.1-r1","1.9.2-r0","1.9.3-r0","1.9.3-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}},{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.4-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0","1.8.6-r0","1.8.7-r0","1.9.1-r0","1.9.1-r1","1.9.2-r0","1.9.3-r0","1.9.3-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}},{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.4-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0","1.8.6-r0","1.8.7-r0","1.9.1-r0","1.9.1-r1","1.9.2-r0","1.9.3-r0","1.9.3-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}},{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.4-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0","1.8.6-r0","1.8.7-r0","1.9.1-r0","1.9.1-r1","1.9.2-r0","1.9.3-r0","1.9.3-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}},{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.4-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0","1.8.6-r0","1.8.7-r0","1.9.1-r0","1.9.1-r1","1.9.2-r0","1.9.3-r0","1.9.3-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}},{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.4-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0","1.8.6-r0","1.8.7-r0","1.9.1-r0","1.9.1-r1","1.9.2-r0","1.9.3-r0","1.9.3-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}},{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.4-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0","1.8.6-r0","1.8.7-r0","1.9.1-r0","1.9.1-r1","1.9.2-r0","1.9.3-r0","1.9.3-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}},{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.4-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0","1.8.6-r0","1.8.7-r0","1.9.1-r0","1.9.1-r1","1.9.2-r0","1.9.3-r0","1.9.3-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}},{"package":{"name":"libgcrypt","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/libgcrypt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.4-r0"}]}],"versions":["1.4.3-r0","1.4.4-r0","1.4.4-r1","1.4.5-r0","1.4.5-r1","1.4.5-r2","1.4.6-r0","1.4.6-r1","1.4.6-r2","1.5.0-r0","1.5.1-r0","1.5.2-r0","1.5.3-r0","1.6.0-r0","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.7.6-r0","1.7.7-r0","1.7.8-r0","1.8.0-r0","1.8.0-r1","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.8.4-r2","1.8.5-r0","1.8.6-r0","1.8.7-r0","1.9.1-r0","1.9.1-r1","1.9.2-r0","1.9.3-r0","1.9.3-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-33560.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}