CVE-2024-29296: Github.com/portainer/portainer Portainer CE Allows Username Enumeration Vulnerability

MODERATE
Advisory Identifier: GHSA-87x6-8m9v-g8c2
CVSS 5.3
CWE-286
Published
Advisory Summary

CVE-2024-29296 is a MODERATE (CVSS 5.3) portainer ce allows username enumeration vulnerability (CWE-286: Incorrect User Management) affecting Github.com/portainer/portainer libraries in the Go ecosystem. The issue involves portainer ce allows username enumeration through authentication response timing. Remediation is available by upgrading affected packages to version 0.6.1-0.20240417040827-48bc7d0d92f0.

CVE-2024-29296 at a Glance

CVE Identifier CVE-2024-29296
GHSA Identifier GHSA-87x6-8m9v-g8c2
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-286: Incorrect User Management
Affected Product Github.com/portainer/portainer
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-29296

To remediate this vulnerability, upgrade all affected Github.com/portainer/portainer dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/portainer/portainer fixed: 0.6.1-0.20240417040827-48bc7d0d92f0
Upgrade github.com/portainer/portainer to 0.6.1-0.20240417040827-48bc7d0d92f0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/portainer/portainer

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-29296, inspect your project dependencies for Github.com/portainer/portainer:

inspect dependencies for github.com/portainer/portainer

Analyze the terminal output to locate any version of Github.com/portainer/portainer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.1-0.20240417040827-48bc7d0d92f0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-286: Incorrect User Management, where the product does not properly manage a user within its environment. In Github.com/portainer/portainer, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A user enumeration vulnerability was found in Portainer CE 2.19.4. This issue occurs during user authentication process, where a difference in response time could allow a remote unauthenticated user to determine if a username is valid or not.

CVE-2024-29296 Affected Github.com/portainer/portainer Versions

1 component(s)
Fixed Versions:
0.6.1-0.20240417040827-48bc7d0d92f0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/portainer/portainer
Go
< 0.6.1-0.20240417040827-48bc7d0d92f0
0.6.1-0.20240417040827-48bc7d0d92f0

References

Frequently Asked Questions

What is CVE-2024-29296?
CVE-2024-29296 is a security vulnerability in Github.com/portainer/portainer involving Portainer CE allows username enumeration through authentication response timing under CWE-286: Incorrect User Management.
Which Github.com/portainer/portainer versions are affected?
Affected versions include releases prior to 0.6.1-0.20240417040827-48bc7d0d92f0 across affected packages: github.com/portainer/portainer.
What version fixes CVE-2024-29296?
Upgrading to 0.6.1-0.20240417040827-48bc7d0d92f0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/portainer/portainer affected?
Yes, github.com/portainer/portainer is affected in releases prior to 0.6.1-0.20240417040827-48bc7d0d92f0. Upgrade your dependency to 0.6.1-0.20240417040827-48bc7d0d92f0 or later.
What is the CVSS score of CVE-2024-29296?
CVE-2024-29296 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-29296?
CVE-2024-29296 is classified under CWE-286: Incorrect User Management (The product does not properly manage a user within its environment.).
How can I check Go dependencies for CVE-2024-29296?
Run the dependency tree command: 'inspect dependencies for github.com/portainer/portainer'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-87x6-8m9v-g8c2",
  "modified" : "2026-09-30T23:23:52Z",
  "published" : "2024-04-10T15:30:40Z",
  "aliases" : [ "CVE-2024-29296" ],
  "summary" : "Portainer CE allows username enumeration through authentication response timing",
  "details" : "A user enumeration vulnerability was found in Portainer CE 2.19.4. This issue occurs during user authentication process, where a difference in response time could allow a remote unauthenticated user to determine if a username is valid or not.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/portainer/portainer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.1-0.20240417040827-48bc7d0d92f0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29296"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/portainer/portainer/issues/11736"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/portainer/portainer/pull/11589"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/portainer/portainer/commit/48bc7d0d92f038e04a72c1e0585bc325eb63a9e6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ThaySolis/CVE-2024-29296"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/portainer/portainer"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/portainer/portainer/releases/tag/2.19.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/portainer/portainer/releases/tag/2.20.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-286" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-30T23:23:52Z",
    "nvd_published_at" : "2024-04-10T15:16:05Z"
  }
}