ezdxf through 1.4.5 contains a code injection vulnerability in the dxf2code add-on that allows attackers to inject Python code via unescaped single quotes in DXF table entry names. Attackers can craft a DXF file whose layer, linetype, style, or appid names break out of quoted strings in generated scripts, executing code with the privileges of the user running them.
https://github.com/mozman/ezdxf/issues/1489
https://github.com/mozman/ezdxf/commit/8cde125a7370afb5988f73b978599172c05f53fd