Very good analogy. I've always loved Plato's "cave" story. It fits well with Buddhism, whose philosophy tells us that the three poisons are attachment, hatred and ignorance. Attachment is a poison because we become attached to things we perceive to be "real" when in fact they are "mere appearance to mind," created in the mind by the mind.
The second poison is hatred/anger and it is a poison to us because hatred/anger only hurts ourselves - not those we hate or express anger toward.
The third poison is ignorance; ignorance of the way things truly exist (i.e. the shadows on the cave wall) that are not reality but mere shadows. Once we have the wisdom necessary to know how things truly exist, then we no longer are subject to attachment or hatred, and we find ourselves in the light of Ultimate Truth.