{"id":"CVE-2019-16764","published":"2019-11-25T17:11:19Z","modified":"2024-08-05T01:24:47Z","title":"PowAssent is susceptible to denial of service attacks","vendor":"pow-auth","product":"pow_assent","tier":"tail","description":{"text":"The use of `String.to_atom/1` in PowAssent is susceptible to denial of service attacks. In `PowAssent.Phoenix.AuthorizationController` a value is fetched from the user provided params, and `String.to_atom/1` is used to convert the binary value to an atom so it can be used to fetch the provider configuration value. This is unsafe as it is user provided data, and can be used to fill up the whole atom table of ~1M which will cause the app to crash.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01082,"percentile":0.66031,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/pow-auth/pow_assent/security/advisories/GHSA-368c-xvrv-x986","tags":["x_refsource_CONFIRM"]},{"url":"https://hex.pm/packages/pow_assent","tags":["x_refsource_MISC"]},{"url":"http://erlang.org/doc/efficiency_guide/commoncaveats.html#list_to_atom-1","tags":["x_refsource_MISC"]},{"url":"https://github.com/pow-auth/pow_assent/commit/026105eeecc0e3c2f807e7109e745ea93c0fd9cf","tags":["x_refsource_MISC"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":13.21},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"pow-auth","affectedVersions":[{"vendor":"pow-auth","product":"pow_assent","versions":[">= < 0.4.4, < 0.4.4"]}],"workarounds":{"items":["A plug can be used to validate conn.params[&quot;provider&quot;] before it reaches the PowAssent.Phoenix.AuthorizationController."],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"pow_assent","vulnerableRanges":["<0.4.4"],"patched":["0.4.4"],"from":["GHSA-5653-437f-5hmc"],"provenance":"source"}],"summary":{"text":"The pow_assent library (vendor pow-auth) contains a flaw in its Phoenix AuthorizationController, where a user-supplied request parameter is converted to an atom using String.to_atom/1 to look up provider configuration. An attacker with network access and low-privilege authentication can send repeated requests with crafted values to exhaust the atom table, causing the application to crash and denying service to legitimate users, with no user interaction or non-default configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:42:41Z"},"euvd":{"id":"EUVD-2022-1629","exploited":false,"provenance":"source"}}