Official iOS firmware for iPhone 4 (CDMA), served directly from Apple. 23 IPSW files are listed below, including developer betas and release candidates.
How to install iOS on iPhone 4 (CDMA) with an IPSW file
Back up your iPhone 4 (CDMA) first. Connect it to a computer, open Finder on macOS or iTunes on Windows, then hold Option (Mac) or Shift (Windows) while you click Restore and pick the IPSW file. Your device will be erased and the selected version installed. Follow our restore guide for every step.
Only firmware marked as Signed can be installed today. To leave a beta and return to the public release, restore the latest signed release build listed above.