Skip to content

Loading an assembly causes ModuleDefinition.ReadModule to crash the process with a StackOverflowException. #971

Open
@AdvDebug

Description

@AdvDebug

Hey, i found an issue when parsing with ModuleDefinition.ReadModule using
this assembly which causes the parser to throw StackOverflowException which will also cause the whole process to crash.

you can reproduce the same issue by doing this:

  1. Extract the zip file and get the dll inside

  2. Try to parse the assembly with the following code:

ModuleDefinition.ReadModule(path_to_dll, new ReaderParameters(ReadingMode.Immediate));

and the process will crash.

Found via BinarySploit Framework, the fuzzing component. (A project i'm still working on)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions