{"id":"CVE-2024-31209","aliases":["CVE-2024-31209","GHSA-mj35-2rgf-cv8p"],"related":[],"kind":"vulnerability","state":"published","title":"OpenID Connect client Atom Exhaustion in provider configuration worker ets table location","summary":"oidcc is the OpenID Connect client library for Erlang. Denial of Service (DoS) by Atom exhaustion is possible by calling `oidcc_provider_configuration_worker:get_provider_configuration/1` or `oidcc_provider_configuration_worker:get_jwks/1`. This issue has been patched in version(s)`3.1.2` & `3.2.0-beta.3`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"oidcc is the OpenID Connect client library for Erlang. Denial of Service (DoS) by Atom exhaustion is possible by calling `oidcc_provider_configuration_worker:get_provider_configuration/1` or `oidcc_provider_configuration_worker:get_jwks/1`. This issue has been patched in version(s)`3.1.2` & `3.2.0-beta.3`.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nDOS by Atom exhaustion is possible by calling `oidcc_provider_configuration_worker:get_provider_configuration/1` or `oidcc_provider_configuration_worker:get_jwks/1`.\n\nSince the name is usually provided as a static value in the application using `oidcc`, this is unlikely to be exploited.\n\n### Details\n\nExample to illustrate the vulnerability.\n\n```erlang\n{ok, Claims} =\n  oidcc:retrieve_userinfo(\n    Token,\n    myapp_oidcc_config_provider,\n    <<\"client_id\">>,\n    <<\"client_secret\">>,\n    #{}\n  )\n```\n\nThe vulnerability is present in `oidcc_provider_configuration_worker:get_ets_table_name/1`.\nThe function `get_ets_table_name` is calling `erlang:list_to_atom/1`.\n\nhttps://github.com/erlef/oidcc/blob/018dbb53dd752cb1e331637d8e0e6a489ba1fae9/src/oidcc_provider_configuration_worker.erl#L385-L388\n\nThere might be a case (Very highly improbable) where the 2nd argument of\n`oidcc_provider_configuration_worker:get_*/1` is called with a different atom each time which eventually leads to\nthe atom table filling up and the node crashing.\n\n### Patches\n\nPatched in `3.0.2`, `3.1.2` & `3.2.0-beta.3`\n\n### Workarounds\n\nMake sure only valid provider configuration worker names are passed to the functions.\n\n### References\n\n* https://erlef.github.io/security-wg/secure_coding_and_deployment_hardening/atom_exhaustion.html\n* https://www.cve.org/CVERecord?id=CVE-2024-31209\n* https://euvd.enisa.europa.eu/enisa/EUVD-2024-1249\n* https://github.com/advisories/GHSA-mj35-2rgf-cv8p","format":"markdown","source":"ghsa"},{"lang":"es","text":"oidcc es la librería cliente OpenID Connect para Erlang. La denegación de servicio (DoS) por agotamiento de Atom es posible llamando a `oidcc_provider_configuration_worker:get_provider_configuration/1` o `oidcc_provider_configuration_worker:get_jwks/1`. Este problema se ha solucionado en las versiones `3.1.2` y `3.2.0-beta.3`.","source":"nvd"}],"published":"2024-04-03T16:46:30.000Z","modified":"2026-06-17T07:27:59.177Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:N/A:H","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:N/A:H","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:N/A:H","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":">= 3.0.0, < 3.0.2","status":"affected"},{"version":">= 3.1.0, < 3.1.2","status":"affected"},{"version":">= 3.2.0-beta.1, < 3.2.0-beta.3","status":"affected"}],"vendor":"erlef","product":"oidcc","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.2"}],"ecosystem":"Hex","package":"oidcc","purl":"pkg:hex/oidcc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.1.0","status":"affected","fixed":"3.1.2"}],"ecosystem":"Hex","package":"oidcc","purl":"pkg:hex/oidcc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.2.0-beta.1","status":"affected","fixed":"3.2.0-beta.3"}],"ecosystem":"Hex","package":"oidcc","purl":"pkg:hex/oidcc","source":"ghsa"}],"references":[{"url":"https://github.com/erlef/oidcc/security/advisories/GHSA-mj35-2rgf-cv8p","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/erlef/oidcc/commit/2f304d877c7e0613d6fd952d7feacbf40dbc355c","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/erlef/oidcc/commit/48171fb62688fb4eec1ead0884aa501e0aa68649","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/erlef/oidcc/commit/ac458ed88dc292aad6fa7343f6a53e73c560fb1a","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/erlef/oidcc/blob/018dbb53dd752cb1e331637d8e0e6a489ba1fae9/src/oidcc_provider_configuration_worker.erl#L385-L388","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31209","tags":["advisory"],"sources":["ghsa"]},{"url":"https://erlef.github.io/security-wg/secure_coding_and_deployment_hardening/atom_exhaustion.html","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/erlef/oidcc","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-08-07T15:32:55.551Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-31209","url":"https://www.cve.org/CVERecord?id=CVE-2024-31209","licence":"CVE Terms of Use","modified":"2024-09-03T18:26:21.909Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mj35-2rgf-cv8p","url":"https://github.com/advisories/GHSA-mj35-2rgf-cv8p","licence":"CC-BY-4.0","modified":"2025-12-10T00:29:48.082Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-31209","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31209","licence":"Public domain","modified":"2026-06-17T07:27:59.177Z"}],"updatedAt":"2026-11-25T22:58:38.765Z","epss":{"score":0.00264,"percentile":0.11173,"date":"2026-11-30T12:00:22.000Z"}}