"an intestinal worm infesting the stomach," c. 1600, from maw (n.) + worm (n.).
Entries linking to maw-worm
maw n.
Middle English maue, from Old English maga "stomach" (of men and animals, including fish and birds; in Modern English only of animals unless insultingly of humans), from Proto-Germanic *magan- "bag, stomach" (source also of Old Frisian maga, Old Norse magi, Danish mave, Middle Dutch maghe, Dutch maag, Old High German mago, German Magen "stomach"), from PIE *mak- "leather bag" (source also of Welsh megin "bellows," Lithuanian makas, Old Church Slavonic mošina "bag, pouch"). Meaning "throat, gullet" is from late 14c. Metaphoric of voracity from late 14c.
worm n.
Old English wurm, variant of wyrm "serpent, snake, dragon, reptile," also in later Old English "earthworm," from Proto-Germanic *wurmiz (source also of Old Saxon, Old High German, German wurm, Old Frisian and Dutch worm, Old Norse ormr, Gothic waurms "serpent, worm"), from PIE *wrmi- "worm" (source also of Greek rhomos, Latin vermis "worm," Old Russian vermie "insects," Lithuanian varmas "insect, gnat"), from PIE *wrmi- "worm," from root *wer- (2) "to turn, bend."
The ancient category of these was much more extensive than the modern, scientific, one and included serpents, scorpions, maggots, and the supposed causes of certain diseases. For substitution of -o- for -u-, see come. As an insult meaning "abject, miserable person" it dates from Old English. Worms "any disease arising from the presence of parasitic worms" is from late Old English. Can of worms figurative for "difficult problem" is from 1951, from the literal can of worms a fisherman might bring with him, on the image of something all tangled up.