Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak
Noroxi assessment
Priority: Monitor (action score 31/100)
- A ready-made attack module is public (Nuclei); exploiting it takes no special expertise.
- Probability of exploitation in the next 30 days: 2% (FIRST EPSS); higher than 80.6% of all records.
- Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. No user action is required. Special conditions such as timing or configuration are required.
- Fixed version: github.com/keycloak/keycloak keycloak 25.0.5.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to github.com/keycloak/keycloak keycloak 25.0.5 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
A flaw exists in the SAML signature validation method within the Keycloak XMLSignatureUtil class. The method incorrectly determines whether a SAML signature is for the full document or only for specific assertions based on the position of the signature in the XML document, rather than the Reference element used to specify the signed element. This flaw allows attackers to create crafted responses that can bypass the validation, potentially leading to privilege escalation or impersonation attacks.
- Published
- Sep 19, 2024
- Updated
- Aug 4, 2026
- EPSS
- 2.0% · 80th percentile
- CWE
- CWE-347
Report tools
Action score
31
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.7 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 2.0%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · redhat
- 7.7
- NVD has not scored this yet; the score shown is the CNA’s.
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
—
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
github.com/keycloak/keycloak keycloak
- before 25.0.5affected · semver
Red Hat Red Hat Build of Keycloak
- all versionsunknown
- all versionsunknown
- all versionsaffected
Red Hat Red Hat build of Keycloak 22
- 22.0.13-1 and laternot affected · rpm
- 22-18 and laternot affected · rpm
- 22-21 and laternot affected · rpm
Red Hat Red Hat build of Keycloak 24
- 24.0.8-1 and laternot affected · rpm
- 24-17 and laternot affected · rpm
- 24-17 and laternot affected · rpm
Red Hat Red Hat JBoss Enterprise Application Platform 8
- all versionsunknown
- all versionsunknown
Red Hat Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- 0:2.33.0-1.redhat_00015.1.el8eap and laternot affected · rpm
- 1:2.0.0-2.redhat_00005.1.el8eap and laternot affected · rpm
- 0:1.8.0-2.redhat_00001.1.el8eap and laternot affected · rpm
- 0:2.2.0-2.redhat_00001.1.el8eap and laternot affected · rpm
- 0:1.16.1-2.redhat_00007.1.el8eap and laternot affected · rpm
- 0:3.2.2-28.redhat_2.1.el8eap and laternot affected · rpm
- 0:2.15.1-1.redhat_00001.1.el8eap and laternot affected · rpm
- 0:3.14.0-2.redhat_00006.1.el8eap and laternot affected · rpm
- 0:4.0.5-1.redhat_00001.1.el8eap and laternot affected · rpm
- 1:2.0.0-2.redhat_00005.1.el8eap and laternot affected · rpm
Red Hat Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- 0:2.33.0-1.redhat_00015.1.el9eap and laternot affected · rpm
- 1:2.0.0-2.redhat_00005.1.el9eap and laternot affected · rpm
- 0:1.8.0-2.redhat_00001.1.el9eap and laternot affected · rpm
- 0:2.2.0-2.redhat_00001.1.el9eap and laternot affected · rpm
- 0:1.16.1-2.redhat_00007.1.el9eap and laternot affected · rpm
- 0:3.2.2-28.redhat_2.1.el9eap and laternot affected · rpm
- 0:2.15.1-1.redhat_00001.1.el9eap and laternot affected · rpm
- 0:3.14.0-2.redhat_00006.1.el9eap and laternot affected · rpm
- 0:4.0.5-1.redhat_00001.1.el9eap and laternot affected · rpm
- 1:2.0.0-2.redhat_00005.1.el9eap and laternot affected · rpm
Red Hat Red Hat Single Sign-On 7
- all versionsunknown
- all versionsaffected
Red Hat Red Hat Single Sign-On 7.6 for RHEL 7
- 0:18.0.18-1.redhat_00001.1.el7sso and laternot affected · rpm
Red Hat Red Hat Single Sign-On 7.6 for RHEL 8
- 0:18.0.18-1.redhat_00001.1.el8sso and laternot affected · rpm
Red Hat Red Hat Single Sign-On 7.6 for RHEL 9
- 0:18.0.18-1.redhat_00001.1.el9sso and laternot affected · rpm
Red Hat RHEL-8 based Middleware Containers
- 7.6-54 and laternot affected · rpm
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Maven | org.keycloak:keycloak-saml-core | from 23.0.0 · before 24.0.8 | 24.0.8 |
| Maven | org.keycloak:keycloak-saml-core | from 25.0.0 · before 25.0.6 | 25.0.6 |
| Maven | org.keycloak:keycloak-saml-core | before 22.0.13 | 22.0.13 |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-cli | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-commons | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-core-client | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-dto | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-hornetq-protocol | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-hqclient-protocol | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-jakarta-client | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-jakarta-ra | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-jakarta-server | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-jakarta-service-extensions | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-jdbc-store | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-journal | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-native | before 1:2.0.0-2.redhat_00005.1.el8eap | 1:2.0.0-2.redhat_00005.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-selector | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-activemq-artemis-server | before 0:2.33.0-1.redhat_00015.1.el8eap | 0:2.33.0-1.redhat_00015.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-aesh-extensions | before 0:1.8.0-2.redhat_00001.1.el8eap | 0:1.8.0-2.redhat_00001.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-aesh-readline | before 0:2.2.0-2.redhat_00001.1.el8eap | 0:2.2.0-2.redhat_00001.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-apache-commons-codec | before 0:1.16.1-2.redhat_00007.1.el8eap | 0:1.16.1-2.redhat_00007.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-apache-commons-collections | before 0:3.2.2-28.redhat_2.1.el8eap | 0:3.2.2-28.redhat_2.1.el8eap |
| Red Hat:jboss_enterprise_application_platform:8.0::el8 | eap8-apache-commons-io | before 0:2.15.1-1.redhat_00001.1.el8eap | 0:2.15.1-1.redhat_00001.1.el8eap |
+96
Same product
red hat: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-3656Keycloak: unguarded admin rest api endpoints allows low privilege users to use administrative functionalities33Monitor
- CVE-2025-3501Org.keycloak.protocol.services: keycloak hostname verification32Monitor
- CVE-2024-4540Keycloak: exposure of sensitive information in pushed authorization requests (par) kc_restart cookie30Monitor
- CVE-2026-109082Keycloak-services: keycloak-services: ciba confidential-only contract not enforced for public clients27Monitor
- CVE-2026-97846Keycloak-services: keycloak-services: standard token exchange v2 bypasses mtls holder-of-key binding27Monitor
- CVE-2026-96445Keycloak-services: keycloak-services: conditional otp skip-header policy evaluated against untrusted proxy headers27Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| github.com/keycloak/keycloak keycloak | 25.0.5 | Vendor (CNA) |
| Maven:org.keycloak:keycloak-saml-core | 22.0.13 | Package registry (OSV) |
| Maven:org.keycloak:keycloak-saml-core | 24.0.8 | Package registry (OSV) |
| Maven:org.keycloak:keycloak-saml-core | 25.0.6 | Package registry (OSV) |
| red hat:eap8-activemq-artemis | 0:2.33.0-1.redhat_00015.1.el8eap · Red Hat:jboss_enterprise_application_platform:8.0::el8 | Package registry (OSV) |
| red hat:eap8-activemq-artemis-cli | 0:2.33.0-1.redhat_00015.1.el8eap · Red Hat:jboss_enterprise_application_platform:8.0::el8 | Package registry (OSV) |
| red hat:eap8-activemq-artemis-commons | 0:2.33.0-1.redhat_00015.1.el8eap · Red Hat:jboss_enterprise_application_platform:8.0::el8 | Package registry (OSV) |
| red hat:eap8-activemq-artemis-core-client | 0:2.33.0-1.redhat_00015.1.el8eap · Red Hat:jboss_enterprise_application_platform:8.0::el8 | Package registry (OSV) |
| red hat:eap8-activemq-artemis-dto | 0:2.33.0-1.redhat_00015.1.el8eap · Red Hat:jboss_enterprise_application_platform:8.0::el8 | Package registry (OSV) |
| red hat:eap8-activemq-artemis-hornetq-protocol | 0:2.33.0-1.redhat_00015.1.el8eap · Red Hat:jboss_enterprise_application_platform:8.0::el8 | Package registry (OSV) |
| red hat:eap8-activemq-artemis-hqclient-protocol | 0:2.33.0-1.redhat_00015.1.el8eap · Red Hat:jboss_enterprise_application_platform:8.0::el8 | Package registry (OSV) |
| red hat:eap8-activemq-artemis-jakarta-client | 0:2.33.0-1.redhat_00015.1.el8eap · Red Hat:jboss_enterprise_application_platform:8.0::el8 | Package registry (OSV) |
| red hat:eap8-activemq-artemis-jakarta-ra | 0:2.33.0-1.redhat_00015.1.el8eap · Red Hat:jboss_enterprise_application_platform:8.0::el8 | Package registry (OSV) |
| red hat:eap8-activemq-artemis-jakarta-server | 0:2.33.0-1.redhat_00015.1.el8eap · Red Hat:jboss_enterprise_application_platform:8.0::el8 | Package registry (OSV) |
| red hat:rh-sso7-keycloak | 0:18.0.18-1.redhat_00001.1.el7sso · Red Hat:red_hat_single_sign_on:7.6::el7 | Package registry (OSV) |
| red hat:rh-sso7-keycloak-server | 0:18.0.18-1.redhat_00001.1.el7sso · Red Hat:red_hat_single_sign_on:7.6::el7 | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Nuclei detection template ×1
- Proof-of-concept repository on GitHub ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Nuclei detection template | Nuclei template CVE-2024-8698 | — |
| Proof-of-concept repository on GitHub | stars:6 | 2024-10-10 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- First PoC+20 d
- TodayOct 16, 2026+757 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-24-1509 · Sep 20, 2024(Red Hat Keycloak Güvenlik Bildirimi)
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- A low-privileged account is enough.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- low · data or configuration can be modified
- Availability
- low · the service can be disrupted
Impact can extend beyond the vulnerable component (scope changes).
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality impact
- High
- Integrity impact
- Low
- Availability impact
- Low
Weakness class (CWE)
CWE-347 · Improper Verification of Cryptographic SignatureCVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
nvd-secondary
Root cause
The verifier takes the algorithm to verify with from the token’s own header. Untrusted data ends up deciding its own verification rule.
The bug in code
The whole CWE-347 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const claims = jwt.verify(token, publicKey);Fixed
const claims = jwt.verify(token, publicKey, { algorithms: ["RS256"], issuer: "https://id.example.com", audience: "portal",});Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (13 more)Show less
- access.redhat.com/errata/RHSA-2024:6879
- access.redhat.com/errata/RHSA-2024:6880
- access.redhat.com/errata/RHSA-2024:6882
- access.redhat.com/errata/RHSA-2024:6886
- access.redhat.com/errata/RHSA-2024:6887
- access.redhat.com/errata/RHSA-2024:6888
- access.redhat.com/errata/RHSA-2024:6889
- access.redhat.com/errata/RHSA-2024:6890
- access.redhat.com/errata/RHSA-2024:8823
- access.redhat.com/errata/RHSA-2024:8824
- access.redhat.com/errata/RHSA-2024:8826
- access.redhat.com/security/cve/CVE-2024-8698
- bugzilla.redhat.com/show_bug.cgi?id=2311641
Vendor advisories and official records. Exploit/PoC links are deliberately left out.