CVE-2020-5395
published 2020-01-03CVE-2020-5395: FontForge 20190801 has a use-after-free in SFD_GetFontMetaData in sfd.c.
PriorityP341high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
2.48%
82.9th percentile
FontForge 20190801 has a use-after-free in SFD_GetFontMetaData in sfd.c.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | fontforge | < fontforge 1:20201107~dfsg-1 (bookworm) | fontforge 1:20201107~dfsg-1 (bookworm) |
| fedoraproject | fedora | — | — |
| fontforge | fontforge | — | — |
| fontforge | fontforge | >= 0 < 1:20201107~dfsg-1 | 1:20201107~dfsg-1 |
| fontforge | fontforge | >= 0 < 1:20201107~dfsg-1 | 1:20201107~dfsg-1 |
| fontforge | fontforge | >= 0 < 1:20201107~dfsg-1 | 1:20201107~dfsg-1 |
| fontforge | fontforge | >= 0 < 1:20201107~dfsg-1 | 1:20201107~dfsg-1 |
| opensuse | leap | — | — |
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.8HIGH
vendor_redhat8.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
fontforge: SFD_GetFontMetaData() insufficient CVE-2020-5395 backport
vendor_redhat·2020-01-21·CVSS 8.8
CVE-2020-25690 [HIGH] CWE-119 fontforge: SFD_GetFontMetaData() insufficient CVE-2020-5395 backport
fontforge: SFD_GetFontMetaData() insufficient CVE-2020-5395 backport
An out-of-bounds write flaw was found in FontForge in versions before 20200314 while parsing SFD files containing certain LayerCount tokens. This flaw allows an attacker to manipulate the memory allocated on the heap, causing the application to crash or execute arbitrary code. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
An out-of-bounds write flaw was found in FontForge while parsing SFD files containing certain LayerCount tokens. This flaw allows an attacker to manipulate the memory allocated on the heap, causing the application to crash or execute arbitrary code. The highest threat from this vulnerability is to confidentiality, integrity, as well as syst
Red Hat
fontforge: out-of-bounds write in SFD_GetFontMetaData function in sfd.c
vendor_redhat·2020-01-03·CVSS 8.8
CVE-2020-5395 [HIGH] CWE-119 fontforge: out-of-bounds write in SFD_GetFontMetaData function in sfd.c
fontforge: out-of-bounds write in SFD_GetFontMetaData function in sfd.c
FontForge 20190801 has a use-after-free in SFD_GetFontMetaData in sfd.c.
An out-of-bounds write was discovered in fontforge while parsing SFD files containing very large LayerCount tokens. The flaw allows an attacker to overwrite data before a buffer allocated on the heap, thus causing the application to crash or execute arbitrary code.
Statement: Impact of the flaw set to Moderate since upstream does not consider a network-facing application that accepts untrusted font files as a reasonable use of fontforge tool/library, making the impact of a possible exploitation of this flaw smaller.
Package: fontforge (Red Hat Enterprise Linux 6) - Out of support scope
Debian
CVE-2020-5395: fontforge - FontForge 20190801 has a use-after-free in SFD_GetFontMetaData in sfd.c.
vendor_debian·2020·CVSS 8.8
CVE-2020-5395 [HIGH] CVE-2020-5395: fontforge - FontForge 20190801 has a use-after-free in SFD_GetFontMetaData in sfd.c.
FontForge 20190801 has a use-after-free in SFD_GetFontMetaData in sfd.c.
Scope: local
bookworm: resolved (fixed in 1:20201107~dfsg-1)
bullseye: resolved (fixed in 1:20201107~dfsg-1)
forky: resolved (fixed in 1:20201107~dfsg-1)
sid: resolved (fixed in 1:20201107~dfsg-1)
trixie: resolved (fixed in 1:20201107~dfsg-1)
GHSA
GHSA-hjq7-xwrq-jpwv: FontForge 20190801 has a use-after-free in SFD_GetFontMetaData in sfd
ghsa_unreviewed·2022-05-24
CVE-2020-5395 [MEDIUM] CWE-416 GHSA-hjq7-xwrq-jpwv: FontForge 20190801 has a use-after-free in SFD_GetFontMetaData in sfd
FontForge 20190801 has a use-after-free in SFD_GetFontMetaData in sfd.c.
OSV
CVE-2020-5395: FontForge 20190801 has a use-after-free in SFD_GetFontMetaData in sfd
osv·2020-01-03·CVSS 8.8
CVE-2020-5395 [HIGH] CVE-2020-5395: FontForge 20190801 has a use-after-free in SFD_GetFontMetaData in sfd
FontForge 20190801 has a use-after-free in SFD_GetFontMetaData in sfd.c.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2020-25690 fontforge: SFD_GetFontMetaData() insufficient CVE-2020-5395 backport
bugzilla·2020-10-30·CVSS 8.8
CVE-2020-25690 [HIGH] CVE-2020-25690 fontforge: SFD_GetFontMetaData() insufficient CVE-2020-5395 backport
CVE-2020-25690 fontforge: SFD_GetFontMetaData() insufficient CVE-2020-5395 backport
RHSA-2020:1921 fixed CVE-2020-5395 by backporting an upstream patch. However, this backport was later found to introduce another issue causing an incorrect amount of heap memory space to be allocated, which could ultimately result in out of bounds heap memory manipulation when processing a specially crafted font file. This new problem was fixed upstream in a subsequent patch and, to our knowledge, no versioned upstream release was ever affected. Unfortunately, the Red Hat Enterprise Linux 8 fontforge package is affected.
Original first patch:
https://github.com/fontforge/fontforge/commit/048a91e2682c1a8936ae34dbc7bd70291ec05410
Additional patch required:
https://github.com/fontforge/fontforge/commit/b962
Bugzilla
CVE-2020-5395 fontforge: out-of-bounds write in SFD_GetFontMetaData function in sfd.c
bugzilla·2020-01-11·CVSS 8.8
CVE-2020-5395 [HIGH] CVE-2020-5395 fontforge: out-of-bounds write in SFD_GetFontMetaData function in sfd.c
CVE-2020-5395 fontforge: out-of-bounds write in SFD_GetFontMetaData function in sfd.c
FontForge 20190801 has a out-of-bounds write in SFD_GetFontMetaData in sfd.c.
Upstream issue:
https://github.com/fontforge/fontforge/issues/4084
Discussion:
Created fontforge tracking bugs for this issue:
Affects: fedora-all [bug 1790042]
---
Upstream fix:
https://github.com/fontforge/fontforge/commit/048a91e2682c1a8936ae34dbc7bd70291ec05410
---
Vulnerable versions of fontforge allows to set the layer_cnt field of the SplineFont parser to a very big number, which is parsed as a negative number, through the usage of the LayerCount token. This bypass the reallocation of the layers array and subsequently, during the parsing of the Layer token, it writes starting one byte before the beginning of the
Bugzilla
CVE-2020-5395 fontforge: out-of-bounds write in SFD_GetFontMetaData function in sfd.c [fedora-all]
bugzilla·2020-01-11·CVSS 8.8
CVE-2020-5395 [HIGH] CVE-2020-5395 fontforge: out-of-bounds write in SFD_GetFontMetaData function in sfd.c [fedora-all]
CVE-2020-5395 fontforge: out-of-bounds write in SFD_GetFontMetaData function in sfd.c [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multip
http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00041.htmlhttps://github.com/fontforge/fontforge/issues/4084https://lists.debian.org/debian-lts-announce/2024/03/msg00007.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2S75EAVF4KPCH3WFBMZADUAU7EAXA7ZQ/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MH6PKVQLBKIO7LQPDXB3MKI5I6AMDCN6/https://security.gentoo.org/glsa/202004-14http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00041.htmlhttps://github.com/fontforge/fontforge/issues/4084https://lists.debian.org/debian-lts-announce/2024/03/msg00007.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2S75EAVF4KPCH3WFBMZADUAU7EAXA7ZQ/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MH6PKVQLBKIO7LQPDXB3MKI5I6AMDCN6/https://security.gentoo.org/glsa/202004-14
2020-01-03
Published