This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

(CNN) — A French magazine has stoked controversy by publishing pictures of Catherine, the Duchess of Cambridge, topless while on vacation with Prince William, prompting the threat of legal action from palace officials over what they blasted as a “grotesque” invasion of privacy.

The pictures were taken while the couple was staying at a private chateau in Provence, in southern France, according to Closer magazine.

A St. James’s Palace spokesman said the pair were “hugely saddened to learn that a French publication and a photographer have invaded their privacy in such a grotesque and totally unjustifiable manner.

“The incident is reminiscent of the worst excesses of the press and paparazzi during the life of Diana, Princess of Wales, and all the more upsetting to The Duke and Duchess for being so.

“Their Royal Highnesses had every expectation of privacy in the remote house. It is unthinkable that anyone should take such photographs, let alone publish them.

“Officials acting on behalf of Their Royal Highnesses are consulting with lawyers to consider what options may be available to The Duke and Duchess.”

The pair remain focused on their tour on behalf of Queen Elizabeth II, the palace spokesman said.

William and Catherine are in Malaysia as they carry out a nine-day Southeast Asian tour of Commonwealth nations, which started in Singapore.

A royal source told CNN the Duchess of Cambridge is “upset” with the French magazine.

The photographs, which are grainy and appear to have been taken with a long lens, cannot be accessed on the website of Closer in France, which shows only the magazine’s front cover with heavily blurred-out images.

St. James’s Palace officials told CNN they “believe a red line has been crossed” and are consulting with French lawyers.

Laurence Pieau, editor-in-chief of Closer in France, posted several comments on Twitter late Thursday promoting the images’ release.

One said: “The world exclusive of #closer tomorrow is Kate Middleton as you have never seen her … and as you will never see her again.”

Another read: “For kate middleton to have tan lines she would have to be wearing a swimsuit!”

A string of negative comments from members of the public has already been posted on the French Closer magazine’s Facebook page.

One, written in French, said: “Your behavior is unacceptable, you’re as bad as the English tabloids. You have gone too far with the photos of Kate topless and it will cost you a lot I hope. Shameful.”

The photographs’ publication comes only three weeks after the British royal family was caught up in a media furor over images of William’s younger brother, Prince Harry, partying naked in his Las Vegas hotel room.

Those photographs were widely circulated online but were published in only one UK tabloid, The Sun. The press Complaints Commission, the UK press watchdog, received about 3,800 complaints from the public but said it was inappropriate for it to take any action in the absence of a formal complaint from the palace.

The furor over the topless pictures of Catherine threaten to overshadow what has until now been a well-received tour in Asia, undertaken as part of the queen’s diamond jubilee celebrations.

The Duchess of Cambridge gave her first public speech in Malaysia’s capital, Kuala Lumpur, on Thursday, at a hospice for terminally ill children and adults. She is the patron of a charity supporting children’s hospices in East Anglia, England.

The royal couple will be in Malaysia until Sunday before heading to the Solomon Islands and Tuvalu.

The Duchess of Cambridge was very conservatively dressed as she visited a mosque in Kuala Lumpur on Friday.

There was also a security scare when a man lunged at Catherine and tried to give her a flower as she and William left a festival of Malaysian dancing in a park in the capital.

A man was arrested over the incident, a palace source said.

“The Duchess was getting into the car and the Duke was walking round to the other side of the car when an enthusiastic member of the public tried to give her a flower,” he told CNN.

“He was very close, right up against the car. He was arrested by local police officers. Royal protection officers were not involved, though they had noticed him in the crowd earlier on. The Duke and Duchess were not in any danger at all at any point.”

William and Harry have been very sensitive to issues around invasion of privacy since the death of their mother, Diana, in a car crash as she fled a crowd of photographers in Paris 15 years ago.

It is not yet clear what form any legal action against Closer magazine by the Duke and Duchess of Cambridge might take.

French magazine VSD was fined 2,000 euros ($2,580) last week after it published a photo of Valerie Trierweiler, partner of French President Francois Hollande, in a bikini on its front cover, CNN affiliate BFM-TV reports.

Trierweiler is also taking legal action against other French magazines that published images of her and Hollande in swimwear while on vacation, BFM-TV says.

The French Closer magazine is run by a different company from the magazine of the same name in the United Kingdom.

The British media is under close scrutiny after revelations of phone hacking and other abuses. The conclusions of an independent judge-led inquiry, which may recommend greater restrictions on media freedoms, are expected by the end of the year.