Leaking pipes. Moldering walls. Condemned offices and balconies. Plumbing that can’t handle its load and a stormwater system dumping unfiltered rainwater into the Severn River.

These aren’t the issues of a long-abandoned factory. They describe the current condition of the Naval Academy.

Infrastructure at the naval institution in Annapolis has degraded to the point of threatening the school’s ability to train and educate midshipmen, according to a report by the Naval Audit Service. The 2018 audit, obtained by The Capital through a Freedom of Information Act request, details failing buildings, classrooms and athletic facilities — which in some cases actively leak, overheat and threaten user safety.

Buildings including Nimitz Library and Macdonough Hall were built decades ago but never fully updated, causing critical systems to outlive their usefulness. Auditors fear the conditions jeopardize academy accreditation, endanger midshipmen and visitors and violate several federal laws.

The report took stock of 13 unfunded maintenance or renovation projects spread among 15 facilities between March 6, 2017, and April 26. Ten of these facilities are highly important to the academy mission, according to its internal rating system. But of those 10, four rated “poor to fair” and five rated “failing to poor” at supporting the academy’s ultimate goal — to ready midshipmen for Naval service.

The auditors found a maintenance backlog exacerbated by steep funding cuts after the Naval Academy lost its Flagship Institution designation to the 2013 federal budget sequester. The designation promised the academy funding for both regular repairs and major renovations.

To dam the deluge of problems, the Navy restored the Flagship Institution designation for the academy, Naval Postgraduate School, and Naval War College. The academy will get $15 million every other year, beginning in fiscal 2020. The Navy will also support the maintenance budget at a higher level.

“USNA concurs with the findings of the audit,” Cmdr. David McKinney, a Naval Academy spokesman, said in a prepared statement. “We look forward to addressing the discrepancies in the report and with additional funding look forward to ensuring the Naval Academy remains a modern Flagship Institution for the Navy.”

The Naval Academy continues to do emergency maintenance, but to fund large-scale infrastructure projects, the school competes for money against other projects in the Washington, D.C., Naval District.

Even with the new money, it would take years to address all of the problems listed in the audit.

A project to repair the HVAC system in Rickover received $44.5 million in funding in August 2017. The Chapel will undergo renovation for $8.9 million.

After being stripped during the mandatory cutbacks, the academy’s renovation budget plummeted from about $35 million in fiscal 2012 to less than $5 million in fiscal 2015. The maintenance budget has fluctuated year to year but declined from $35 million in fiscal 2012 to under $25 million in fiscal 2015.

The auditors also pointed to 2015 Navy guidelines that prioritize funding “warfighting” and make Naval Academy requests difficult to justify. Of seven projects submitted to Shore Mission Integration Group, none was funded.

The problems stretch further back than this decade or the last.

The Macdonough Hall gym, built in 1903, has never had a major renovation. And while nearly three-quarters of midshipmen use the gym to stay in shape outside varsity sports, the deteriorating building threatens the Naval Academy’s ability to continue physical training for midshipmen.

The Nimitz Library hosts its own set of problems. Built in 1975 and never updated, the library doesn’t have enough electrical capacity to support visitors and students using laptops and charging cell phones. Some electric panels are obsolete and cannot be replaced.

If someone in a wheelchair wants to navigate between the stacks, that person likely can’t.

Among the most startling discoveries, the library sprinkler system does not cover the entirety of the building — and the fire alarm system “is antiquated and does not provide mass notification,” according to the report. It didn’t work for most of 2016 and some of 2017.