{"id":"CVE-2024-31209","aliases":["GHSA-mj35-2rgf-cv8p"],"url":"https://o3.security/vulnerability/CVE-2024-31209","summary":"OpenID Connect client Atom Exhaustion in provider configuration worker ets table location","details":"### 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","published":"2024-04-04T16:04:43.255Z","modified":"2026-08-12T03:51:13.624142675Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Hex","name":"oidcc","fixedVersion":"3.0.2"},{"ecosystem":"Hex","name":"oidcc","fixedVersion":"3.1.2"},{"ecosystem":"Hex","name":"oidcc","fixedVersion":"3.2.0-beta.3"}],"fix":{"url":"https://github.com/erlef/oidcc/commit/2f304d877c7e0613d6fd952d7feacbf40dbc355c","label":"erlef/oidcc@2f304d8"},"references":[{"type":"WEB","url":"https://github.com/erlef/oidcc/blob/018dbb53dd752cb1e331637d8e0e6a489ba1fae9/src/oidcc_provider_configuration_worker.erl#L385-L388"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31209.json"},{"type":"ADVISORY","url":"https://github.com/erlef/oidcc/security/advisories/GHSA-mj35-2rgf-cv8p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31209"},{"type":"FIX","url":"https://github.com/erlef/oidcc/commit/2f304d877c7e0613d6fd952d7feacbf40dbc355c"},{"type":"FIX","url":"https://github.com/erlef/oidcc/commit/48171fb62688fb4eec1ead0884aa501e0aa68649"},{"type":"FIX","url":"https://github.com/erlef/oidcc/commit/ac458ed88dc292aad6fa7343f6a53e73c560fb1a"},{"type":"WEB","url":"https://erlef.github.io/security-wg/secure_coding_and_deployment_hardening/atom_exhaustion.html"},{"type":"PACKAGE","url":"https://github.com/erlef/oidcc"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:13.624142675Z"}}