State Department investigators subpoenaed the Clinton Foundation last fall looking for documents involving Hillary Clinton’s longtime aide Huma Abedin, a report said Thursday.

The department’s inspector general asked for records about the six months in 2012 that Abedin was working for the foundation, the department, Clinton’s personal office and a private consulting firm with ties to the Clintons, the Washington Post reported.

The paper said the subpoenas also focused on foundation projects that possibly required approval from the feds when Clinton was secretary of state.

And while the investigators were not eyeing Clinton, any probe into one of her closest ­advisers could be another blow to her presidential campaign, ­already staggering after a blowout loss Tuesday to Bernie Sanders in the New Hampshire primary.

Abedin is the wife of disgraced former US Rep. Anthony Weiner.

A foundation representative told the paper that the foundation was not the target of the probe.

A spokesman for the Inspector General’s Office declined to comment.

Reps for Clinton’s presidential campaign and Abedin, the campaign’s co-vice chairwoman, also declined to comment.

The revelation comes after months of controversy over Clinton’s use of a private email server in the basement of her Chappaqua home to conduct ­official business while she was at the State Department.

Although Clinton denied sending or receiving any classified ­emails, federal investigators determined that she had, and the FBI is conducting a criminal probe to determine whether she compromised national security.

Fox News reported last month that the FBI had expanded its probe of the links between the State Department and the foundation — a report that Clinton vigorously denied.

Abedin was the deputy chief of staff at the State Department ­beginning in 2009.

She also cut a deal that allowed her to work at the foundation for the final six months of 2012.

Critics charge that donors wrote checks to the foundation when Clinton was secretary of state to gain influence with her, a charge she denies.

GOP critics, including Iowa Sen. Chuck Grassley, have charged that Abedin’s dual roles with the foundation and State Department, along with her longtime ties to Clinton, created potential conflicts of interest.

The inspector general investigated Abedin in 2015 and found that she was overpaid about $10,000 because of sick-leave and vacation-policy violations. Abedin disputed the ruling.