CVE-2025-64708: Goauthentik.io Authentik's Invitation Expiry Is Delayed Vulnerability

MODERATE
Advisory Identifier: GHSA-ch7q-53v8-73pc
CVSS 5.8
CWE-613
Published
Advisory Summary

CVE-2025-64708 is a MODERATE (CVSS 5.8) authentik's invitation expiry is delayed vulnerability (CWE-613: Insufficient Session Expiration) affecting Goauthentik.io libraries in the Go ecosystem. The issue involves authentik's invitation expiry is delayed by at least 5 minutes. Remediation is available by upgrading affected packages to version 0.0.0-20251119135424-6672e6aaa41e.

CVE-2025-64708 at a Glance

CVE Identifier CVE-2025-64708
GHSA Identifier GHSA-ch7q-53v8-73pc
Severity MODERATE
CVSS v3.1 Base Score 5.8
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product Goauthentik.io
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.8

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:C/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 Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-64708

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

goauthentik.io fixed: 0.0.0-20251119135424-6672e6aaa41e
Upgrade goauthentik.io to 0.0.0-20251119135424-6672e6aaa41e
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 goauthentik.io

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-64708, inspect your project dependencies for Goauthentik.io:

inspect dependencies for goauthentik.io

Analyze the terminal output to locate any version of Goauthentik.io in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20251119135424-6672e6aaa41e), 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-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". In Goauthentik.io, 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 In previous authentik versions, invitations were considered valid regardless if they are expired or not, thus relying on background tasks to clean up expired ones. In a normal scenario this can take up to 5 minutes because the cleanup of expired objects is scheduled to run every 5 minutes. However, with a large amount of tasks in the backlog, this might take longer. ### Patches authentik 2025.8.5 and 2025.10.2 fix this issue; for other versions the workaround below can be used. ### Workarounds Users can create a policy that explicitly checks whether the invitation is still valid, and then bind it to the invitation stage on your invitation flow, and deny access if the invitation is not valid. ```python return not context['flow_plan'].context['invitation'].is_expired ``` ### For more information If users have any questions or comments about this advisory: - Email the authentik team at [security@goauthentik.io](mailto:security@goauthentik.io).

CVE-2025-64708 Affected Goauthentik.io Versions

1 component(s)
Fixed Versions:
0.0.0-20251119135424-6672e6aaa41e
Product / Package Ecosystem Affected Versions Fixed Version
goauthentik.io
Go
< 0.0.0-20251119135424-6672e6aaa41e
0.0.0-20251119135424-6672e6aaa41e

References

Frequently Asked Questions

What is CVE-2025-64708?
CVE-2025-64708 is a security vulnerability in Goauthentik.io involving authentik's invitation expiry is delayed by at least 5 minutes under CWE-613: Insufficient Session Expiration.
Which Goauthentik.io versions are affected?
Affected versions include releases prior to 0.0.0-20251119135424-6672e6aaa41e across affected packages: goauthentik.io.
What version fixes CVE-2025-64708?
Upgrading to 0.0.0-20251119135424-6672e6aaa41e (or the latest patched release for your respective branch) resolves the vulnerability.
Is goauthentik.io affected?
Yes, goauthentik.io is affected in releases prior to 0.0.0-20251119135424-6672e6aaa41e. Upgrade your dependency to 0.0.0-20251119135424-6672e6aaa41e or later.
What is the CVSS score of CVE-2025-64708?
CVE-2025-64708 has a CVSS v3.1 base score of 5.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2025-64708?
CVE-2025-64708 is classified under CWE-613: Insufficient Session Expiration (According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.").
How can I check Go dependencies for CVE-2025-64708?
Run the dependency tree command: 'inspect dependencies for goauthentik.io'. 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-ch7q-53v8-73pc",
  "modified" : "2025-11-19T18:47:08Z",
  "published" : "2025-11-19T18:47:07Z",
  "aliases" : [ "CVE-2025-64708" ],
  "summary" : "authentik's invitation expiry is delayed by at least 5 minutes",
  "details" : "### Summary\n\nIn previous authentik versions, invitations were considered valid regardless if they are expired or not, thus relying on background tasks to clean up expired ones. In a normal scenario this can take up to 5 minutes because the cleanup of expired objects is scheduled to run every 5 minutes. However, with a large amount of tasks in the backlog, this might take longer.\n\n### Patches\n\nauthentik 2025.8.5 and 2025.10.2 fix this issue; for other versions the workaround below can be used.\n\n### Workarounds\n\nUsers can create a policy that explicitly checks whether the invitation is still valid, and then bind it to the invitation stage on your invitation flow, and deny access if the invitation is not valid.\n\n```python\nreturn not context['flow_plan'].context['invitation'].is_expired\n```\n\n### For more information\n\nIf users have any questions or comments about this advisory:\n\n- Email the authentik team at [security@goauthentik.io](mailto:security@goauthentik.io).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "goauthentik.io"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20251119135424-6672e6aaa41e"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/goauthentik/authentik/security/advisories/GHSA-ch7q-53v8-73pc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64708"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/goauthentik/authentik/commit/6672e6aaa41e0f2c9bfb1e4d8b51cf114969e830"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/goauthentik/authentik"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-613" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-19T18:47:07Z",
    "nvd_published_at" : "2025-11-19T17:15:52Z"
  }
}