I have some that was stored in my shed (very wide temperature extremes) for about five years, plus another 3-4 years at room temperature before that, and it turned dark, produced a deep green solution when I tried to mix it. The dark stuff settled out of solution over time, but I haven't tested it...
High temperatures, moisture, and oxygen are to be avoided but a well-sealed brown glass bottle would be sufficient to provide several years of shelf life.
You can also try using Nitrogen to top off the bottle in between uses. Back in the day I kept C41 developer in entirely full glass bottles with plastic caps and it would keep for an exceedingly long time in that form without oxidation.
This is what Ron Mowery said to me on the storage of CD4 and other CDx:
I would store in a good brown glass bottle with screw cap. White colored to tan or brown is good, but darker brown is not good. I mix mine, if needed, each time from my bottle. The only one that I think is going bad at this time is the CD6. It is over 20 years old
I have one 100 gram bottle (plastic) bought 30+ years ago. Its color is still light tan. Last time I used it prior to the Covid-19 pandemic it was still as good as new. The label on the bottle shows Zone V, 50 Strafford VT 05070 1988. Looks like I bought it from this company called Zone V. Is there such a company still? I can't find it on the internet.
I have one 100 gram bottle (plastic) bought 30+ years ago. Its color is still light tan. Last time I used it prior to the Covid-19 pandemic it was still as good as new. The label on the bottle shows Zone V, 50 Strafford VT 05070 1988. Looks like I bought it from this company called Zone V. Is there such a company still? I can't find it on the internet.
Owing to my declining frequency both with camera and in the darkroom, my DIY color processing has similarly declined. I think my plastic bottle of CD-4 must be about 25 years old, and it is still as good as new, stored in a temperature stable, low humidity, dark environment.