In swtpm before 0.4.2 and 0.5.x before 0.5.1, a local attacker may be able to overwrite arbitrary files via a symlink attack against a temporary file such as TMP2-00.permall.
https://github.com/stefanberger/swtpm/releases/tag/v0.5.1
https://github.com/stefanberger/swtpm/releases/tag/v0.4.2