Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade rebber
to version 5.2.1 or higher.
rebber is a package that Stringifies MDAST to LaTeX.
Affected versions of this package are vulnerable to Command Injection. The reported problem came from CodeBlocks, which could be escaped to insert malicious LaTeX. Anyone using rebber
without sanitization of code content or a custom macro is impacted by this vulnerability.
```
\end{CodeBlock}
% Will insert into the generated LaTeX the result of executing COMMAND
on the system.
\immediate\write18{COMMAND > outputrce}
\input{outputrce}
\begin{CodeBlock}{text}
</code></pre>