Pamela Anderson is alleging that Tim Allen flashed his penis at her on the set of Home Improvement when she was 23 years old.

Pamela Anderson shared a disturbing incident that took place on the set of “Home Improvement” in 1991 when she was 23 years old and alleged that Tim Allen flashed his penis at her on the set, People reported.

"On the first day of filming, I walked out of my dressing room, and Tim was in the hallway in his robe. He opened his robe and flashed me quickly — completely naked underneath. He said it was only fair because he had seen me naked. Now we're even. I laughed uncomfortably." according to an excerpt from Pamela's soon-to-be-released memoir, Love, Pamela.

Allen, who was 37 at the time of the alleged incident in 1991, was presumably referring to Anderson’s modeling for Playboy. However, Allen denies the claims altogether and said that the incident never happened, Variety reported.

"No, it never happened. I would never do such a thing," Allen said.

“Home Improvement” marked one of Anderson’s earliest credits. In the show, she played Lisa the Tool Girl. The series quickly became the No. 1 TV series in the United States. She appeared in the first two seasons of the sitcom before leaving to focus on “Baywatch.”

Anderson is getting ready to release a new documentary and memoir where she will finally tell her life story in her own words. Anderson said that it was her two sons Brandon, 26, and Dylan, 25, whom she shares with ex-husband Tommy Lee who encouraged her to tell her life story.

"[There's] a little bit of anxiety before it comes out, because this has been a year, basically, of therapy, going through my life from my first memory to my last memory," said Pamela about writing her memoir.

"I'm really proud of it. It is something I wrote every word of. I didn't have a collaborator. I didn't have any ghostwriter, nothing."

"It's just one girl's story of how I made it through: a small-town girl going to Los Angeles and just going through all the wild and crazy adventures I did and then circling back and going home," Anderson added.

Anderson's documentary, Pamela, a Love Story, and her memoir, Love, Pamela, will both be available from Jan. 31 onwards.