Edit mode vertices getting dragged?
I fixed the problem, the issue was that the weight painting of the shoulder and the thorax was intersecting a little bit with the arm weight paint, and caused the vertices to get dragged when posed like that.