If your squash plant suddenly wilts even though the soil is moist, squash vine borers may be the cause.

What They Look Like
The adult is a day-flying moth that looks similar to a wasp.
The damaging stage is a thick, cream-colored larva that lives inside the stem.
Eggs are laid individually near the base of stems, not in clusters.
The larva stays hidden inside the plant, which makes it difficult to see.

Damage Signs
Sudden wilting of a vine or entire plant
Leaves collapse even when well watered
Small holes near the base of the stem
Sawdust-like material (frass) oozing from the stem
Plants may decline very quickly once damage starts
Plants Affected
Squash and zucchini
Pumpkins
Winter squash
Cucumbers and melons rarely
Fast Control (Start Here)
Inspect the base of plants regularly
Look for frass and small entry holes
If caught early, carefully open the stem and remove the larva
Cover the damaged area with soil to help the plant re-root
This is a rescue step and works best when done early
Additional Control Options
Apply BT to stems early in the season before eggs hatch
Repeat applications during active periods
Use spinosad if moth activity is high
Once larvae are inside the stem, sprays are not effective
Prevention
Use row covers early in the season
Remove covers at flowering for pollination
Clean up plant debris at the end of the season
Rotate crops away from previous squash beds
Choose resistant varieties such as butternut squash
Protect stems at the base if vine borers are a known issue
Notes for Gardeners
This is one of the most destructive squash pests
Damage can happen quickly and without warning
By the time wilting appears, the larva is already inside
Prevention is far more effective than trying to fix damage
Vining squash are more likely to recover than bush types
See Also
Garden Pest Identification Guide (The Dirty Dozen)
Common Cucurbit Pests
Using Row Covers In The Garden