---
id: CVE-2025-3501
title: A flaw was found in Keycloak
summary: >-
  A flaw was found in Keycloak. By setting a verification policy to 'ALL', the
  trust store certificate verification is skipped, which is unintended.
severity: high
cvss: 8.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N'
cwe:
  - CWE-297
vendor: Red Hat
product: keycloak
affected:
  - keycloak >= 25.0.0 < 25.*
  - keycloak >= 26.0.0 < 26.0.11
  - keycloak >= 26.2.0 < 26.2.2
  - keycloak
  - build_of_keycloak_26
  - rhbk/keycloak-operator-bundle (all versions)
  - rhbk/keycloak-rhel9 (all versions)
  - rhbk/keycloak-rhel9-operator (all versions)
  - rhbk/keycloak-operator-bundle (all versions)
  - rhbk/keycloak-rhel9 (all versions)
  - rhbk/keycloak-rhel9-operator (all versions)
  - rh-sso7-keycloak
published: '2025-04-29'
updated: '2026-09-21'
sourceUpdated: '2026-09-21T06:17:00.330'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-3501'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2025:4335'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:4336'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:8672'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:8690'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2025-3501'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2358834'
    label: secalert@redhat.com
  - url: 'https://github.com/keycloak/keycloak/issues/39350'
    label: secalert@redhat.com
  - url: 'https://github.com/keycloak/keycloak/pull/39366'
    label: secalert@redhat.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-3501.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2025-3501'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-3501'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2025-04-30T15:54:12.219389Z'
epss: 0.00439
epssPercentile: 0.37598
ingestedAt: '2026-09-21T06:32:37.143Z'
patched:
  - build_of_keycloak 26.0
  - build_of_keycloak 26.2
  - build_of_keycloak
  - build_of_keycloak 26
---

## Overview

A flaw was found in Keycloak. By setting a verification policy to 'ALL', the trust store certificate verification is skipped, which is unintended.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **RHSA-2025:4335** · Red Hat · fixed in: Red Hat build of Keycloak 26.0 · released 2025-04-29 · [advisory](https://access.redhat.com/errata/RHSA-2025:4335)
- **RHSA-2025:8672** · Red Hat · fixed in: Red Hat build of Keycloak 26.2 · released 2025-06-09 · [advisory](https://access.redhat.com/errata/RHSA-2025:8672)
- **RHSA-2025:4336** · Red Hat · fixed in: Red Hat Build of Keycloak · released 2025-04-29 · [advisory](https://access.redhat.com/errata/RHSA-2025:4336)
- **RHSA-2025:8690** · Red Hat · fixed in: Red Hat build of Keycloak 26 · released 2025-06-09 · [advisory](https://access.redhat.com/errata/RHSA-2025:8690)
