This squash is showing abnormal growth, known as fasciation. Fasciation is the abnormal development of a meristem or growing point.
The cause of this condition is not well understood but is most commonly thought to be associated with genetic mutation, hormonal imbalances, environmental factors, or chemical exposure. While this squash is unmarketable due to its appearance, it is perfectly fine to eat.
Read more on hgic.clemson.edu