The issue arises from the input passed to the `Pdf()` function being shell escaped and then passed to `child process.exec()` during PDF rendering. However, the shell escape fails to properly encode special characters, such as semicolon and curly braces, which can be exploited to achieve command execution.