While driving a motor vehicle, it is:

Open containers of alcohol are not permitted to be in the passenger area of any moving vehicle. This includes space in the vehicle that can be occupied by the driver or any passenger.
DMV Writen Test