{
  "id": "CVE-2026-7307",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-7307",
  "published_at": "2026-05-19T10:52:24.684Z",
  "title": "Keycloak: keycloak: denial of service via specially crafted saml input",
  "vendor": "Red Hat",
  "product": "Red Hat build of Keycloak 26.2",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "A flaw was found in Keycloak. A remote, unauthenticated attacker can send a specially crafted XML input to the Security Assertion Markup Language (SAML) endpoint. This malicious input can cause high CPU usage and worker thread starvation, leading to a Denial of Service (DoS) where the server becomes unavailable.",
  "cwe": "CWE-1286",
  "cpes": [
    "cpe:2.3:a:redhat:build_of_keycloak:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "",
        "ranges": [
          "\u003c 26.2.16",
          "\u003c 26.4.12",
          "\u003c 26.6.2"
        ],
        "fixed_in": [
          "26.2.16",
          "26.4.12",
          "26.6.2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat build of Keycloak 26.2",
        "ranges": null,
        "fixed_in": [
          "26.2.16-1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat build of Keycloak 26.2",
        "ranges": null,
        "fixed_in": [
          "26.2-21"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat build of Keycloak 26.2",
        "ranges": null,
        "fixed_in": [
          "26.2-21"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat build of Keycloak 26.4",
        "ranges": null,
        "fixed_in": [
          "26.4.12-1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat build of Keycloak 26.4",
        "ranges": null,
        "fixed_in": [
          "26.4-17"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat build of Keycloak 26.4",
        "ranges": null,
        "fixed_in": [
          "26.4-17"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Single Sign-On 7.6 for RHEL 7",
        "ranges": null,
        "fixed_in": [
          "0:18.0.20-1.redhat_00001.1.el7sso"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Single Sign-On 7.6 for RHEL 8",
        "ranges": null,
        "fixed_in": [
          "0:18.0.20-1.redhat_00001.1.el8sso"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Single Sign-On 7.6 for RHEL 9",
        "ranges": null,
        "fixed_in": [
          "0:18.0.20-1.redhat_00001.1.el9sso"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "RHEL-8 based Middleware Containers",
        "ranges": null,
        "fixed_in": [
          "7.6-85"
        ]
      }
    ],
    "upgrade": [
      "Upgrade the affected product to 26.2.16 or 26.4.12 or 26.6.2 or later.",
      "Upgrade Red Hat build of Keycloak 26.2 to 26.2.16-1 or later.",
      "Upgrade Red Hat build of Keycloak 26.2 to 26.2-21 or later.",
      "Upgrade Red Hat build of Keycloak 26.2 to 26.2-21 or later.",
      "Upgrade Red Hat build of Keycloak 26.4 to 26.4.12-1 or later.",
      "Upgrade Red Hat build of Keycloak 26.4 to 26.4-17 or later.",
      "Upgrade Red Hat build of Keycloak 26.4 to 26.4-17 or later.",
      "Upgrade Red Hat Single Sign-On 7.6 for RHEL 7 to 0:18.0.20-1.redhat_00001.1.el7sso or later.",
      "Upgrade Red Hat Single Sign-On 7.6 for RHEL 8 to 0:18.0.20-1.redhat_00001.1.el8sso or later.",
      "Upgrade Red Hat Single Sign-On 7.6 for RHEL 9 to 0:18.0.20-1.redhat_00001.1.el9sso or later.",
      "Upgrade RHEL-8 based Middleware Containers to 7.6-85 or later."
    ],
    "workarounds": [
      "To mitigate this vulnerability, restrict network access to the Keycloak SAML endpoint to trusted networks and clients. Implement firewall rules to limit inbound connections to the Keycloak service port (e.g., 8080) from untrusted sources. If the SAML protocol is not required for your deployment, consider disabling it to eliminate the attack surface. Applying these network restrictions or configuration changes may necessitate a restart or reload of the Keycloak service, which could temporarily affect its availability."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:19594"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:19595"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:19596"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:19597"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:76128"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:76129"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:76130"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:76132"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
