And this isn't even theoretical. Buggy 3D Printer Software has literally burned people's homes down in the past.
Any design worth its salt should incorporate a thermal soft-fuse at the heater element that cuts power off if the printhead ever goes above the maximum temperature that any filament can handle.
Pure software interlocks are not sufficient. One might think people would have learned a lesson, nearly half a decade after Therac-25.