CVE-2026-25227

authentik affected by Remote Code Execution via Context Key Injection in PropertyMapping Test Endpoint

Published Feb 12, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
authentik is an open-source identity provider. From 2021.3.1 to before 2025.8.6, 2025.10.4, and 2025.12.4, when using delegated permissions, a User that has the permission Can view * Property Mapping or Can view Expression Policy is able to execute arbitrary code within the authentik server container through the test endpoint, which is intended to preview how a property mapping/policy works. authentik 2025.8.6, 2025.10.4, and 2025.12.4 fix this issue.

Analysis

AI-generated

Technical impact

The flaw is a context key injection in the PropertyMapping test endpoint of authentik. A user with delegated permissions to view property mapping or expression policy can supply arbitrary Python code through the context key, which the server evaluates during the preview. This results in remote code execution inside the authentik container, providing the attacker full control over the service process.

Affected Systems

The affected vendor is goauthentik:authentik. Versions from 2021.3.1 up through those just before 2025.8.6, 2025.10.4, and 2025.12.4 contain the vulnerability. The releases 2025.8.6, 2025.10.4, and 2025.12.4 include the fix and are not affected.

Risk and Exploitability

The CVSS score of 9.1 marks this as a very high impact flaw, but the EPSS score of less than 1% indicates a low current exploitation probability. It is not listed in the CISA KEV catalog. An attacker requires authenticated access with the specific view permissions, so the attack vector is likely internal or authenticated remote; the flaw does not allow unauthenticated network exploitation. Once the test endpoint is invoked by a privileged user, the injected code runs with the privileges of the authentik process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade goauthentik:authentik to version 2025.8.6 or later, which includes the patch for the context key injection.
  • If an upgrade is not immediately possible, revoke the "Can view * Property Mapping" or "Can view Expression Policy" permissions from all users or limit delegation to trusted accounts.
  • Conduct a review and audit of delegated permissions to ensure only necessary users retain these view rights, thereby reducing the attack surface.

Generated by OpenCVE AI on April 18, 2026 at 12:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:goauthentik:authentik:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Goauthentik
Goauthentik authentik
Vendors & Products Goauthentik
Goauthentik authentik
Type Values Removed Values Added
Description authentik is an open-source identity provider. From 2021.3.1 to before 2025.8.6, 2025.10.4, and 2025.12.4, when using delegated permissions, a User that has the permission Can view * Property Mapping or Can view Expression Policy is able to execute arbitrary code within the authentik server container through the test endpoint, which is intended to preview how a property mapping/policy works. authentik 2025.8.6, 2025.10.4, and 2025.12.4 fix this issue.
Title authentik affected by Remote Code Execution via Context Key Injection in PropertyMapping Test Endpoint
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 17, 2026, 3:43 PM
Reserved
Jan 30, 2026, 2:44 PM
Status
Analyzed
Published
Feb 12, 2026, 8:16 PM
Modified
Jun 17, 2026, 10:24 AM