Is there a cure for costochondritis?

Yes. Usually it will calm down with a decent nsaid medication. You may need to refrain from heavy exercises especially using your upper extremities. It can sometimes take several weeks to calm down, but usually is not a chronic problem.