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: Person Lying In Roadway Run Over, Killed In Fremont

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: Convicted Killer Harold Bicknell's Parole Rescinded; Killed Grandmother, Cousins, Aunt In 1977 Seaside Mass Slaying

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: Eye On Earth: Battle Lines Set Over Proposal To Drill For Natural Gas in Suisun Marsh

(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.)