{"id":"CVE-2018-16140","aliases":["DEBIAN-CVE-2018-16140","DLA-2073-1","EUVD-2018-7995","GHSA-8j2g-wgpq-4f6c","MGASA-2019-0064","SUSE-SU-2019:1291-1","SUSE-SU-2020:1806-1","UBUNTU-CVE-2018-16140","USN-3760-1","openSUSE-SU-2019:1455-1","openSUSE-SU-2024:11472-1"],"status":"published","title":"A buffer underwrite vulnerability in get_line() (read.c) in fig2dev 3.2.7a allows an attacker to...","description":"A buffer underwrite vulnerability in get_line() (read.c) in fig2dev 3.2.7a allows an attacker to write prior to the beginning of the buffer via a crafted .fig file.","severity":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01431,"percentile":0.7321,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2018-08-29T00:00:00Z","modified":"2026-10-23T18:03:19Z","fixes":[{"ecosystem":"Debian:12","package":"fig2dev","fixed_in":["1:3.2.7a-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"fig2dev","fixed_in":["1:3.2.7a-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"fig2dev","fixed_in":["1:3.2.7a-3"],"sources":["osv"]},{"ecosystem":"Mageia:6","package":"transfig","fixed_in":["3.2.5d-9.2.mga6"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 15","package":"transfig","fixed_in":["3.2.6a-4.3.51"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"transfig","fixed_in":["1:3.2.5.e-1ubuntu1.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"transfig","fixed_in":["1:3.2.5.e-5ubuntu0.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.0","package":"transfig","fixed_in":["3.2.6a-lp151.4.3.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.1","package":"transfig","fixed_in":["3.2.6a-lp151.4.3.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"fig2dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.7a-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"fig2dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.7a-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"fig2dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.7a-3"}]}]},{"source":"osv","ecosystem":"Debian:8","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.5.e-4+deb8u2"}]}],"versions":["1:3.2.5.e-4","1:3.2.5.e-4+deb8u1"],"bundled":3},{"source":"osv","ecosystem":"Mageia:6","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.5d-9.2.mga6"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 15","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.6a-4.3.51"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP4","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.5e-2.8.2"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP4","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.5e-2.8.2"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP5","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.5e-2.8.2"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.5e-2.8.2"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.5.e-1ubuntu1.1"}]}],"versions":["1:3.2.5.d-3ubuntu1","1:3.2.5.e-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.5.e-5ubuntu0.1"}]}],"versions":["1:3.2.5.e-4","1:3.2.5.e-5"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"fig2dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.2.6a-3","1:3.2.6a-4","1:3.2.6a-4ubuntu1","1:3.2.6a-6ubuntu1","1:3.2.6a-6ubuntu1.1","1:3.2.6a-6ubuntu1.1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.5.e-1ubuntu1.1"}]}],"versions":["1:3.2.5.d-3ubuntu1","1:3.2.5.e-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.5.e-5ubuntu0.1"}]}],"versions":["1:3.2.5.e-4","1:3.2.5.e-5"]},{"source":"osv","ecosystem":"openSUSE:Leap 15.0","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.6a-lp151.4.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.1","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.6a-lp151.4.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"transfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.8a-5.1"}]}],"bundled":11}],"products":[{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"fig2dev_project","product":"fig2dev"}],"references":[{"url":"https://sourceforge.net/p/mcj/tickets/28/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://usn.ubuntu.com/3760-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/01/msg00018.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-16140"},{"url":"https://github.com/advisories/GHSA-8j2g-wgpq-4f6c"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-16140","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2019-0064.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=23537","tags":["report"]},{"url":"https://www.suse.com/support/update/announcement/2019/suse-su-20191291-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1106531","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16140","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2020/suse-su-20201806-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1143650","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2019-14275","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2018-16140","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3760-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-16140","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/KCF4K7GDJWORSQSIBKFFBWXZGUW6T5MN/#KCF4K7GDJWORSQSIBKFFBWXZGUW6T5MN","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2017-16899","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19555","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19746","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19797","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-21680","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-21681","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-21682","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-21683","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-3561","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-16140","description":"A buffer underwrite vulnerability in get_line() (read.c) in fig2dev 3.2.7a allows an attacker to write prior to the beginning of the buffer via a crafted .fig file.","status":"published","published":"2018-08-30T01:00:00Z","modified":"2024-08-05T10:17:37.8Z","updated_at":"2026-11-02T14:35:11.426178Z"}],"euvd":[{"id":"EUVD-2018-7995","description":"A buffer underwrite vulnerability in get_line() (read.c) in fig2dev 3.2.7a allows an attacker to write prior to the beginning of the buffer via a crafted .fig file.","status":"published","published":"2018-08-30T01:00:00Z","modified":"2024-08-05T10:17:37Z","updated_at":"2026-11-03T02:39:42.716317Z"}],"ghsa":[{"id":"GHSA-8j2g-wgpq-4f6c","title":"A buffer underwrite vulnerability in get_line() (read.c) in fig2dev 3.2.7a allows an attacker to...","description":"A buffer underwrite vulnerability in get_line() (read.c) in fig2dev 3.2.7a allows an attacker to write prior to the beginning of the buffer via a crafted .fig file.","status":"published","published":"2022-05-13T01:28:47Z","modified":"2023-02-01T05:07:42Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:50:35.618049Z"}],"nvd":[{"id":"CVE-2018-16140","description":"A buffer underwrite vulnerability in get_line() (read.c) in fig2dev 3.2.7a allows an attacker to write prior to the beginning of the buffer via a crafted .fig file.","status":"published","published":"2018-08-30T01:29:00.637Z","modified":"2026-06-17T01:43:45.75Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:04:36.842579Z"}],"osv":[{"id":"CVE-2018-16140","description":"A buffer underwrite vulnerability in get_line() (read.c) in fig2dev 3.2.7a allows an attacker to write prior to the beginning of the buffer via a crafted .fig file.","status":"published","published":"2018-08-30T01:29:00.637Z","modified":"2026-04-16T04:34:54.517421905Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:08.533609Z"},{"id":"DEBIAN-CVE-2018-16140","description":"A buffer underwrite vulnerability in get_line() (read.c) in fig2dev 3.2.7a allows an attacker to write prior to the beginning of the buffer via a crafted .fig file.","status":"published","published":"2018-08-30T01:29:00.637Z","modified":"2026-10-23T18:03:19.43511887Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:30.290351Z"},{"id":"UBUNTU-CVE-2018-16140","description":"A buffer underwrite vulnerability in get_line() (read.c) in fig2dev 3.2.7a allows an attacker to write prior to the beginning of the buffer via a crafted .fig file.","status":"published","published":"2018-08-29T00:00:00Z","modified":"2026-02-04T03:49:24.393814Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:17.496046Z"},{"id":"DLA-2073-1","title":"transfig - security update","status":"published","published":"2020-01-21T00:00:00Z","modified":"2026-03-09T01:23:02.717822Z","updated_at":"2026-11-02T15:46:10.227108Z"},{"id":"MGASA-2019-0064","title":"Updated transfig packages fix security vulnerability","description":"It was discovered that transfig incorrectly handled certain FIG files. An\nattacker could possibly use this to execute arbitrary code\n(CVE-2018-16140).\n","status":"published","published":"2019-02-13T11:08:25Z","modified":"2026-04-16T04:41:34.868480071Z","updated_at":"2026-11-02T15:49:40.793816Z"},{"id":"openSUSE-SU-2019:1455-1","title":"Security update for transfig","description":"This update for transfig fixes the following issues:\n\nSecurity issue fixed:\n\n- CVE-2018-16140: Fixed a buffer underwrite vulnerability in get_line() in\n  read.c, which allowed an attacker to write prior to the beginning of the\n  buffer via specially crafted .fig file (bsc#1106531)\n\nThis update was imported from the SUSE:SLE-15:Update update project.","status":"published","published":"2019-05-27T15:50:04Z","modified":"2026-02-04T03:29:43.104368Z","updated_at":"2026-11-02T16:58:30.784344Z"},{"id":"openSUSE-SU-2024:11472-1","title":"transfig-3.2.8a-5.1 on GA media","description":"These are all security issues fixed in the transfig-3.2.8a-5.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:00:53.12154Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"SUSE-SU-2019:1291-1","title":"Security update for transfig","description":"This update for transfig fixes the following issues:\n\nSecurity issue fixed:\n\n- CVE-2018-16140: Fixed a buffer underwrite vulnerability in get_line() in\n  read.c, which allowed an attacker to write prior to the beginning of the\n  buffer via specially crafted .fig file (bsc#1106531)\n","status":"published","published":"2019-05-20T07:57:18Z","modified":"2026-02-04T03:27:45.377233Z","updated_at":"2026-11-02T15:53:45.926331Z"},{"id":"SUSE-SU-2020:1806-1","title":"Security update for transfig","description":"This update for transfig fixes the following issues:\n\nSecurity issue fixed:\n\n- CVE-2019-14275: Fixed stack-based buffer overflow in the calc_arrow function (bsc#1143650).\n- CVE-2018-16140: Fixed a buffer underwrite vulnerability in get_line() in\n  read.c, which allowed an attacker to write prior to the beginning of the\n  buffer via specially crafted .fig file (bsc#1106531)\n","status":"published","published":"2020-06-30T15:43:39Z","modified":"2026-02-04T03:59:15.684504Z","updated_at":"2026-11-02T15:53:47.634847Z"},{"id":"USN-3760-1","title":"transfig vulnerability","description":"It was discovered that transfig incorrectly handled certain FIG files.\nAn attacker could possibly use this to execute arbitrary code.\n","status":"published","published":"2018-09-06T14:10:41Z","modified":"2026-04-27T15:21:32.438691Z","updated_at":"2026-11-02T16:58:14.019824Z"}]}}
