LiveActive security incident?Get immediate response
CVE Record

CVE-2025-1391: Keycloak-services: improper authorization in keycloak organization mapper allows unauthorized organization claims

A flaw was found in the Keycloak organization feature, which allows the incorrect assignment of an organization to a user if their username or email matches the organization’s domain pattern. This issue occurs at the mapper level, leading to misrepresentation in tokens. If an application relies on these claims for authorization, it may incorrectly assume a user belongs to an organization they are not a member of, potentially granting unauthorized access or privileges.

MediumCVSS 5.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2025-1391 can cause Keycloak tokens to claim a user belongs to an organization when they do not. The mismatch happens when a username or email matches an organization domain pattern. Business risk depends on whether downstream applications trust those organization claims for access decisions.

Executive priority

Treat this as a targeted identity authorization risk, not a broad system compromise. Prioritize environments where Keycloak organization claims grant customer, tenant, or administrative access.

Technical view

The flaw is an improper authorization issue in the Keycloak organization mapper. It may assign organization claims based on username or email domain pattern matching rather than actual membership, causing token misrepresentation. CVSS is 5.4 with low attack complexity, required user privileges, no user interaction, and limited confidentiality and integrity impact.

Likely exposure

Exposure is most likely in Red Hat Build of Keycloak 26.0 or keycloak-services 26.0 deployments using the organization feature, especially where applications authorize access based on organization claims in tokens.

Exploitation context

The source bundle does not show known active exploitation, and KEV is false. Exploitation would require an authenticated user and an environment where organization claims influence authorization decisions.

Researcher notes

Key details needing confirmation from vendor material include exact fixed versions and mapper behavior after remediation. Focus analysis on token claim generation, organization membership checks, and downstream authorization dependence.

Mitigation direction

  • Apply Red Hat guidance from RHSA-2025:2544 and RHSA-2025:2545 where applicable.
  • Inventory Keycloak 26.0 and Red Hat Build of Keycloak 26.0 deployments.
  • Review organization mapper configurations and domain pattern rules.
  • Ensure applications do not trust organization claims without membership verification.
  • Check vendor advisories for fixed builds and upgrade instructions.

Validation and detection

  • Confirm whether the organization feature is enabled in affected deployments.
  • Identify applications that authorize users based on organization token claims.
  • Compare installed packages against the affected versions in the source bundle.
  • Verify tokens only include organizations backed by explicit membership.
  • Review access logs for organization-based privileges granted to non-members.
Prepared
Confidence
medium
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-284: Authorization and privilege behavior lookup

Authorization weaknesses can support privilege escalation and valid-account review, depending on exploit path. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-1391 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.4 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
5Timeline events
1ADP providers
7Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.4CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N2.82.5redhat

Vulnerability scoring details

Base CVSS 3.1 score

5.4Medium
CVSS 3.1 vector shape for CVE-2025-1391Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. Source timelineredhat

    Made public.

  2. Source timelineredhat

    Reported to Red Hat.

  3. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  4. CVE publishedCVE Program

    The CVE record was published.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Unknown vendorkeycloak-serviceskeycloak-services, 26.0.0unaffected
Red HatRed Hat Build of Keycloakkeycloak-servicesunaffected
Red HatRed Hat build of Keycloak 26.0rhbk/keycloak-operator-bundle, 26.0.10-3affected
Red HatRed Hat build of Keycloak 26.0rhbk/keycloak-rhel9, 26.0-11affected
Red HatRed Hat build of Keycloak 26.0rhbk/keycloak-rhel9-operator, 26.0-12affected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-284 · source CWE mapping

Improper Access Control

Improper Access Control represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.