Article 417 Spanish Criminal Code: Disclosure of official secrets

Article 417 punishes the public authority or official who reveals secrets or information obtained by reason of the office which are not to be divulged, with an aggravated frame where serious harm results and a separate frame where the secrets belong to a private individual.

Also cited as: article 417 Spanish Criminal Code · art. 417 CP · Spanish Penal Code article 417 · artículo 417 del Código Penal.

Wording of Article 417 of the Spanish Criminal Code

1. The public authority or official who reveals secrets or information of which that person has knowledge by reason of the office or position and which are not to be divulged shall incur a fine of twelve to eighteen months and special disqualification from public employment or office for a term of one to three years.

If serious harm to the public interest or to a third party results from the disclosure referred to in the preceding subparagraph, the penalty shall be imprisonment of one to three years and special disqualification from public employment or office for a term of three to five years.

2. Where the secrets belong to a private individual, the penalties shall be imprisonment of two to four years, a fine of twelve to eighteen months and suspension from public employment or office for a term of one to three years.

Working translation prepared by Société Juridique from the consolidated Spanish text published by the Official State Gazette. It has no official status: the only authoritative version is the Spanish original, available at the Official State Gazette and reproduced verbatim in our Spanish-language entry for this provision. Source: Organic Law 10/1995 of 23 November, the Spanish Criminal Code.

Sentencing range. A fine of twelve to eighteen months and special disqualification of one to three years, rising to imprisonment of one to three years where serious harm results and to two to four years where the secrets belong to a private individual.

Elements of the offence

  1. The status of public authority or official.
  2. Knowledge of the secret or information obtained by reason of the office or position.
  3. That the information be one which is not to be divulged, which requires a legal or regulatory basis for that reservation.
  4. An act of disclosure, and, for the aggravated frame, serious harm to the public interest or to a third party.

Defence strategy

Whether the information is reserved. The offence requires the information not to be divulgeable. Information which is publicly accessible, which is subject to the duty of transparency or which had already been disclosed by the administration itself does not satisfy that requirement.

Absence of serious harm. The aggravated frame requires serious harm to the public interest or to a third party. Where no harm is identified, or where it is speculative, the basic frame of a fine applies and the custodial penalty is excluded.

Reporting of unlawful conduct. The disclosure of information in order to report an unlawful act may be covered by the legitimate exercise of a right under Article 20.7, and by the framework on the protection of persons who report breaches. Documenting the internal channels used first is essential.

Attribution of the leak. Where the information circulated among several officials, the attribution of the disclosure to a determinate person requires technical evidence. The access logs and the distribution of the document are the material upon which that attribution is contested.

Defence in this area

If you or your company are facing proceedings in this area, the firm provides defence and prosecution in Alicante and Madrid, with 24-hour assistance to detained persons.

Are you under investigation or facing charges in Spain? Société Juridique acts for foreign nationals throughout Spain, with offices in Alicante and Madrid and a 24-hour custody line. +34 669 30 21 13 or enquire online.

This entry is provided for information only and does not constitute legal advice. The application of any provision depends on the circumstances of the individual case and requires examination of the case file by a qualified lawyer.

Frequently asked questions

What penalty does Article 417 of the Spanish Criminal Code provide for disclosure of official secrets?

A fine of twelve to eighteen months and special disqualification of one to three years, rising to imprisonment of one to three years where serious harm results and to two to four years where the secrets belong to a private individual.

What are the elements of the offence under Article 417 of the Spanish Criminal Code?

The status of public authority or official. Knowledge of the secret or information obtained by reason of the office or position. That the information be one which is not to be divulged, which requires a legal or regulatory basis for that reservation. An act of disclosure, and, for the aggravated frame, serious harm to the public interest or to a third party.

What defence strategy applies to a charge under Article 417 of the Spanish Criminal Code?

Whether the information is reserved. The offence requires the information not to be divulgeable. Information which is publicly accessible, which is subject to the duty of transparency or which had already been disclosed by the administration itself does not satisfy that requirement. Absence of serious harm. The aggravated frame requires serious harm to the public interest or to a third party. Where no harm is identified, or where it is speculative, the basic frame of a fine applies and the custodial penalty is excluded. Reporting of unlawful conduct. The disclosure of information in order to report an unlawful act may be covered by the legitimate exercise of a right under Article 20.7, and by the framework on the protection of persons who report breaches. Documenting the internal channels used first is essential. Attribution of the leak.

Is the English text of Article 417 of the Spanish Criminal Code official?

Working translation prepared by Société Juridique from the consolidated Spanish text published by the Official State Gazette. It has no official status: the only authoritative version is the Spanish original, available at the Official State Gazette and reproduced verbatim in our Spanish-language entry for this provision. Source: Organic Law 10/1995 of 23 November, the Spanish Criminal Code.

Logotipos-abogacia-scje
Paseo De La Castellana 216 8º 28046 Madrid
Alicante – Playa de San Juan Av. Ansaldo 31, local 16, 03540 Alicante
London: 20 Wenlock Road, N1 7GU, United Kingdom
Paris: 72 Faubourg St Honoré, 75008, France
info@societejuridique.com

Société de Conseil Juridique et Expert is a law firm with offices in Madrid, Alicante, London and Paris, specialising in criminal law, technology law and economic and corporate crime. We provide strategic guidance in complex criminal proceedings, intellectual property and technological resources for legal decision-making with advanced forensic analysis. Our multidisciplinary team combines legal experience, legal intelligence and personal attention to deliver effective solutions adapted to each case. Legal assistance available 24 hours a day and online consultations.

Copyright © 2026 Société de Conseil Juridique et Expert S.L.

EspanolEnglishFrancaisРусскийItalianoDeutsch
WhatsApp · Urgencias 24h