A boozed-up commercial pilot who was a passenger aboard a United flight from Hong Kong to San Francisco told a flight attendant he was “horny” — and then molested a woman sitting beside him, according to court documents.

When Anne Dowling boarded her flight in July 2016, United upgraded her from economy class to business, placing her next to Monte Wedl, a FedEx captain who was served “at least three to four vodka sodas,” according to the lawsuit she filed last week in Colorado District Court.

Wedl, 47, who has since been dismissed by FedEx, downed alcohol along with the prescription sleep drug Ambien. He later got out of his seat and told a flight attendant that he had been away from home for a couple of months, “missed his wife, and he is horny,” according to the suit.

Eva Yu, the crew member, told him to return to his seat, which he did.

But when Dowling awoke at one point, she found Wedl’s “hand on the back of her leg near her buttock. She removed his hand and fell back asleep,” the lawsuit alleges.

When she woke up a second time, Wedl’s hand was “rubbing her thigh, grabbing her butt, and attempting to reach into her pants. She cried ‘stop’ and he withdrew his hand from her body.”

And when she asked him what he was doing, Wedl — the father of a young girl — merely smiled at her creepily, claimed Dowling.

But things got worse when she again realized she was being violated, as Wedl “forced his hand between Dowling’s body and her own hand. He then firmly began rubbing her vagina through her clothes,” according to the suit.

At the same time, the alleged creep “was rapidly masturbating underneath his blanket,” leading Dowling to recoil in horror and telling him to stop — but he said something along the lines of “I think you’re horny and I’m horny too,” she alleges.

Dowling reported the incident to a flight attendant and asked to be moved, but the employee told her there were no open seats and suggested that she speak to her assailant instead.

The woman then spoke to the purser, who said the man’s actions were “not OK, but I’m not shocked.” The purser finally moved Dowling to another seat in the same row.

After landing early on July 9, 2016, in San Francisco, Dowling said Wedl had the gall to ask her why she had moved seats.

Dowling, who later boarded another flight to Denver, reported the incident to United, San Francisco police and the FBI.

A criminal complaint was filed against Wedl on Dec. 5 that year in the US District Court for the Northern District of California — but he was acquitted of all charges six months later.

In her civil suit, Dowling is seeking $75,000 in damages from the airline and Wedl, claiming she has been diagnosed with PTSD and is suffering from a host of psychological conditions and a financial fallout.

She accuses United of serving “excessive alcohol” to Wedl,” saying that despite being informed of his “inappropriate, sexualized behavior,” the cabin crew “took absolutely no precautionary measures” to prevent the attack.

Wedl’s LinkedIn page lists him as a 16-year pilot for FedEx, but an airline spokeswoman told The Post late Tuesday that he is no longer an employee.

“Wedl has not flown for the company since we were first made aware of these allegations,” FedEx spokeswoman Shannon Davis said.

He could not be reached for comment and Dowling’s attorney Robert Stepans did not respond to a request for comment.

United rep Erin Benson Scharra said she could not comment on the case because of pending litigation.

“Safety is our top priority and we’re always looking for more we can do to ensure the safety and security of the hundreds of thousands of people who fly United every day,” she said in a statement.

United has been hit with a number of embarrassing incidents recently, including the death of Kokito, a Queens family’s French bulldog that suffocated aboard a flight after a flight attendant told them to store it in an overhead bin.

In April 2017, a Kentucky doctor was injured when he was dragged off an overbooked flight because he refused to give up his seat. Dr. David Dao and United Airlines later reached an “amicable settlement.”