# GO-2020-0031 - Due to improper setting of finalizers, memory passed to C may be freed before it is used, leading to…

Source: https://junglewise.ai/threats/go-2020-0031-due-to-improper-setting-of-finalizers-memory-passed-to-c-46b54f44  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-04-14  
License: CC BY 4.0 with a link back

Severity: info · Published 2021-04-14

Due to improper setting of finalizers, memory passed to C may be freed before it is used,
leading to crashes due to memory corruption or possible code execution.

Technologies: [github.com/proglottis/gpgme (Go)](https://junglewise.ai/threats/technologies/github-com-proglottis-gpgme). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 14 April 2021.

**Which products and versions are affected?** github.com/proglottis/gpgme (Go) SEMVER:introduced=0,fixed=0.1.1.

**Is there a fix for This vulnerability?** Yes. github.com/proglottis/gpgme (Go): upgrade to 0.1.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run github.com/proglottis/gpgme (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/proglottis/gpgme (Go): upgrade to 0.1.1 or later

  ```sh
  go get github.com/proglottis/gpgme@v0.1.1
  ```


## Affected products

- github.com/proglottis/gpgme (Go) SEMVER:introduced=0,fixed=0.1.1

## Related threats

- [GO-2020-0002 - The Data, Context, or Key finalizers might run during or before GPGME operations. This will release the…](https://junglewise.ai/threats/go-2020-0002-the-data-context-or-key-finalizers-might-run-during-or-6a9e4f63)
- [GO-2021-0096 - Memory corruption or code execution in github.com/proglottis/gpgme](https://junglewise.ai/threats/cve-2020-8945-gpgme-go-wrapper-contains-use-after-free)
