means that
an attempted solution can cause greater harm than the original problem.
similar
The cure is worse than the illness The cure is worse than the ill
Imagine a case where the solution to a problem produces a worse result than the problem does.; then “The remedy is worse than the disease” fits well.