Db Connection
Monthly
Arbitrary code execution in applications running the Elixir db_connection library 1.1.0 through 2.10.2 is possible when a downstream component deserializes untrusted Erlang terms and then enumerates a forged DBConnection.Stream or DBConnection.PrepareStream struct. The struct's :log option holds a {module, function, arguments} tuple that DBConnection applies during enumeration, letting an attacker invoke an exported function of an already-loaded module with chosen arguments. db_connection is not exploitable on its own: the prerequisite is a component that decodes attacker-controlled data with :erlang.binary_to_term/2 or Plug.Crypto.non_executable_binary_to_term/2 without restricting the resulting terms - the :safe option does not reject structs - and the advisory notes such forged structs were used in attacks on downstream components; 2.10.3 is the fixed release.
Arbitrary code execution in applications running the Elixir db_connection library 1.1.0 through 2.10.2 is possible when a downstream component deserializes untrusted Erlang terms and then enumerates a forged DBConnection.Stream or DBConnection.PrepareStream struct. The struct's :log option holds a {module, function, arguments} tuple that DBConnection applies during enumeration, letting an attacker invoke an exported function of an already-loaded module with chosen arguments. db_connection is not exploitable on its own: the prerequisite is a component that decodes attacker-controlled data with :erlang.binary_to_term/2 or Plug.Crypto.non_executable_binary_to_term/2 without restricting the resulting terms - the :safe option does not reject structs - and the advisory notes such forged structs were used in attacks on downstream components; 2.10.3 is the fixed release.