Vulnerabilities > CVE-2017-11572 - Out-of-bounds Read vulnerability in Fontforge 20161012

047910
CVSS 7.8 - HIGH
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
local
low complexity
fontforge
CWE-125
nessus

Summary

FontForge 20161012 is vulnerable to a heap-based buffer over-read in readcfftopdicts (parsettf.c) resulting in DoS or code execution via a crafted otf file.

Vulnerable Configurations

Part Description Count
Application
Fontforge
1

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Overread Buffers
    An adversary attacks a target by providing input that causes an application to read beyond the boundary of a defined buffer. This typically occurs when a value influencing where to start or stop reading is set to reflect positions outside of the valid memory location of the buffer. This type of attack may result in exposure of sensitive information, a system crash, or arbitrary code execution.

Nessus

  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-3409-1.NASL
    descriptionIt was discovered that FontForge was vulnerable to a heap-based buffer over-read. A remote attacker could use a crafted file to DoS or execute arbitrary code. (CVE-2017-11568, CVE-2017-11569, CVE-2017-11572) It was discovered that FontForge was vulnerable to a stack-based buffer overflow. A remote attacker could use a crafted file to DoS or execute arbitrary code. (CVE-2017-11571) It was discovered that FontForge was vulnerable to a heap-based buffer overflow. A remote attacker could use a crafted file to DoS or execute arbitrary code. (CVE-2017-11574) It was discovered that FontForge was vulnerable to a buffer over-read. A remote attacker could use a crafted file to DoS or execute arbitrary code. (CVE-2017-11575, CVE-2017-11577) It was discovered that FontForge wasn
    last seen2020-06-01
    modified2020-06-02
    plugin id102957
    published2017-09-05
    reporterUbuntu Security Notice (C) 2017-2019 Canonical, Inc. / NASL script (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/102957
    titleUbuntu 14.04 LTS : fontforge vulnerabilities (USN-3409-1)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Ubuntu Security Notice USN-3409-1. The text 
    # itself is copyright (C) Canonical, Inc. See 
    # <http://www.ubuntu.com/usn/>. Ubuntu(R) is a registered 
    # trademark of Canonical, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(102957);
      script_version("3.6");
      script_cvs_date("Date: 2019/09/18 12:31:47");
    
      script_cve_id("CVE-2017-11568", "CVE-2017-11569", "CVE-2017-11571", "CVE-2017-11572", "CVE-2017-11574", "CVE-2017-11575", "CVE-2017-11576", "CVE-2017-11577");
      script_xref(name:"USN", value:"3409-1");
    
      script_name(english:"Ubuntu 14.04 LTS : fontforge vulnerabilities (USN-3409-1)");
      script_summary(english:"Checks dpkg output for updated packages.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Ubuntu host is missing one or more security-related
    patches."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "It was discovered that FontForge was vulnerable to a heap-based buffer
    over-read. A remote attacker could use a crafted file to DoS or
    execute arbitrary code. (CVE-2017-11568, CVE-2017-11569,
    CVE-2017-11572)
    
    It was discovered that FontForge was vulnerable to a stack-based
    buffer overflow. A remote attacker could use a crafted file to DoS or
    execute arbitrary code. (CVE-2017-11571)
    
    It was discovered that FontForge was vulnerable to a heap-based buffer
    overflow. A remote attacker could use a crafted file to DoS or execute
    arbitrary code. (CVE-2017-11574)
    
    It was discovered that FontForge was vulnerable to a buffer over-read.
    A remote attacker could use a crafted file to DoS or execute arbitrary
    code. (CVE-2017-11575, CVE-2017-11577)
    
    It was discovered that FontForge wasn't correctly checking the sign of
    a vector size. A remote attacker could use a crafted file to DoS.
    (CVE-2017-11576).
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Ubuntu security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://usn.ubuntu.com/3409-1/"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected fontforge and / or fontforge-common packages."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:fontforge");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:fontforge-common");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:14.04");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2017/07/23");
      script_set_attribute(attribute:"patch_publication_date", value:"2017/09/04");
      script_set_attribute(attribute:"plugin_publication_date", value:"2017/09/05");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"Ubuntu Security Notice (C) 2017-2019 Canonical, Inc. / NASL script (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Ubuntu Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/cpu", "Host/Ubuntu", "Host/Ubuntu/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("ubuntu.inc");
    include("misc_func.inc");
    
    if ( ! get_kb_item("Host/local_checks_enabled") ) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/Ubuntu/release");
    if ( isnull(release) ) audit(AUDIT_OS_NOT, "Ubuntu");
    release = chomp(release);
    if (! preg(pattern:"^(14\.04)$", string:release)) audit(AUDIT_OS_NOT, "Ubuntu 14.04", "Ubuntu " + release);
    if ( ! get_kb_item("Host/Debian/dpkg-l") ) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Ubuntu", cpu);
    
    flag = 0;
    
    if (ubuntu_check(osver:"14.04", pkgname:"fontforge", pkgver:"20120731.b-5ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"14.04", pkgname:"fontforge-common", pkgver:"20120731.b-5ubuntu0.1")) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : ubuntu_report_get()
      );
      exit(0);
    }
    else
    {
      tested = ubuntu_pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "fontforge / fontforge-common");
    }
    
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-1065.NASL
    descriptionFontForge is vulnerable to heap-based buffer over-read in several functions, resulting in DoS or code execution via a crafted otf file : For Debian 7
    last seen2020-03-17
    modified2017-08-28
    plugin id102785
    published2017-08-28
    reporterThis script is Copyright (C) 2017-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/102785
    titleDebian DLA-1065-1 : fontforge security update
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Debian Security Advisory DLA-1065-1. The text
    # itself is copyright (C) Software in the Public Interest, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(102785);
      script_version("3.4");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2017-11568", "CVE-2017-11569", "CVE-2017-11571", "CVE-2017-11572", "CVE-2017-11574", "CVE-2017-11575", "CVE-2017-11576", "CVE-2017-11577");
    
      script_name(english:"Debian DLA-1065-1 : fontforge security update");
      script_summary(english:"Checks dpkg output for the updated packages.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Debian host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "FontForge is vulnerable to heap-based buffer over-read in several
    functions, resulting in DoS or code execution via a crafted otf file :
    
    For Debian 7 'Wheezy', these problems have been fixed in version
    0.0.20120101+git-2+deb7u1.
    
    We recommend that you upgrade your fontforge packages.
    
    NOTE: Tenable Network Security has extracted the preceding description
    block directly from the DLA security advisory. Tenable has attempted
    to automatically clean and format it as much as possible without
    introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://lists.debian.org/debian-lts-announce/2017/08/msg00017.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://packages.debian.org/source/wheezy/fontforge"
      );
      script_set_attribute(attribute:"solution", value:"Upgrade the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:fontforge");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:fontforge-dbg");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:fontforge-nox");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libfontforge-dev");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libfontforge1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libgdraw4");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:python-fontforge");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:7.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2017/08/26");
      script_set_attribute(attribute:"plugin_publication_date", value:"2017/08/28");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2017-2020 Tenable Network Security, Inc.");
      script_family(english:"Debian Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("debian_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
    if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    if (deb_check(release:"7.0", prefix:"fontforge", reference:"0.0.20120101+git-2+deb7u1")) flag++;
    if (deb_check(release:"7.0", prefix:"fontforge-dbg", reference:"0.0.20120101+git-2+deb7u1")) flag++;
    if (deb_check(release:"7.0", prefix:"fontforge-nox", reference:"0.0.20120101+git-2+deb7u1")) flag++;
    if (deb_check(release:"7.0", prefix:"libfontforge-dev", reference:"0.0.20120101+git-2+deb7u1")) flag++;
    if (deb_check(release:"7.0", prefix:"libfontforge1", reference:"0.0.20120101+git-2+deb7u1")) flag++;
    if (deb_check(release:"7.0", prefix:"libgdraw4", reference:"0.0.20120101+git-2+deb7u1")) flag++;
    if (deb_check(release:"7.0", prefix:"python-fontforge", reference:"0.0.20120101+git-2+deb7u1")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:deb_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-3958.NASL
    descriptionIt was discovered that FontForge, a font editor, did not correctly validate its input. An attacker could use this flaw by tricking a user into opening a maliciously crafted OpenType font file, thus causing a denial-of-service via application crash, or execution of arbitrary code.
    last seen2020-06-01
    modified2020-06-02
    plugin id102825
    published2017-08-30
    reporterThis script is Copyright (C) 2017-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/102825
    titleDebian DSA-3958-1 : fontforge - security update
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Debian Security Advisory DSA-3958. The text 
    # itself is copyright (C) Software in the Public Interest, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(102825);
      script_version("3.3");
      script_cvs_date("Date: 2018/11/10 11:49:38");
    
      script_cve_id("CVE-2017-11568", "CVE-2017-11569", "CVE-2017-11571", "CVE-2017-11572", "CVE-2017-11574", "CVE-2017-11575", "CVE-2017-11576", "CVE-2017-11577");
      script_xref(name:"DSA", value:"3958");
    
      script_name(english:"Debian DSA-3958-1 : fontforge - security update");
      script_summary(english:"Checks dpkg output for the updated package");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Debian host is missing a security-related update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "It was discovered that FontForge, a font editor, did not correctly
    validate its input. An attacker could use this flaw by tricking a user
    into opening a maliciously crafted OpenType font file, thus causing a
    denial-of-service via application crash, or execution of arbitrary
    code."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869614"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://packages.debian.org/source/jessie/fontforge"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://packages.debian.org/source/stretch/fontforge"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.debian.org/security/2017/dsa-3958"
      );
      script_set_attribute(
        attribute:"solution", 
        value:
    "Upgrade the fontforge packages.
    
    For the oldstable distribution (jessie), these problems have been
    fixed in version 20120731.b-5+deb8u1.
    
    For the stable distribution (stretch), these problems have been fixed
    in version 1:20161005~dfsg-4+deb9u1."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:fontforge");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:8.0");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:9.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2017/08/29");
      script_set_attribute(attribute:"plugin_publication_date", value:"2017/08/30");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2017-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Debian Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("debian_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
    if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    if (deb_check(release:"8.0", prefix:"fontforge", reference:"20120731.b-5+deb8u1")) flag++;
    if (deb_check(release:"8.0", prefix:"fontforge-common", reference:"20120731.b-5+deb8u1")) flag++;
    if (deb_check(release:"8.0", prefix:"fontforge-dbg", reference:"20120731.b-5+deb8u1")) flag++;
    if (deb_check(release:"8.0", prefix:"fontforge-nox", reference:"20120731.b-5+deb8u1")) flag++;
    if (deb_check(release:"8.0", prefix:"libfontforge-dev", reference:"20120731.b-5+deb8u1")) flag++;
    if (deb_check(release:"8.0", prefix:"libfontforge1", reference:"20120731.b-5+deb8u1")) flag++;
    if (deb_check(release:"8.0", prefix:"libgdraw4", reference:"20120731.b-5+deb8u1")) flag++;
    if (deb_check(release:"8.0", prefix:"python-fontforge", reference:"20120731.b-5+deb8u1")) flag++;
    if (deb_check(release:"9.0", prefix:"fontforge", reference:"1:20161005~dfsg-4+deb9u1")) flag++;
    if (deb_check(release:"9.0", prefix:"fontforge-common", reference:"1:20161005~dfsg-4+deb9u1")) flag++;
    if (deb_check(release:"9.0", prefix:"fontforge-dbg", reference:"1:20161005~dfsg-4+deb9u1")) flag++;
    if (deb_check(release:"9.0", prefix:"fontforge-nox", reference:"1:20161005~dfsg-4+deb9u1")) flag++;
    if (deb_check(release:"9.0", prefix:"libfontforge-dev", reference:"1:20161005~dfsg-4+deb9u1")) flag++;
    if (deb_check(release:"9.0", prefix:"libfontforge2", reference:"1:20161005~dfsg-4+deb9u1")) flag++;
    if (deb_check(release:"9.0", prefix:"libgdraw5", reference:"1:20161005~dfsg-4+deb9u1")) flag++;
    if (deb_check(release:"9.0", prefix:"python-fontforge", reference:"1:20161005~dfsg-4+deb9u1")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:deb_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");