Phenixdigital phoenix_storybook
Unauthenticated denial-of-service via BEAM atom table exhaustion in phoenix_storybook
Allocation of Resources Without Limits or Throttling vulnerability in phenixdigital phoenix_storybook allows unauthenticated denial of service via atom table exhaustion. LiveView event handlers and request parameters of the storybook convert client-supplied strings to atoms. Atoms are never garbage-collected, so a client that sends enough unique strings fills the atom table, and the BEAM node terminates. PhoenixStorybook.ExtraAssignsHelpers.handle_set_variation_assign/3 and handle_toggle_variation_assign/3 call String.to_atom/1 on parameter keys, attribute names, variation ids, and values of attributes declared as :atom or :boolean. PhoenixStorybook.Story.Playground.handle_event/3 and PhoenixStorybook.StoryLive do the same for tab names, theme names, and playground field names. Releases published as phx_live_storybook have the same calls in the PhxLiveStorybook namespace, at first in PhxLiveStorybook.EntryLive. This issue affects phoenix_storybook: from 0.5.0 before 1.1.0; phx_live_storybook: from 0.2.0 onward.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.5.0, < 1.1.0
Fixed in 1.1.0
- >= 0.2.0, < *
Fixed in *
- >= 0228669d55c23a754d1ef11f49a32121129d5395, < 96d524690af0fe197a49f60d18e564a620b9ef81
Fixed in 96d524690af0fe197a49f60d18e564a620b9ef81
Mitigation
Upgrade phoenix_storybook to 1.1.0 or later.
Upgrade phoenix_storybook to * or later.
Upgrade phoenix_storybook to 96d524690af0fe197a49f60d18e564a620b9ef81 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.