{"schemaVersion":3,"id":"CVE-2026-9704","aliases":["CGA-46f4-mwrp-xmwf","CGA-6qcw-5vj7-v45f","CGA-7r82-22hj-rgp2","CGA-f5p3-jwqp-q9w6","CGA-fqqx-472x-p8xh","CGA-gp5g-m4xp-6jrw","CGA-j6p7-35rp-rxfm","CGA-j9gv-g5qx-h76h","CGA-jv9r-wm5g-388c","CGA-m3rm-vjjh-9494","CGA-m7qg-rcx7-8rpf","CGA-qpvc-vmwq-gg98","CGA-w226-j5mg-m6w5","CGA-w96v-mpq8-rh7p","CGA-wpgh-6vhm-g9hf","CGA-xh59-3ggg-7pf5","CGA-32r4-5233-qrmm","CGA-35xh-wv85-vvcm","CGA-3hph-mcp4-pmhh","CGA-3r5x-jx8p-hrj6","CGA-47w8-8gvh-p9f9","CGA-5h52-www5-7q86","CGA-65wx-42w4-rcxr","CGA-7pw7-cjq9-4qcf","CGA-82wf-px3m-wh2v","CGA-84x6-qjhj-gm4m","CGA-88gq-qmjq-5fp3","CGA-9f62-6937-hmxf","CGA-9mjw-4mfg-mhvp","CGA-9q7j-q56h-r9g8","CGA-crxp-796v-55jc","CGA-cwg4-hxxm-5f45","CGA-f543-2fq5-2j45","CGA-fp6h-qpwp-wxc8","CGA-fpgg-9w7r-p3hp","CGA-ghfc-q5p5-322q","CGA-jfjf-mfvg-phg6","CGA-m4vq-gmw3-345j","CGA-ppq4-c77q-5357","GHSA-rr5q-3xwr-f323","CGA-q268-vfg3-2gj6","CGA-q5ch-qxhp-q22g","CGA-qg4f-fwvr-88mm","CGA-rgcx-4q3v-3r39","CGA-vhrw-7966-6m46","CGA-w9j2-5hgg-3ghx","CGA-w9p9-j9jh-7x37","CGA-x5rg-hfm4-jppr","CGA-xg4g-3hgm-p8g7"],"status":"published","duplicateOf":null,"title":null,"description":"A flaw was found in Keycloak. An authenticated user with low privileges can exploit this vulnerability by sending an oversized subject_token JSON Web Token (JWT) to the TokenEndpoint. When the token exceeds a 4000-character limit, it is silently dropped, causing the system to fall back to client credentials. This allows the user to gain the permissions of the client's service account, leading to privilege escalation.","dates":{"published":"2026-05-27T12:56:00.858Z","modified":"2026-06-26T06:46:25.912Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":4.1,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":4.1,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":4.1,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00587,"percentile":0.4702,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.267,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0032},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00587,"percentile":0.4702}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00587,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00587,"percentile":0.4702}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-1284","name":"Improper Validation of Specified Quantity in Input","description":"The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1284.html"}],"affected":[{"vendor":"chainguard","product":"keycloak-26.4","name":"keycloak-26.4","label":"keycloak-26.4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-26.4","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-26.4-iamguarded-compat","name":"keycloak-26.4-iamguarded-compat","label":"keycloak-26.4-iamguarded-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-26.4-iamguarded-compat","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-26.5","name":"keycloak-26.5","label":"keycloak-26.5","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-26.5","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-26.5-iamguarded-compat","name":"keycloak-26.5-iamguarded-compat","label":"keycloak-26.5-iamguarded-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-26.5-iamguarded-compat","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-fips-26.4","name":"keycloak-fips-26.4","label":"keycloak-fips-26.4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-fips-26.4","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-fips-26.4-iamguarded-fips","name":"keycloak-fips-26.4-iamguarded-fips","label":"keycloak-fips-26.4-iamguarded-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-fips-26.4-iamguarded-fips","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-fips-26.5","name":"keycloak-fips-26.5","label":"keycloak-fips-26.5","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-fips-26.5","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-fips-26.5-iamguarded-fips","name":"keycloak-fips-26.5-iamguarded-fips","label":"keycloak-fips-26.5-iamguarded-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-fips-26.5-iamguarded-fips","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"request-9047-keycloak-fips-26.4","name":"request-9047-keycloak-fips-26.4","label":"request-9047-keycloak-fips-26.4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/request-9047-keycloak-fips-26.4","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"request-9047-keycloak-fips-26.4-iamguarded-fips","name":"request-9047-keycloak-fips-26.4-iamguarded-fips","label":"request-9047-keycloak-fips-26.4-iamguarded-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/request-9047-keycloak-fips-26.4-iamguarded-fips","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"request-9047-keycloak-fips-26.5","name":"request-9047-keycloak-fips-26.5","label":"request-9047-keycloak-fips-26.5","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/request-9047-keycloak-fips-26.5","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"request-9047-keycloak-fips-26.5-iamguarded-fips","name":"request-9047-keycloak-fips-26.5-iamguarded-fips","label":"request-9047-keycloak-fips-26.5-iamguarded-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/request-9047-keycloak-fips-26.5-iamguarded-fips","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"keycloak-26.4","name":"keycloak-26.4","label":"keycloak-26.4","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/keycloak-26.4","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"keycloak-26.4-iamguarded-compat","name":"keycloak-26.4-iamguarded-compat","label":"keycloak-26.4-iamguarded-compat","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/keycloak-26.4-iamguarded-compat","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"keycloak-26.5","name":"keycloak-26.5","label":"keycloak-26.5","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/keycloak-26.5","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"keycloak-26.5-iamguarded-compat","name":"keycloak-26.5-iamguarded-compat","label":"keycloak-26.5-iamguarded-compat","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/keycloak-26.5-iamguarded-compat","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"org.keycloak","product":"keycloak-server-spi-private","name":"org.keycloak:keycloak-server-spi-private","label":"keycloak-server-spi-private","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.keycloak/keycloak-server-spi-private","purlType":"maven","versions":[{"text":"< 26.6.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 26.6.3","eol":null,"hubHref":null},{"vendor":"org.keycloak","product":"keycloak-services","name":"org.keycloak:keycloak-services","label":"keycloak-services","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.keycloak/keycloak-services","purlType":"maven","versions":[{"text":"< 26.6.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 26.6.3","eol":null,"hubHref":null},{"vendor":"redhat","product":"build_of_keycloak","name":"build of keycloak","label":"build_of_keycloak","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/redhat/build_of_keycloak"}],"affectedCount":19,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:25097","label":"access.redhat.com/errata/RHSA-2026:25097","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2026:25098","label":"access.redhat.com/errata/RHSA-2026:25098","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2026:30049","label":"access.redhat.com/errata/RHSA-2026:30049","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2026:30050","label":"access.redhat.com/errata/RHSA-2026:30050","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-9704","label":"access.redhat.com/security/cve/CVE-2026-9704","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","WEB","Mitigation","Vendor Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2481877","label":"bugzilla.redhat.com/show_bug.cgi?id=2481877","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","WEB","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9704","label":"nvd.nist.gov/vuln/detail/CVE-2026-9704","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/keycloak/keycloak/issues/49435","label":"github.com/keycloak/keycloak/issues/49435","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak/pull/49472","label":"github.com/keycloak/keycloak/pull/49472","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak/commit/f1e5b7776c42938d0782fd5846346b8f75c815e6","label":"github.com/keycloak/keycloak/commit/f1e5b7776c42938d0782fd5846346b8f75c815e6","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak","label":"github.com/keycloak/keycloak","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-05-27T12:56:00.858Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-06-26T06:46:25.912Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T19:57:24.144Z","stale":false,"partial":false}}