CVE-2025-27509: Github.com/fleetdm/fleet/v4 Fleet Has SAML Authentication Vulnerability Vulnerability

CRITICAL
Advisory Identifier: GHSA-52jx-g6m5-h735
CWE-285 CWE-74
Published
Advisory Summary

CVE-2025-27509 is a CRITICAL fleet has saml authentication vulnerability vulnerability (CWE-285: Improper Authorization) affecting Github.com/fleetdm/fleet/v4 libraries in the Go ecosystem. The issue involves fleet has saml authentication vulnerability due to improper saml response validation. Remediation is available by upgrading affected packages to version 4.64.2, 4.63.2, 4.62.4, 4.58.1, 4.53.2.

CVE-2025-27509 at a Glance

CVE Identifier CVE-2025-27509
GHSA Identifier GHSA-52jx-g6m5-h735
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-285: Improper Authorization
Affected Product Github.com/fleetdm/fleet/v4
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2025-27509

To remediate this vulnerability, upgrade all affected Github.com/fleetdm/fleet/v4 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/fleetdm/fleet/v4 fixed: 4.64.2
Upgrade github.com/fleetdm/fleet/v4 to 4.64.2
github.com/fleetdm/fleet/v4 fixed: 4.63.2
Upgrade github.com/fleetdm/fleet/v4 to 4.63.2
github.com/fleetdm/fleet/v4 fixed: 4.62.4
Upgrade github.com/fleetdm/fleet/v4 to 4.62.4
github.com/fleetdm/fleet/v4 fixed: 4.58.1
Upgrade github.com/fleetdm/fleet/v4 to 4.58.1
github.com/fleetdm/fleet/v4 fixed: 4.53.2
Upgrade github.com/fleetdm/fleet/v4 to 4.53.2
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/fleetdm/fleet/v4

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-27509, inspect your project dependencies for Github.com/fleetdm/fleet/v4:

inspect dependencies for github.com/fleetdm/fleet/v4

Analyze the terminal output to locate any version of Github.com/fleetdm/fleet/v4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.64.2), 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-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Github.com/fleetdm/fleet/v4, 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

### Summary A vulnerability in Fleet’s SAML authentication handling could allow an attacker to forge authentication assertions and gain unauthorized access to Fleet. In certain configurations, this could result in the creation of new user accounts, including administrative accounts. This issue affects Fleet deployments using single sign-on (SSO). ### Impact In vulnerable versions of Fleet, an attacker could craft a specially-formed SAML response to: - Forge authentication assertions, potentially impersonating legitimate users. - If Just-In-Time (JIT) provisioning is enabled, the attacker could provision a new administrative user account. - If MDM enrollment is enabled, certain endpoints could be used to create new accounts tied to forged assertions. This could allow unauthorized access to Fleet, including administrative access, visibility into device data, and modification of configuration. ### Patches This issue is addressed in commit [fc96cc4](https://github.com/fleetdm/fleet/commit/fc96cc4e91047250afb12f65ad70e90b30a7fb1c) and is available in Fleet version 4.64.2. The following backport versions also address this issue: - 4.63.2 - 4.62.4 - 4.58.1 - 4.53.2 ### Workarounds If an immediate upgrade is not possible, Fleet users should temporarily disable [single-sign-on (SSO)](https://fleetdm.com/docs/deploy/single-sign-on-sso) and use password authentication. ### Credit Thank you @hakivvi, as well as Jeffrey Hofmann and Colby Morgan from the Robinhood Red Team for finding and reporting this vulnerability using our [responsible disclosure process](https://github.com/fleetdm/fleet/blob/main/SECURITY.md). ### For more information If you have any questions or comments about this advisory: - Email us at security@fleetdm.com - Join #fleet in [osquery Slack](https://join.slack.com/t/osquery/shared_invite/zt-h29zm0gk-s2DBtGUTW4CFel0f0IjTEw)

CVE-2025-27509 Affected Github.com/fleetdm/fleet/v4 Versions

5 component(s)
Fixed Versions:
4.64.24.63.24.62.44.58.14.53.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/fleetdm/fleet/v4
Go
≥ 4.64.0
< 4.64.2
4.64.2
github.com/fleetdm/fleet/v4
Go
≥ 4.63.0
< 4.63.2
4.63.2
github.com/fleetdm/fleet/v4
Go
≥ 4.62.0
< 4.62.4
4.62.4
github.com/fleetdm/fleet/v4
Go
≥ 4.54.0
< 4.58.1
4.58.1
github.com/fleetdm/fleet/v4
Go
< 4.53.2
4.53.2

References

Frequently Asked Questions

What is CVE-2025-27509?
CVE-2025-27509 is a security vulnerability in Github.com/fleetdm/fleet/v4 involving Fleet has SAML authentication vulnerability due to improper SAML response validation under CWE-285: Improper Authorization.
Which Github.com/fleetdm/fleet/v4 versions are affected?
Affected versions include releases prior to 4.64.2, 4.63.2, 4.62.4, 4.58.1, 4.53.2 across affected packages: github.com/fleetdm/fleet/v4.
What version fixes CVE-2025-27509?
Upgrading to 4.64.2, 4.63.2, 4.62.4, 4.58.1, 4.53.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/fleetdm/fleet/v4 affected?
Yes, github.com/fleetdm/fleet/v4 is affected in releases prior to 4.64.2, 4.63.2, 4.62.4, 4.58.1, 4.53.2. Upgrade your dependency to 4.64.2, 4.63.2, 4.62.4, 4.58.1, 4.53.2 or later.
What CWE is associated with CVE-2025-27509?
CVE-2025-27509 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Go dependencies for CVE-2025-27509?
Run the dependency tree command: 'inspect dependencies for github.com/fleetdm/fleet/v4'. 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-52jx-g6m5-h735",
  "modified" : "2026-01-21T16:51:42Z",
  "published" : "2025-03-06T19:12:27Z",
  "aliases" : [ "CVE-2025-27509" ],
  "summary" : "Fleet has SAML authentication vulnerability due to improper SAML response validation",
  "details" : "### Summary\n\nA vulnerability in Fleet’s SAML authentication handling could allow an attacker to forge authentication assertions and gain unauthorized access to Fleet. In certain configurations, this could result in the creation of new user accounts, including administrative accounts. This issue affects Fleet deployments using single sign-on (SSO).\n\n### Impact\n\nIn vulnerable versions of Fleet, an attacker could craft a specially-formed SAML response to:\n\n- Forge authentication assertions, potentially impersonating legitimate users.\n- If Just-In-Time (JIT) provisioning is enabled, the attacker could provision a new administrative user account.\n- If MDM enrollment is enabled, certain endpoints could be used to create new accounts tied to forged assertions.\n\nThis could allow unauthorized access to Fleet, including administrative access, visibility into device data, and modification of configuration. \n\n### Patches\n\nThis issue is addressed in commit [fc96cc4](https://github.com/fleetdm/fleet/commit/fc96cc4e91047250afb12f65ad70e90b30a7fb1c) and is available in Fleet version 4.64.2.\n\nThe following backport versions also address this issue: \n\n- 4.63.2\n- 4.62.4\n- 4.58.1\n- 4.53.2\n\n### Workarounds\n\nIf an immediate upgrade is not possible, Fleet users should temporarily disable [single-sign-on (SSO)](https://fleetdm.com/docs/deploy/single-sign-on-sso) and use password authentication.\n\n### Credit\n\nThank you @hakivvi, as well as Jeffrey Hofmann and Colby Morgan from the Robinhood Red Team for finding and reporting this vulnerability using our [responsible disclosure process](https://github.com/fleetdm/fleet/blob/main/SECURITY.md).\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Email us at security@fleetdm.com\n- Join #fleet in [osquery Slack](https://join.slack.com/t/osquery/shared_invite/zt-h29zm0gk-s2DBtGUTW4CFel0f0IjTEw)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/fleetdm/fleet/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.64.0"
      }, {
        "fixed" : "4.64.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/fleetdm/fleet/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.63.0"
      }, {
        "fixed" : "4.63.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/fleetdm/fleet/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.62.0"
      }, {
        "fixed" : "4.62.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/fleetdm/fleet/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.54.0"
      }, {
        "fixed" : "4.58.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/fleetdm/fleet/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.53.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/fleetdm/fleet/security/advisories/GHSA-52jx-g6m5-h735"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-27509"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fleetdm/fleet/commit/718c95e47ad010ad6b8ceb3f3460e921fbfc53bb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/fleetdm/fleet"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fleetdm/fleet/releases/tag/fleet-v4.64.2"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3505"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285", "CWE-74" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-06T19:12:27Z",
    "nvd_published_at" : "2025-03-06T19:15:27Z"
  }
}