partisanに認証前のデコード処理の脆弱性、遠隔からサービス停止のおそれ
Summary
partisanには、認証の前に届いたデータをデシリアライズする処理に脆弱性があり、認証を受けていない遠隔の攻撃者がErlang VMを異常終了させられます。影響を受けるのは3.0.0から6.4.0より前の版で、修正版は6.4.0です。TLSは初期状態で無効のため、通信の受け口が外部から届く環境では早めの対応が必要です。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
partisanには、認証の前に届いたデータをデシリアライズする処理に脆弱性があり、認証を受けていない遠隔の攻撃者がErlang VMを異常終了させられます。影響を受けるのは3.0.0から6.4.0より前の版で、修正版は6.4.0です。TLSは初期状態で無効のため、通信の受け口が外部から届く環境では早めの対応が必要です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| lasp-langpartisan |
≥ 04314463df1d3cb213c7a07beb60bf7af3389dfc, < 5c75b3368620ef9f7f07af5e7f70ade95030fe92→ 5c75b3368620ef9f7f07af5e7f70ade95030fe92 |
5c75b3368620ef9f7f07af5e7f70ade95030fe92 |
| Hexpartisan |
≥ 3.0.0, < 6.4.0→ 6.4.0 |
6.4.0 |
Original description The description as published by the source.
Deserialization of Untrusted Data vulnerability in lasp-lang partisan allows an unauthenticated remote attacker to abort the Erlang VM of a node via Excessive Allocation. partisan_peer_service_server:handle_info/2 decodes every frame that arrives on the peer listener with binary_to_term/1, without the safe option, before handle_inbound/2 interprets the message and before any peer authentication takes place. TLS is off by default and the listener accepts connections from any host, so one frame that names more atoms than the atom table holds aborts the VM. partisan_peer_service_client:handle_info/2 decodes frames from the server side of a connection the same way.
The decode also materializes funs, ports and references the frame encodes and inflates compressed terms. The demonstrated impact is denial of service. partisan does not invoke decoded funs, so code execution was not shown.
This issue affects partisan: from 3.0.0 before 6.4.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package hex.pm
- package github.com
- web github.com
- web cna.erlef.org
- web osv.dev
- web github.com
- web github.com
- web github.com
- web repo.hex.pm