Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm-decompile: Assertion `false' failed. #2322

Open
goldds96 opened this issue Nov 6, 2023 · 1 comment
Open

wasm-decompile: Assertion `false' failed. #2322

goldds96 opened this issue Nov 6, 2023 · 1 comment

Comments

@goldds96
Copy link

goldds96 commented Nov 6, 2023

Environments

OS : Ubuntu 18.04 5.4.0-150-generic
Commit : e97d53c
Version : 1.0.34

Vulnerability Description

Affected Tool : wasm-decompile
Affected Version : <= 1.0.34
Impact : Denial of Service

  • The assertion 'false' in /src/decompiler.cc:414( in wabt 1.0.34 can cause a denial of service(assertion failure) via a crafted wasm file.
case NodeType::Uninitialized:
   assert(false);
   break;

PoC

1. Input File

wasm-decompile-PoC.zip

2. Reproduce

$ ~/wabt/bin/wasm-decompile wasm-decompile-PoC

3. Stack Trace

$ ~/wabt/bin/wasm-decompile wasm-decompile-PoC
wasm-decompile: ../../../../src/decompiler.cc:414: wabt::Decompiler::Value wabt::Decompiler::DecompileExpr(const wabt::Node &, const wabt::Node *): Assertion `false' failed.
Aborted
@sbc100
Copy link
Member

sbc100 commented Nov 6, 2023

Sadly wasm-decompile is not actively maintained. If you would like to send PRs to fix these kind of issues they would most welcome. Otherwise I'm afraid they won't get much attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants