A man has been attacked with a swordfish snout in a home invasion in central Queensland, police say.

Police said two men let themselves into an occupied caravan in Bundaberg, about 11.30pm (AEST) yesterday.

They then attacked the 40-year-old male resident with a swordfish snout, described as cartilage with a row of serrated teeth, before fleeing.

The man was treated by paramedics for cuts to his back, hands and arms.

Police are investigating the attack.

- AAP