^ nice framing hammer!
If it wasn't a unique shaped handle I'd just replace with a fresh one, but in this case maybe (if it's not so loose on the head that it needs a new or additional wedge) you might try some "penetrating" epoxy. There's some sold specifically for wood preservation/renewal as well as some for boats, both are very thin-bodied so can weep into tight gaps via capillary action.