{"id":"GHSA-vv77-66rf-pm86","summary":"mpp vulnerable to Gas Draining with no limit","details":"### Details\nWhen the server acts as the fee_payer, the `mpp` Elixir 0.4.0 does not validate `gas_limit`, `max_fee_per_gas` and `max_priority_fee_per_gas` before cosigning the client's fee-payer transaction. A malicious client embeds arbitrarily large `max_fee_per_gas` and `max_priority_fee_per_gas` values in the signed envelope. The server cosigns and broadcasts — paying those inflated gas costs from its own wallet based on the `effective_gas_price` calculated from the high `max_fee_per_gas` and `max_priority_fee_per_gas` set by the client.\n\n**Vulnerable function:** `cosign_fee_payer/3` in [`transaction.ex`](https://hex.pm/packages/mpp/0.4.0) around lines 229–262.\n\n### PoC\nThe PoC is provided below. It is configured to reproduce the attack on Tempo Moderate testnet within a Docker environment. Download the PoC and run:\n```bash\nunzip mpp_elixir_PoC.zip\ncd mpp_elixir\ndocker build -t mpp-elixir-gasdrain .\ndocker run --rm mpp-elixir-gasdrain\n``` \nThere are more details in `mpp_elixir/README.md`\n\n### Impact\nBy draining the server's wallet, an attacker causes direct financial loss to the organization. Furthermore, if the server's funds are drained completely, legitimate clients will have their requests fail, as the server can no longer fund future transactions, effectively creating a Denial of Service (DoS) attack.","aliases":["CVE-2026-59695","EEF-CVE-2026-59695"],"modified":"2026-09-25T23:00:09.850205107Z","published":"2026-09-25T21:44:12Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-09-25T21:44:12Z","nvd_published_at":null,"cwe_ids":["CWE-20"]},"references":[{"type":"WEB","url":"https://github.com/ZenHive/mpp/security/advisories/GHSA-vv77-66rf-pm86"},{"type":"WEB","url":"https://github.com/ZenHive/mpp/commit/5d6338e2334084c5f2a78cfcca474830733ed7e8"},{"type":"PACKAGE","url":"https://github.com/ZenHive/mpp"},{"type":"WEB","url":"https://github.com/ZenHive/mpp/releases/tag/v0.6.0"}],"affected":[{"package":{"name":"mpp","ecosystem":"Hex","purl":"pkg:hex/mpp"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.2.0"},{"fixed":"0.6.0"}]}],"versions":["0.2.0","0.3.0","0.3.1","0.3.2","0.4.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-vv77-66rf-pm86/GHSA-vv77-66rf-pm86.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N"}]}