Attachment is a poison. Why is attachment to the Buddha and to Buddhist philosophy not a problem?
Sez who?

Attachment to Buddhism and to Buddhist philosophy is a very serious problem, which every practitioner should be careful about, since it's so seductive: it's easy to be perceived as progress, whereas it's the very opposite of progress.

To counter this hazard, some Zen schools recommend that "if you come across the Buddha on the road, kill him!" (Not to be taken too literally.)