ID CVE-2021-25633
Summary LibreOffice supports digital signatures of ODF documents and macros within documents, presenting visual aids that no alteration of the document occurred since the last signing and that the signature is valid. An Improper Certificate Validation vulnerability in LibreOffice allowed an attacker to create a digitally signed ODF document, by manipulating the documentsignatures.xml or macrosignatures.xml stream within the document to combine multiple certificate data, which when opened caused LibreOffice to display a validly signed indicator but whose content was unrelated to the signature shown. This issue affects: The Document Foundation LibreOffice 7-0 versions prior to 7.0.6; 7-1 versions prior to 7.1.2.
References
Vulnerable Configurations
  • cpe:2.3:a:libreoffice:libreoffice:7.0.0:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.0.3:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.1.2:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.1.2:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.2.2:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.2.2:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.4:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.4:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.4.1:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.4.2:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.5:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.5:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.0.5.2:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.0.5.2:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:libreoffice:libreoffice:7.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:libreoffice:libreoffice:7.1.1:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
    cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
CVSS
Base: 5.0 (as of 18-10-2021 - 18:13)
Impact:
Exploitability:
CWE CWE-295
CAPEC
  • Creating a Rogue Certification Authority Certificate
    An adversary exploits a weakness in the MD5 hash algorithm (weak collision resistance) to generate a certificate signing request (CSR) that contains collision blocks in the "to be signed" part. The adversary specially crafts two different, but valid X.509 certificates that when hashed with the MD5 algorithm would yield the same value. The adversary then sends the CSR for one of the certificates to the Certification Authority which uses the MD5 hashing algorithm. That request is completely valid and the Certificate Authority issues an X.509 certificate to the adversary which is signed with its private key. An adversary then takes that signed blob and inserts it into another X.509 certificate that the attacker generated. Due to the MD5 collision, both certificates, though different, hash to the same value and so the signed blob works just as well in the second certificate. The net effect is that the adversary's second X.509 certificate, which the Certification Authority has never seen, is now signed and validated by that Certification Authority. To make the attack more interesting, the second certificate could be not just a regular certificate, but rather itself a signing certificate. Thus the adversary is able to start their own Certification Authority that is anchored in its root of trust in the legitimate Certification Authority that has signed the attackers' first X.509 certificate. If the original Certificate Authority was accepted by default by browsers, so will now the Certificate Authority set up by the adversary and of course any certificates that it signs. So the adversary is now able to generate any SSL certificates to impersonate any web server, and the user's browser will not issue any warning to the victim. This can be used to compromise HTTPS communications and other types of systems where PKI and X.509 certificates may be used (e.g., VPN, IPSec).
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
NONE PARTIAL NONE
cvss-vector via4 AV:N/AC:L/Au:N/C:N/I:P/A:N
Last major update 18-10-2021 - 18:13
Published 11-10-2021 - 17:15
Last modified 18-10-2021 - 18:13
Back to Top