I don't think that there is any particular problem in the code base. Its design, however, has been made with 1970s constraints in mind.
A lot of people have thought about rewriting (parts) of TeX, but the amount of legacy is so high and you have to keep compatibility with lots of existing user code.