A trashed passenger on a flight from Honolulu to Kennedy Airport molested another flier — right in front of the victim’s startled wife — and then exposed himself, court papers state.

Ricardo Caceres sat down in an aisle seat of a Hawaiian Airlines flight to New York on Saturday and immediately began boozing heavily, according to court papers.

Suddenly, the perverted flier allegedly began touching the chest, groin and belt of the man sitting next to him in the middle seat. The victim’s aghast wife was sitting in the window seat.

“The [victim] asked the defendant what he was doing,” according to a Brooklyn federal court complaint.

Caceres then calmly removed his trousers and began pleasuring himself, the complaint states.

“The passenger and his wife both saw the defendant fully exposed, after which the passenger notified the flight crew,” court papers state.

“Two members of the flight crew responded, observed the defendant fully exposed with his pants off and instructed him to put his clothing back on, which the defendant did,” according to the complaint.

Caceres then behaved until the plane touched down at JFK.

He was arrested at the airport and hauled into Brooklyn federal court, where he was arraigned Sunday.

Caceres was released on $25,000 bond, papers state.