There are a variety of reasons why you middle fingers hurt on both hands, but one of the most common reasons is a condition known as trigger finger.
What is trigger finger?
Trigger finger is a condition that affect the tendons in the hand. There are a variety of symptoms of trigger finger, including pain, stiffness in the joint, and even a lump at the base of the affected finger.
If you think you might have trigger finger, it's important to visit your doctor, as it could leave irreversible damage if not treated properly. Here's a quick video explaining trigger finger:
Carpal Tunnel Syndrome
This is the other option I'd consider as a possible cause of finger pain. Symptoms include pain in some fingers and the hand, pain in the wrist, and even pain in the forearm. This occurs when swelling presses against the median nerve.
Treatment for carpal tunnel syndrome usually involves simple things such as not placing the wrist in certain aggravating positions, but again, it's best to see a doctor to get a diagnosis of what's going on.