WASHINGTON (Reuters) - Equifax Inc EFX.N was alerted in March to the software security vulnerability that led to hackers obtaining personal information of more than 140 million Americans but took months to patch it, its former CEO said in testimony to be delivered to Congress on Tuesday.

FILE PHOTO: Credit reporting company Equifax Inc. corporate offices are pictured in Atlanta, Georgia, U.S., September 8, 2017. REUTERS/Tami Chappell/File Photo

“It appears that the breach occurred because of both human error and technology failures,” former CEO Richard Smith said in written testimony released on Monday by the Energy and Commerce Committee.

Separately, Equifax said late Monday that an outside review determined about 2.5 million additional U.S. consumers were potentially impacted, for a revised total of 145.5 million.

The company said the review also found that just 8,000 Canadian citizens were impacted, rather than up to 100,000 Canadians, as previously announced.

Equifax was alerted to the breach by the U.S. Homeland Security Department on March 9, Smith said in the testimony, but it was not patched.

On March 15, Equifax’s information security department ran scans that should have identified any systems that were vulnerable to the software issue but did not, the testimony said.

As a result, “the vulnerability remained in an Equifax web application much longer than it should have,” Smith said. “It was this unpatched vulnerability that allowed hackers to access personal identifying information.”

In his testimony, Smith said it appears the first date hackers accessed sensitive information may have been on May 13. He said “between May 13 and July 30, there is evidence to suggest that the attacker(s) continued to access sensitive information.”

Smith said security personnel noticed suspicious activity on July 29 and disabled the web application on July 30, ending the hacking. He said he was alerted the following day, but was not aware of the scope of the stolen data.

On Aug. 2, the company alerted the FBI and retained a law firm and consulting firm to provide advice. Smith notified the board’s lead director on Aug. 22.

Smith, 57, said he was retiring last week and would forgo this year’s bonus as criticism mounts over the attack, which was not made public until Sept. 7 and has prompted investigations by multiple federal and state agencies, including a criminal probe by the U.S. Justice Department.

“I am here today to apologize to the American people myself,” he said.

Smith also apologized for the company’s response after the data breach was made public, including the “rollout of our website and call centers, which in many cases added to the frustration of American consumers.”

He also said another well-known, independent expert consulting firm “has been retained to perform a top-to-bottom assessment of the company’s information security systems.”

Smith will testify at three separate congressional hearings this week.