Moderate: libgcrypt security update

libgcrypt Updated 02 Oct 2025

Summary

30/06/2022
N/A
Yes i
Unrated
Not published

ALSA-2022:5311: Moderate: libgcrypt security update. Affects libgcrypt versions < 1.8.5-7.el8_6. Fixed in 1.8.5-7.el8_6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The libgcrypt library is a general-purpose cryptographic library that provides implementations of various cryptographic algorithms. It is commonly used in software applications to handle encryption, decryption, and other cryptographic operations. The library is designed to be secure and reliable, but like any software, it can have vulnerabilities that may be exploited by attackers.

Vulnerability Detail

The vulnerability in libgcrypt, identified as CVE-2021-40528, is related to the ElGamal implementation. ElGamal is a public-key cryptosystem used for encryption and digital signatures. The vulnerability allows an attacker to recover plaintext from encrypted data, potentially compromising the confidentiality of sensitive information. The impact of this vulnerability can vary depending on how libgcrypt is used in different software applications. It is important to update to the fixed version to mitigate the risk of exploitation.

How To Fix

Minimum fixed version

1.8.5-7.el8_6

This is the first release that contains the fix.

sudo dnf update libgcrypt

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended solution is to apply the security update as mentioned in the 'how_to_fix' section.

Conclusion

The libgcrypt security update addresses a vulnerability in the ElGamal implementation that could allow plaintext recovery. It is crucial to update the libgcrypt package to the fixed version to mitigate the risk of exploitation. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for libgcrypt →

Share this vulnerability

FAQ

Libgcrypt is a general-purpose cryptographic library that provides implementations of various cryptographic algorithms. It is commonly used in software applications for encryption, decryption, and other cryptographic operations.

The vulnerability allows an attacker to recover plaintext from encrypted data, potentially compromising the confidentiality of sensitive information.

To fix the vulnerability, it is recommended to update the libgcrypt package to version 1.8.5-7.el8_6 or later.

The security update can be obtained from the official AlmaLinux repositories or through package management tools like yum or dnf.

There is no specific workaround mentioned for this vulnerability. The recommended solution is to apply the security update.

Related vulnerabilities

Recent vulnerabilities recorded for libgcrypt.

How To Fix

Minimum fixed version

1.8.5-7.el8_6

This is the first release that contains the fix.

sudo dnf update libgcrypt

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback