It is a grub (not a worm, as worms are an entirely different group). This is a beetle larva, probably from the large and diverse Scarabaeoidea superfamily. Nice documentation of the spiracles (breathing pores) along the side of the body.
TFS