You can store cast iron outside, but it is harder than storing it indoors. Rain, dew, and humidity swings make rust far more likely, and a pan that sits outdoors for a season can come back with surface rust. If you must store cast iron outdoors, keep it sealed in a dry setup, off the ground, and check it often.
Why outdoors is harder
Outdoor air carries more moisture than a typical kitchen, and temperatures change from day to night. That combination makes condensation on metal likely. Rain can get into a container, and dew can form on a pan that is not fully covered. Pests and dust are also a concern.
If you must store it outside
Dry the pan thoroughly and apply a thin oil coat before you store it. Keep it in a container that breathes a little, such as a ventilated box, rather than a sealed plastic bin that traps water. Place a moisture absorber, such as silica gel, inside the container. Raise the container off the ground on a shelf or pallet so it does not sit in standing water.
Choose the spot
A covered area that stays dry and out of direct rain is far better than an open patio. A shed with a dry floor and some airflow is a better choice than a damp corner. Avoid spots that get wet from sprinklers or gutters. If the shed is damp, consider moving the pans indoors.
Check the pans often
Look at stored pans every few weeks, and after heavy rain or a cold snap. Catch small spots of rust early. If you find rust, scrub it off, dry the pan on a burner or in the sun, and apply a fresh thin coat of oil before putting it back.
Indoor alternatives
If you can, store the pans inside. A dry cupboard, a rack in a utility room, or a box in a dry closet is much safer. If you use the pans for camping or outdoor cooking, a clean, dry, lightly oiled pan packed for the trip is the easiest option.
Camping and trips
Pack pans so they stay dry in a bag or box, and dry them as soon as you get home. A pan that sat wet in a car or tent is likely to rust. Dry it thoroughly and oil it before the next storage period.