# CVE-2024-33662: GO-2024-3172 - Portainer improperly uses an encryption algorithm in the AesEncrypt function in github.com/portainer/portainer

Source: https://junglewise.ai/threats/cve-2024-33662-portainer-improperly-uses-an-encryption-algorithm-in-the  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-10-09  
License: CC BY 4.0 with a link back

CVE-2024-33662 · Severity: low · CVSS 3.1 · Published 2024-10-09

Portainer improperly uses an encryption algorithm in the AesEncrypt function in github.com/portainer/portainer

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

## Quick answers

**Is CVE-2024-33662 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-33662 being exploited in the wild.

**How severe is CVE-2024-33662?** Low severity, with a CVSS score of 3.1, published 9 October 2024.

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

**Is there a fix for CVE-2024-33662?** Yes. github.com/portainer/portainer (Go): upgrade to 2.20.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-33662?** Check whether you run github.com/portainer/portainer (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/portainer/portainer (Go): upgrade to 2.20.2 or later

  ```sh
  go get github.com/portainer/portainer@v2.20.2
  ```


## Affected products

- github.com/portainer/portainer (Go) SEMVER:introduced=0, SEMVER:introduced=0,fixed=2.20.2

## Identifiers

- CVE-2024-33662
- GHSA-9mjw-79r6-c9m8
- GO-2024-3172

## Related threats

- [Portainer Community Edition improper authentication in setup endpoints](https://junglewise.ai/threats/cve-2026-55761-portainer-community-edition-improper-authentication-in-setup)
- [Portainer Community Edition directory traversal in backup restore](https://junglewise.ai/threats/cve-2026-44885-portainer-community-edition-directory-traversal-in-backup-restore)
- [Portainer Community Edition missing authorization in custom template endpoint](https://junglewise.ai/threats/cve-2026-44884-portainer-community-edition-missing-authorization-in-custom)
- [Portainer Community Edition sensitive token leakage via URL query parameter](https://junglewise.ai/threats/cve-2026-44883-portainer-community-edition-sensitive-token-leakage-via-url-query)
- [Portainer authorization bypass in Kubernetes middleware](https://junglewise.ai/threats/cve-2026-44882-portainer-authorization-bypass-in-kubernetes-middleware)
