CVE-2021-25634

NameCVE-2021-25634
DescriptionLibreOffice 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 modify a digitally signed ODF document to insert an additional signing time timestamp which LibreOffice would incorrectly present as a valid signature signed at the bogus signing time. This issue affects: The Document Foundation LibreOffice 7-0 versions prior to 7.0.6; 7-1 versions prior to 7.1.2.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-4988-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libreoffice (PTS)jessie, jessie (lts)1:4.3.3-2+deb8u15fixed
stretch (security)1:5.2.7-1+deb9u11fixed
stretch (lts), stretch1:6.1.5-3~deb9u2fixed
buster1:6.1.5-3+deb10u7vulnerable
buster (security)1:6.1.5-3+deb10u11vulnerable
bullseye1:7.0.4-4+deb11u8fixed
bullseye (security)1:7.0.4-4+deb11u9fixed
bookworm4:7.4.7-1+deb12u1fixed
bookworm (security)4:7.4.7-1+deb12u2fixed
sid, trixie4:24.2.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libreofficesourcejessie(not affected)
libreofficesourcestretch(not affected)
libreofficesourcebullseye1:7.0.4-4+deb11u1DSA-4988-1
libreofficesource(unstable)1:7.2.0-2

Notes

[buster] - libreoffice <ignored> (Risk doesn't warrant complex backport)
[stretch] - libreoffice <not-affected> (XAdES / xades:SigningTime support introduced in 5.3)
https://www.libreoffice.org/about-us/security/advisories/CVE-2021-25634
https://www.openwall.com/lists/oss-security/2021/10/11/2
XAdES/xades:SigningTime support introduced in 5.3, but pre-requisite for CVE-2021-25633/25634 also introduces it
Pre-requisites (replacement for XSecParser):
https://github.com/LibreOffice/core/commit/ad5930e87e788780a255523f106deb1dde5d7b37 (7-0)
https://github.com/LibreOffice/core/commit/d92235df75829a8cf2ee8cc7b0b76063093b6cc2 (7-1)
Fixed by: https://github.com/LibreOffice/core/commit/abe77c4fcb9ea97d9fff07eaea6d8863bcba5b02 (7-0)
Fixed by: https://github.com/LibreOffice/core/commit/94ce59dd02fcfcaa1eb4f195b45a9a2edbd58242 (7-0)
Fixed by: https://github.com/LibreOffice/core/commit/89befefb98487a27bff1003084e1200320828b3f (7-1)
Fixed by: https://github.com/LibreOffice/core/commit/b776cf1281660cf495e12824872576bb8e99d569 (7-1)
[stretch] - libreoffice <ignored> (Risk doesn't warrant complex backport)
[jessie] - libreoffice <not-affected> (XAdES / xades:SigningTime support introduced in 5.3)

Search for package or bug name: Reporting problems