CVE-2020-8945: Memory corruption or code execution in github.com/proglottis/gpgme
Summary
CVE-2020-8945: Memory corruption or code execution in github.com/proglottis/gpgme. Affects github.com/proglottis/gpgme versions < 0.1.1. Fixed in 0.1.1. How to fix ↓
Also tracked for
- golang-github-proglottis-gpgme · Debian:11
The same CVE-2020-8945 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
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.
No signup required · Results in about 60 seconds
Background
The package github.com/proglottis/gpgme is a Go library that provides bindings for the GPGME (GnuPG Made Easy) library. It allows developers to interact with the GnuPG encryption software in a simplified manner. The package is commonly used for encryption, decryption, signing, and verification of data using GnuPG. However, a vulnerability has been discovered in the package that can lead to memory corruption or possible code execution.
Vulnerability Detail
The vulnerability (CVE-2020-8945) in github.com/proglottis/gpgme is caused by improper setting of finalizers. This can result in memory being freed before it is used, leading to crashes due to memory corruption or potential code execution. An attacker could exploit this vulnerability to execute arbitrary code or cause a denial of service by crashing the application. The impact of this vulnerability depends on how the affected package is used in the application and the privileges it has.
How To Fix
Latest published version: v0.1.6 as of 23 Oct 2026
go get github.com/proglottis/gpgme@v0.1.6
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
0.1.1
This is the first release that contains the fix.
go get github.com/proglottis/gpgme@v0.1.1
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to apply the fix mentioned above.
Conclusion
The vulnerability in github.com/proglottis/gpgme can lead to memory corruption or possible code execution. It is crucial for developers to update their applications to the latest version of the package (0.1.1 or later) to mitigate this vulnerability. Thorough testing should be conducted to ensure the fix is effective. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for github.com/proglottis/gpgme →
FAQ
github.com/proglottis/gpgme is a Go library that provides bindings for the GPGME library, allowing developers to interact with GnuPG for encryption, decryption, signing, and verification of data.
The vulnerability can lead to memory corruption or possible code execution, potentially allowing an attacker to execute arbitrary code or cause a denial of service.
To fix this vulnerability, update the package to version 0.1.1 or later and rebuild your application. Thoroughly test the updated application to ensure the vulnerability has been mitigated.
There is no known workaround for this vulnerability. It is recommended to apply the fix mentioned above.
You can find more information about this vulnerability in the CVE-2020-8945 entry or on the Vulert website.
References
Related vulnerabilities
Recent vulnerabilities recorded for github.com/proglottis/gpgme.