Bone rotation glitch

Never seen this issue before. Could this be caused by a mirror modifier in your 3d software?