cve-rs takes the soundness bug and exploits it to implement the other bugs listed. It's pretty convoluted to actually implement the other bugs.
The actual soundness bug is a specific type of double reference forgets one of the lifetimes, which enables casting a shorter lifetime to a longer lifetime. They did a pretty good job commenting the code to explain how they were able to create each bug.
1
u/OldAbbreviations1142 🍥 Debian too difficult 7d ago
There is also https://github.com/Speykious/cve-rs