{"id":"CVE-2026-59695","aliases":["CVE-2026-59695","GHSA-vv77-66rf-pm86","EEF-CVE-2026-59695"],"related":[],"kind":"vulnerability","state":"published","title":"Unbounded max_fee_per_gas in mpp Tempo fee-payer enables single-request wallet drain","summary":"Improper Validation of Specified Quantity in Input in ZenHive mpp allows an unauthenticated remote client to drain the fee-payer wallet in a single request by naming an arbitrarily high gas price.\n\nWhen the mpp Elixir library is configured as fee payer (fee_payer: true), MPP.Tempo.Transaction.cosign_fee_payer/3 re-signs the client-supplied base fields of the 0x76 AASigned envelope verbatim, including max_fee_per_gas and max_priority_fee_per_gas, without validating that they are within reasonable bounds. A malicious client embeds arbitrarily large values for these fields in the signed envelope. The server co-signs and broadcasts the transaction. The effective_gas_price billed against the fee-payer wallet is derived from the attacker-supplied ceilings, so the server pays those inflated per-gas rates out of its own wallet. A single crafted request can drain the wallet entirely, after which the server can no longer sponsor gas for legitimate payment requests.\n\nThis issue affects mpp: from 0.2.0 before 0.6.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Validation of Specified Quantity in Input in ZenHive mpp allows an unauthenticated remote client to drain the fee-payer wallet in a single request by naming an arbitrarily high gas price.\n\nWhen the mpp Elixir library is configured as fee payer (fee_payer: true), MPP.Tempo.Transaction.cosign_fee_payer/3 re-signs the client-supplied base fields of the 0x76 AASigned envelope verbatim, including max_fee_per_gas and max_priority_fee_per_gas, without validating that they are within reasonable bounds. A malicious client embeds arbitrarily large values for these fields in the signed envelope. The server co-signs and broadcasts the transaction. The effective_gas_price billed against the fee-payer wallet is derived from the attacker-supplied ceilings, so the server pays those inflated per-gas rates out of its own wallet. A single crafted request can drain the wallet entirely, after which the server can no longer sponsor gas for legitimate payment requests.\n\nThis issue affects mpp: from 0.2.0 before 0.6.0.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Summary\n\nImproper Validation of Specified Quantity in Input in ZenHive mpp allows an unauthenticated remote client to drain the fee-payer wallet in a single request by naming an arbitrarily high gas price.\n\nWhen the `mpp` Elixir library is configured as fee payer (`fee_payer: true`), `MPP.Tempo.Transaction.cosign_fee_payer/3` re-signs the client-supplied base fields of the `0x76` AASigned envelope verbatim, including `max_fee_per_gas` and `max_priority_fee_per_gas`, without validating that they are within reasonable bounds. A malicious client embeds arbitrarily large values for these fields in the signed envelope. The server co-signs and broadcasts the transaction. The `effective_gas_price` billed against the fee-payer wallet is derived from the attacker-supplied ceilings, so the server pays those inflated per-gas rates out of its own wallet. A single crafted request can drain the wallet entirely, after which the server can no longer sponsor gas for legitimate payment requests.\n\nThis issue affects mpp: from 0.2.0 before 0.6.0.\n\n## Configurations\n\nThe vulnerable code path is only reachable when the `MPP.Methods.Tempo` method is configured with `fee_payer: true` (server-side gas sponsorship). Default deployments with `fee_payer: false` are not affected, since the client pays for gas out of its own wallet.","format":"markdown","source":"eef"},{"lang":"es","text":"Validación Incorrecta de Cantidad Especificada en la Entrada en ZenHive mpp permite a un cliente remoto no autenticado vaciar la billetera del pagador de tarifas en una sola solicitud al nombrar un precio de gas arbitrariamente alto.\n\nCuando la biblioteca mpp Elixir está configurada como pagador de tarifas (fee_payer: true), MPP.Tempo.Transaction.cosign_fee_payer/3 vuelve a firmar los campos base proporcionados por el cliente del sobre 0x76 AASigned textualmente, incluyendo max_fee_per_gas y max_priority_fee_per_gas, sin validar que estén dentro de límites razonables. Un cliente malicioso incrusta valores arbitrariamente grandes para estos campos en el sobre firmado. El servidor co-firma y transmite la transacción. El effective_gas_price facturado a la billetera del pagador de tarifas se deriva de los techos proporcionados por el atacante, por lo que el servidor paga esas tarifas por gas infladas de su propia billetera. Una única solicitud manipulada puede vaciar la billetera por completo, después de lo cual el servidor ya no puede patrocinar gas para solicitudes de pago legítimas.\n\nEste problema afecta a mpp: desde 0.2.0 antes de 0.6.0.","source":"nvd"}],"published":"2026-07-17T10:11:43.674Z","modified":"2026-11-26T17:23:07.557Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N"}],"cwes":["CWE-20","CWE-1284"],"affected":[{"ranges":[{"type":"semver","introduced":"0.2.0","fixed":"0.6.0","status":"affected"}],"vendor":"ZenHive","product":"mpp","package":"mpp","cpe":"cpe:2.3:a:ZenHive:mpp:*:*:*:*:*:*:*:*","repo":"https://github.com/ZenHive/mpp","source":"cvelist"},{"ranges":[{"type":"git","introduced":"d29d54e507918db00a5b65d90136b73166c017d7","fixed":"5d6338e2334084c5f2a78cfcca474830733ed7e8","status":"affected"}],"vendor":"ZenHive","product":"mpp","package":"zenhive/mpp","cpe":"cpe:2.3:a:ZenHive:mpp:*:*:*:*:*:*:*:*","repo":"https://github.com/ZenHive/mpp","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.2.0","status":"affected","fixed":"0.6.0"}],"ecosystem":"Hex","package":"mpp","purl":"pkg:hex/mpp","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.2.0","status":"affected","fixed":"0.6.0"}],"ecosystem":"Hex","package":"mpp","purl":"pkg:hex/mpp","source":"eef"},{"ranges":[{"type":"git","introduced":"d29d54e507918db00a5b65d90136b73166c017d7","status":"affected","fixed":"5d6338e2334084c5f2a78cfcca474830733ed7e8"}],"repo":"https://github.com/ZenHive/mpp","source":"eef"}],"references":[{"url":"https://github.com/ZenHive/mpp/security/advisories/GHSA-vv77-66rf-pm86","tags":["advisory","exploit","related","vendor-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-59695.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-59695","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ZenHive/mpp/commit/d29d54e507918db00a5b65d90136b73166c017d7","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ZenHive/mpp/commit/5d6338e2334084c5f2a78cfcca474830733ed7e8","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://github.com/ZenHive/mpp","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/ZenHive/mpp/releases/tag/v0.6.0","tags":["web"],"sources":["ghsa"]},{"url":"https://hex.pm/packages/mpp","tags":["package"],"sources":["eef"]}],"credits":["Kian Kai Ang","Jonatan Männchen / EEF","E.FU"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-07-17T12:53:10.647Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59695","url":"https://www.cve.org/CVERecord?id=CVE-2026-59695","licence":"CVE Terms of Use","modified":"2026-11-24T05:52:20.549Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vv77-66rf-pm86","url":"https://github.com/advisories/GHSA-vv77-66rf-pm86","licence":"CC-BY-4.0","modified":"2026-09-25T23:00:09.850Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-59695","url":"https://osv.dev/vulnerability/EEF-CVE-2026-59695","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:07.557Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59695","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59695","licence":"Public domain","modified":"2026-11-24T06:17:09.993Z"}],"updatedAt":"2026-11-26T17:37:05.265Z","epss":{"score":0.00382,"percentile":0.3442,"date":"2026-12-01T12:00:22.000Z"}}