SAN FRANCISCO (KCBS/AP) — A federal court has ordered seven municipal sewage systems to upgrade leaky facilities which have spewed millions of gallons of sewage into San Francisco Bay this winter.

The order, entered Tuesday by U.S. District Court Judge Richard Seeborg, covers seven East Bay districts: Oakland, Emeryville, Berkeley, Alameda, Albany, Piedmont and the Stege district, which serves Kensington, El Cerrito and part of Richmond.

READ MORE: UPDATE: Suspect In Attempted Armed Carjacking Killed In Shootout With San Jose Police

KCBS’ Dave Padilla Reports:

Nearly 125 million gallons of raw and partially treated sewage was spilled into the bay since October, according to the U.S. Environmental Protection Agency, San Francisco Baykeeper and other groups.

READ MORE: Marin Brewing Company Shutting Down After 3 Decades Due To Pandemic Struggles

The court’s order said the sewer districts must make substantial improvements to reduce sewage spills to the bay.

Sewage contains pathogens that can poison the bay’s food web, local wildlife and cause a number of human illnesses, according to regulators.

MORE NEWS: Queen Of The Valley Hospital Workers Stage Picket Over Pandemic Staffing, Pay Issues

(Copyright 2011 by CBS San Francisco. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. Wire services may have contributed to this report.)