As mentioned, some boots have replaceable sole components. If not have a shop use the boot sole guage to find out how bad they are. If they are out of the limits it is best advised to replace. A poor boot/binding interface can cause retention/release issues.
You might look for someone offering sole shaving services (boot sole canting so you can take your cant with you from ski to ski). They have a plastic they "weld" to the top ledge of the soles and then grind parallel with whatever changes they've made to the bottoms of the soles so they can maintain DIN sole thickness requirements. They may be able to repair worn soles. I imagine their services will be expen$ive.