I caught this bug burrowing into the trunk of my rhododendron, and I persuaded it to exit its home.
Here's a close up of said worm.
I can't imagine it being other than damaging to my tree. Anyone know what it is? The location is Wellington, New Zealand.
Edit: the bark had been damaged by my plastic rubbish bin rubbing against it and I believe this is why some beetle laid its egg here. I removed the frass before taking the picture, and I admit I did use a Philips screwdriver to encourage the woodworm to leave its new home in my tree. The hole is about 4 mm (.15 in) in diameter so I think it's too big for a rhododendron borer which I'm not even sure we have in NZ. The holes of the two tooth borer are said to be oval but this one seems quite round.