LibreDWG v0.12.4.4608 exists to contain a heap-use-after-free via the function dwg_add_handleref at dwg.c.
gnu libredwg -