# JLSEC-2026-124: The ElGamal implementation in Libgcrypt before 1.9.4 allows plaintext recovery because, during interaction between two cryptographic librar…

- Severity: Medium 5.9 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-04-17T13:07:52.234Z
- Modified: 2026-07-18T00:01:29.476Z
- Related: CVE-2021-40528

## Description

The ElGamal implementation in Libgcrypt before 1.9.4 allows plaintext recovery because, during interaction between two cryptographic libraries, a certain dangerous combination of the prime defined by the receiver's public key, the generator defined by the receiver's public key, and the sender's ephemeral exponents can lead to a cross-configuration attack against OpenPGP.

(As written by Julia Security Advisories.)

## Affected

- Libgcrypt_jll (Julia): before 1.11.0+0

## Every score

- Julia Security Advisories: CVSS:2.0 `AV:N/AC:H/Au:N/C:P/I:N/A:N`
- Julia Security Advisories: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://eprint.iacr.org/2021/923> (web)
- <https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=3462280f2e23e16adf3ed5176e0f2413d8861320> (web)
- <https://ibm.github.io/system-security-research-updates/2021/07/20/insecurity-elgamal-pt1> (web)
- <https://ibm.github.io/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2> (web)
- <https://security.gentoo.org/glsa/202210-13> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-124](https://osv.dev/vulnerability/JLSEC-2026-124), CC-BY-4.0, modified 2026-07-18

---

Page: https://cve.day/JLSEC-2026-124 · Whole record: https://cve.day/JLSEC-2026-124.json · Rebuilt by cve.day 2026-11-25T22:56:25.912Z
