From Late Latin cucutia (found in Pliny), from Latin cucurbita. Doublet of zucca and cucurbita. Compare Sicilian cucuzza.
Practice speaking and memorizing "cocuzza" and many other words and sentences in Italian.