{"id":"CVE-2026-54894","aliases":["CVE-2026-54894","EEF-CVE-2026-54894","GHSA-xqch-c77q-rgh5"],"related":[],"kind":"vulnerability","state":"published","title":"Atom-table exhaustion denial of service in Guardian via unbounded atom creation from binary keys","summary":"Allocation of Resources Without Limits or Throttling in ueberauth guardian allows denial of service via unbounded atom creation from attacker-influenced binary input.\n\nGuardian.Plug.Keys derives connection and session namespace keys by passing arbitrary binaries to String.to_atom/1. base_key/1 in lib/guardian/plug/keys.ex converts any binary into the atom :\"guardian_<input>\", and the derived helpers claims_key/1, resource_key/1, and token_key/1 create a second atom on top of that. key_from_other/1 likewise converts a regex-captured binary through String.to_atom/1. The public specs advertise String.t() as a valid argument, so passing a string is documented usage, and higher-level entry points such as Guardian.Plug.current_token(conn, key: key) thread the caller-supplied key straight into these functions.\n\nString.to_atom/1 creates a brand-new atom for every previously unseen binary, atoms are never garbage collected, and the BEAM atom table is fixed at roughly 1,048,576 entries by default. An application that routes attacker-influenced data (a tenant identifier, header, or other request input) into a Guardian key therefore mints one permanent atom per distinct value. A modest stream of varied, unauthenticated input permanently consumes the atom table and crashes the BEAM node, taking down every application running on it.\n\nThis issue affects guardian: from 0.1.0 before 2.4.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Allocation of Resources Without Limits or Throttling in ueberauth guardian allows denial of service via unbounded atom creation from attacker-influenced binary input.\n\nGuardian.Plug.Keys derives connection and session namespace keys by passing arbitrary binaries to String.to_atom/1. base_key/1 in lib/guardian/plug/keys.ex converts any binary into the atom :\"guardian_<input>\", and the derived helpers claims_key/1, resource_key/1, and token_key/1 create a second atom on top of that. key_from_other/1 likewise converts a regex-captured binary through String.to_atom/1. The public specs advertise String.t() as a valid argument, so passing a string is documented usage, and higher-level entry points such as Guardian.Plug.current_token(conn, key: key) thread the caller-supplied key straight into these functions.\n\nString.to_atom/1 creates a brand-new atom for every previously unseen binary, atoms are never garbage collected, and the BEAM atom table is fixed at roughly 1,048,576 entries by default. An application that routes attacker-influenced data (a tenant identifier, header, or other request input) into a Guardian key therefore mints one permanent atom per distinct value. A modest stream of varied, unauthenticated input permanently consumes the atom table and crashes the BEAM node, taking down every application running on it.\n\nThis issue affects guardian: from 0.1.0 before 2.4.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nAllocation of Resources Without Limits or Throttling in ueberauth guardian allows denial of service via unbounded atom creation from attacker-influenced binary input.\n\n`Guardian.Plug.Keys` derives connection and session namespace keys by passing arbitrary binaries to `String.to_atom/1`. `base_key/1` in `lib/guardian/plug/keys.ex` converts any binary into the atom `:\"guardian_<input>\"`, and the derived helpers `claims_key/1`, `resource_key/1`, and `token_key/1` create a second atom on top of that. `key_from_other/1` likewise converts a regex-captured binary through `String.to_atom/1`. The public specs advertise `String.t()` as a valid argument, so passing a string is documented usage, and higher-level entry points such as `Guardian.Plug.current_token(conn, key: key)` thread the caller-supplied key straight into these functions.\n\n`String.to_atom/1` creates a brand-new atom for every previously unseen binary, atoms are never garbage collected, and the BEAM atom table is fixed at roughly 1,048,576 entries by default. An application that routes attacker-influenced data (a tenant identifier, header, or other request input) into a Guardian key therefore mints one permanent atom per distinct value. A modest stream of varied, unauthenticated input permanently consumes the atom table and crashes the BEAM node, taking down every application running on it.\n\nThis issue affects guardian: from 0.1.0 before 2.4.1.\n\n## Workarounds\n\nDo not derive Guardian keys from untrusted input. Use a fixed, hardcoded set of namespace keys, or validate the value against a bounded allowlist of known keys, before passing it as the `:key` option.\n\n## Configurations\n\nOnly applications that derive a Guardian key (the conn/session namespace) from attacker-influenced data are exploitable. This is the case when a caller-supplied value such as a tenant identifier, request header, or other request input is passed as the `:key` option to entry points like `Guardian.Plug.current_token/2`. Applications that use a static namespace (the default `:default` key or hardcoded atoms) are not affected.","format":"markdown","source":"eef"},{"lang":"es","text":"La asignación de recursos sin límites ni estrangulamiento en ueberauth guardian permite la denegación de servicio a través de la creación ilimitada de átomos a partir de entrada binaria influenciada por el atacante.\n\nGuardian.Plug.Keys deriva claves de espacio de nombres de conexión y de sesión pasando binarios arbitrarios a String.to_atom/1. base_key/1 en lib/guardian/plug/keys.ex convierte cualquier binario en el átomo :“guardian_[input]”, y las funciones auxiliares derivadas claims_key/1, resource_key/1 y token_key/1 crean un segundo átomo además de eso. key_from_other/1 de manera similar convierte un binario capturado por regex a través de String.to_atom/1. Las especificaciones públicas anuncian String.t() como un argumento válido, por lo que pasar una cadena es un uso documentado, y los puntos de entrada de nivel superior, como Guardian.Plug.current_token(conn, key: key), pasan la clave proporcionada por el llamador directamente a estas funciones.\n\nString.to_atom/1 crea un átomo completamente nuevo para cada binario no visto anteriormente, los átomos nunca son recolectados por el recolector de basura, y la tabla de átomos de BEAM está fijada en aproximadamente 1.048.576 entradas por defecto. Una aplicación que enruta datos influenciados por el atacante (un identificador de inquilino, encabezado u otra entrada de solicitud) en una clave de Guardian, por lo tanto, acuña un átomo permanente por cada valor distinto. Un flujo modesto de entrada variada y no autenticada consume permanentemente la tabla de átomos y bloquea el nodo BEAM, derribando todas las aplicaciones que se ejecutan en él.\n\nEste problema afecta a guardian: desde 0.1.0 antes de 2.4.1.","source":"nvd"}],"published":"2026-08-01T18:46:05.861Z","modified":"2026-11-25T17:23:11.956Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H","score":6.9,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"2.4.1","status":"affected"}],"vendor":"ueberauth","product":"guardian","package":"guardian","cpe":"cpe:2.3:a:ueberauth:guardian:*:*:*:*:*:*:*:*","repo":"https://github.com/ueberauth/guardian","source":"cvelist"},{"ranges":[{"type":"git","introduced":"7126fa433afc2563fcac0c9aa35193965f8fd5f8","fixed":"2952657e42e6341a67e6aaad09d8f0b40ae917cb","status":"affected"}],"vendor":"ueberauth","product":"guardian","package":"ueberauth/guardian","cpe":"cpe:2.3:a:ueberauth:guardian:*:*:*:*:*:*:*:*","repo":"https://github.com/ueberauth/guardian","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"2.4.1"}],"ecosystem":"Hex","package":"guardian","purl":"pkg:hex/guardian","source":"eef"},{"ranges":[{"type":"git","introduced":"7126fa433afc2563fcac0c9aa35193965f8fd5f8","status":"affected","fixed":"2952657e42e6341a67e6aaad09d8f0b40ae917cb"}],"repo":"https://github.com/ueberauth/guardian","source":"eef"},{"ranges":[{"status":"affected","fixed":"2.4.1"}],"vendor":"ueberauth","product":"guardian","cpe":"cpe:2.3:a:ueberauth:guardian:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ueberauth/guardian/security/advisories/GHSA-xqch-c77q-rgh5","tags":["advisory","exploit","patch","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-54894.html","tags":["related","third-party-advisory","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-54894","tags":["related","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ueberauth/guardian/commit/7126fa433afc2563fcac0c9aa35193965f8fd5f8","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ueberauth/guardian/commit/2952657e42e6341a67e6aaad09d8f0b40ae917cb","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/guardian","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Yordis Prieto"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-03T17:49:32.217Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54894","url":"https://www.cve.org/CVERecord?id=CVE-2026-54894","licence":"CVE Terms of Use","modified":"2026-11-24T04:24:18.270Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-54894","url":"https://osv.dev/vulnerability/EEF-CVE-2026-54894","licence":"CC-BY-4.0","modified":"2026-11-25T17:23:11.956Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54894","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54894","licence":"Public domain","modified":"2026-11-24T05:18:25.567Z"}],"updatedAt":"2026-11-25T22:59:30.800Z","epss":{"score":0.00322,"percentile":0.27277,"date":"2026-12-01T12:00:22.000Z"}}