The city is scrambling to reinspect the common areas of 2,300 buildings and an additional 201 apartments that house low-income New Yorkers — after discovering that federal rules for dealing with peeling paint that might contain poisonous lead were routinely violated, officials said Tuesday.

Two days before statewide primaries and on the 17th anniversary of 9/11, Department of Housing Preservation and Development officials revealed that they had identified the violations at buildings and apartments in the federal voucher program known as Section 8.

The buildings are all privately owned but must comply with federal Housing and Urban Development rules that are overseen by HPD.

The widest mistake covers the common areas at 2,300 buildings — containing 3,654 households — where HPD recently discovered that landlords weren’t complying with federal rules for removing or remediating potential lead paint.

HPD also failed to follow up with landlords at an additional 186 apartment units who were ordered to fix peeling paint that might contain lead, which was uncovered after the units were vacated.

“Because HPD did not presume the presence of lead, process enhancements needed to be made to ensure owner adherence to all federal guidelines for lead paint removal,” the agency said in a press release riddled with bureaucratic speak.

An additional 15 apartments in 1- or 2-family homes with similar issues have already been re-inspected after lead paint rule violations by the landlords were discovered, agency officials said.

HPD officials didn’t immediately respond to a host of questions — including when they learned of the failures and why they didn’t publicize them until well after the agency had begun correcting them.

The city’s public housing authority has been embroiled in a lead paint scandal since November 2017, when city investigators found that NYCHA had failed to conduct required annual inspections for lead paint between August 2012 and May 2016 — even as agency officials asserted that they were.

After initially saying just 19 kids registered elevated blood lead levels at NYCHA between 2012 and 2016, city health officials only recently revealed the true number to be 1,160 impacted kids between 2012 and June 2018.