The legal implications can vary depending on the nature of the information, how it was obtained, and the jurisdiction. Generally, the publication of confidential information may lead to lawsuits such as invasion of privacy or breach of confidentiality if not balanced against the public interest in freedom of speech and information dissemination.
For example: A journalist publishes a leaked document detailing government corruption. Although the document was confidential, its publication may be protected if it serves a significant public interest by exposing wrongdoing.