CVE-2020-8945: Use After Free in GPGME Go Wrapper

github.com/proglottis/gpgme Updated 02 Oct 2025

Summary

14/04/2021
Yes i
High
7.5

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

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.

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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The GPGME Go wrapper is a package that provides bindings for the GPGME library in the Go programming language. GPGME is a library that allows applications to interact with the GNU Privacy Guard (GnuPG) cryptographic software. It provides functions for encryption, decryption, signing, and verification of data using GnuPG. The GPGME Go wrapper enables developers to utilize GPGME functionality in their Go applications. However, versions before 0.1.1 of the proglottis Go wrapper for GPGME are vulnerable to a use-after-free issue.

Vulnerability Detail

The vulnerability in the proglottis Go wrapper for GPGME arises from a use-after-free bug. This bug occurs when the wrapper attempts to use memory that has already been freed. The vulnerability can be triggered during GPG signature verification, specifically when the wrapper is used for container image pulls by Docker or CRI-O. Exploiting this vulnerability can lead to a crash or potential code execution. The severity of this vulnerability is rated as HIGH with a CVSS score of 7.5.

How To Fix

Minimum fixed version

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 crucial to update to the fixed version of the proglottis Go wrapper to mitigate the risk of exploitation.

Conclusion

The proglottis Go wrapper for GPGME versions before 0.1.1 is vulnerable to a use-after-free issue that can result in a crash or potential code execution. To mitigate this vulnerability, it is crucial to update to version 0.1.1 or later of the wrapper. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/proglottis/gpgme →

Share this vulnerability

FAQ

GPGME is a library that allows applications to interact with the GNU Privacy Guard (GnuPG) cryptographic software. It provides functions for encryption, decryption, signing, and verification of data using GnuPG.

The proglottis Go wrapper is a package that provides bindings for the GPGME library in the Go programming language. It enables developers to utilize GPGME functionality in their Go applications.

A use-after-free vulnerability occurs when a program attempts to use memory that has already been freed. This can lead to crashes, unexpected behavior, or potential code execution.

This vulnerability can be exploited during GPG signature verification, specifically when the proglottis Go wrapper is used for container image pulls by Docker or CRI-O.

This vulnerability is rated as HIGH with a CVSS score of 7.5.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/proglottis/gpgme.

How To Fix

Minimum fixed version

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 →

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