High-ranking Drug Enforcement Agency officials and their field agents threw wild sex parties with hookers hired by Colombian drug lords, the feds charged Thursday.

At least 10 federal workers partied with prostitutes paid for by drug cartels at private “living quarters” — as American taxpayers footed the bill for the playboy pad, according to a report released by the Justice Department.

The report does not reveal the country in which the DEA agents were stationed — but a law-enforcement official familiar with the case confirmed it was Colombia, according to The Washington Post.

“Although some of the DEA agents participating in these parties denied it, the information in the case file suggested they should have known the prostitutes in attendance were paid with cartel funds,” the report by Inspector General Michael Horowitz states.

The romps “created potential security risks for the DEA and for the agents . . . potentially exposing them to extortion, blackmail or coercion.”

In one case, special agents allegedly bought prostitutes for a senior official’s farewell bash.

In another, a regional director failed to report his underlings were “frequenting a brothel,” according to the report.

Seven of the 10 agents, who were not named in the report, admitted they had been to the orgies, held between 2005 and 2008.

They were slapped on the wrist with two- to 10-day suspensions, according to the Justice report.

A DEA inspector defended the behavior by saying, “Prostitution is considered a part of the local culture and is tolerated in certain areas,’’ the report says.

Three special agents were also showered with money, expensive gifts and weapons from drug- cartel members.

Horowitz launched the investigation after a scandal in which Secret Service agents were accused of hiring prostitutes the night before President Obama arrived in Cartagena, Colombia, in 2012.

A total of 26 DEA agents also solicited sex with prostitutes between 2009 and 2012, the report claims.

The investigation focused on sexual misconduct at the DEA, FBI, US Marshals Service, and Bureau of Alcohol, Tobacco, Firearms and Explosives.