{"id":"CVE-2019-17178","aliases":["DEBIAN-CVE-2019-17178","EUVD-2019-7612","GHSA-v77x-r3jc-52jh","MGASA-2019-0401","SUSE-SU-2019:3077-1","SUSE-SU-2019:3078-1","SUSE-SU-2019:3079-1","UBUNTU-CVE-2019-17178","openSUSE-SU-2019:2604-1","openSUSE-SU-2019:2608-1"],"status":"published","title":"HuffmanTree_makeFromFrequencies in lodepng.c in LodePNG through 2019-09-28, as used in WinPR in...","description":"HuffmanTree_makeFromFrequencies in lodepng.c in LodePNG through 2019-09-28, as used in WinPR in FreeRDP and other products, has a memory leak because a supplied realloc pointer (i.e., the first argument to realloc) is also used for a realloc return value.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02259,"percentile":0.83091,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-252","CWE-401","CWE-772"],"published":"2019-10-04T16:57:19Z","modified":"2026-10-20T13:33:50Z","fixes":[{"ecosystem":"Debian:12","package":"freerdp2","fixed_in":["2.0.0~git20190204.1.2693389a+dfsg1-2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"freerdp2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0~git20190204.1.2693389a+dfsg1-2"}]}]},{"source":"osv","ecosystem":"Mageia:7","package":"freerdp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0-0.rc4.1.1.mga7"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP4","package":"freerdp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0~git.1463131968.4e66df7-12.11.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP4","package":"freerdp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0~git.1463131968.4e66df7-12.11.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","package":"freerdp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0~git.1463131968.4e66df7-12.11.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP4","package":"freerdp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0~git.1463131968.4e66df7-12.11.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP5","package":"freerdp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0~git.1463131968.4e66df7-12.11.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 15","package":"freerdp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0~rc4-3.10.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 15 SP1","package":"freerdp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0~rc4-10.4.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"freerdp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1","1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1.2","1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1.3","1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1.4"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"freerdp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0~git20140921.1.440916e+dfsg1-15ubuntu1","1.1.0~git20140921.1.440916e+dfsg1-15ubuntu1.18.04.1","1.1.0~git20140921.1.440916e+dfsg1-15ubuntu1.18.04.2"]},{"source":"osv","ecosystem":"openSUSE:Leap 15.0","package":"freerdp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0~rc4-lp150.10.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Leap 15.1","package":"freerdp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0~rc4-lp151.5.3.1"}]}],"bundled":2}],"products":[{"vendor":"freerdp","product":"freerdp"},{"vendor":"lodev","product":"lodepng"},{"vendor":"opensuse","product":"leap"}],"references":[{"url":"https://github.com/FreeRDP/FreeRDP/issues/5645","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","report"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00004.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Third Party Advisory","advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00005.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/FreeRDP/FreeRDP/commit/9fee4ae076b1ec97b97efb79ece08d1dab4df29a","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-17178"},{"url":"https://github.com/akallabeth/FreeRDP/commit/fc80ab45621bd966f70594c0b7393ec005a94007","tags":["report"]},{"url":"https://github.com/advisories/GHSA-v77x-r3jc-52jh"},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-17178","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2019-0401.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=25815","tags":["report"]},{"url":"https://lists.opensuse.org/opensuse-updates/2019-12/msg00012.html","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2019/suse-su-20193077-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1153163","tags":["report"]},{"url":"https://bugzilla.suse.com/1153164","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2019-17177","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-17178","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2019/suse-su-20193078-1/","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2019/suse-su-20193079-1/","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-17178","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-17178","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/2N44X27V2TK7I3SKVF6V4UEMZWFQGQR5/#2N44X27V2TK7I3SKVF6V4UEMZWFQGQR5","tags":["advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/NEF2V7DLUC7RO2QGTD4SSUNLXPL6YLVR/#NEF2V7DLUC7RO2QGTD4SSUNLXPL6YLVR","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2019-17178","description":"HuffmanTree_makeFromFrequencies in lodepng.c in LodePNG through 2019-09-28, as used in WinPR in FreeRDP and other products, has a memory leak because a supplied realloc pointer (i.e., the first argument to realloc) is also used for a realloc return value.","status":"published","published":"2019-10-04T16:57:19Z","modified":"2024-08-05T01:33:17.322Z","updated_at":"2026-11-02T14:20:24.678649Z"}],"euvd":[{"id":"EUVD-2019-7612","description":"HuffmanTree_makeFromFrequencies in lodepng.c in LodePNG through 2019-09-28, as used in WinPR in FreeRDP and other products, has a memory leak because a supplied realloc pointer (i.e., the first argument to realloc) is also used for a realloc return value.","status":"published","published":"2019-10-04T16:57:19Z","modified":"2024-08-05T01:33:17Z","updated_at":"2026-11-03T02:40:30.885546Z"}],"ghsa":[{"id":"GHSA-v77x-r3jc-52jh","title":"HuffmanTree_makeFromFrequencies in lodepng.c in LodePNG through 2019-09-28, as used in WinPR in...","description":"HuffmanTree_makeFromFrequencies in lodepng.c in LodePNG through 2019-09-28, as used in WinPR in FreeRDP and other products, has a memory leak because a supplied realloc pointer (i.e., the first argument to realloc) is also used for a realloc return value.","status":"published","published":"2022-05-24T16:57:54Z","modified":"2023-01-28T05:07:27Z","cwes":["CWE-772"],"updated_at":"2026-11-02T14:44:31.607605Z"}],"nvd":[{"id":"CVE-2019-17178","description":"HuffmanTree_makeFromFrequencies in lodepng.c in LodePNG through 2019-09-28, as used in WinPR in FreeRDP and other products, has a memory leak because a supplied realloc pointer (i.e., the first argument to realloc) is also used for a realloc return value.","status":"published","published":"2019-10-04T17:15:10.067Z","modified":"2026-06-17T02:23:25.183Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-252","CWE-401"],"updated_at":"2026-11-02T14:05:31.019577Z"}],"osv":[{"id":"CVE-2019-17178","description":"HuffmanTree_makeFromFrequencies in lodepng.c in LodePNG through 2019-09-28, as used in WinPR in FreeRDP and other products, has a memory leak because a supplied realloc pointer (i.e., the first argument to realloc) is also used for a realloc return value.","status":"published","published":"2019-10-04T17:15:10.067Z","modified":"2026-10-20T13:33:50.679344972Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:11.673963Z"},{"id":"DEBIAN-CVE-2019-17178","description":"HuffmanTree_makeFromFrequencies in lodepng.c in LodePNG through 2019-09-28, as used in WinPR in FreeRDP and other products, has a memory leak because a supplied realloc pointer (i.e., the first argument to realloc) is also used for a realloc return value.","status":"published","published":"2019-10-04T17:15:10.067Z","modified":"2026-09-21T07:02:30.345852461Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:31.867036Z"},{"id":"UBUNTU-CVE-2019-17178","description":"HuffmanTree_makeFromFrequencies in lodepng.c in LodePNG through 2019-09-28, as used in WinPR in FreeRDP and other products, has a memory leak because a supplied realloc pointer (i.e., the first argument to realloc) is also used for a realloc return value.","status":"published","published":"2019-10-04T17:15:00Z","modified":"2026-04-22T12:09:01.202593Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:20.325378Z"},{"id":"MGASA-2019-0401","title":"Updated freerdp packages fix security vulnerabilities","description":"Updated freerdp packages fix security vulnerabilities:\n\nMultiple memory leaks in libfreerdp/codec/region.c (CVE-2019-17177).\n\nMemory leak in HuffmanTree_makeFromFrequencies (CVE-2019-17178).\n","status":"published","published":"2019-12-19T13:44:26Z","modified":"2026-04-16T04:44:36.439474029Z","updated_at":"2026-11-02T15:49:41.151324Z"},{"id":"openSUSE-SU-2019:2604-1","title":"Security update for freerdp","description":"This update for freerdp fixes the following issues:\n\n- CVE-2019-17177: Fixed multiple memory leaks in libfreerdp/codec/region.c (bsc#1153163).\n- CVE-2019-17178: Fixed a memory leak in HuffmanTree_makeFromFrequencies (bsc#1153164).\n\nThis update was imported from the SUSE:SLE-15:Update update project.","status":"published","published":"2019-12-01T19:15:29Z","modified":"2026-02-04T04:12:37.725381Z","updated_at":"2026-11-02T16:58:31.152112Z"},{"id":"openSUSE-SU-2019:2608-1","title":"Security update for freerdp","description":"This update for freerdp fixes the following issues:\n\n- CVE-2019-17177: Fixed multiple memory leaks in libfreerdp/codec/region.c (bsc#1153163).\n- CVE-2019-17178: Fixed a memory leak in HuffmanTree_makeFromFrequencies (bsc#1153164).\n\nThis update was imported from the SUSE:SLE-15-SP1:Update update project.","status":"published","published":"2019-12-01T23:15:00Z","modified":"2025-05-07T18:10:51.720039Z","updated_at":"2026-11-02T16:58:31.152112Z"},{"id":"SUSE-SU-2019:3077-1","title":"Security update for freerdp","description":"This update for freerdp fixes the following issues:\n\n- CVE-2019-17177: Fixed multiple memory leaks in libfreerdp/codec/region.c (bsc#1153163).\n- CVE-2019-17178: Fixed a memory leak in HuffmanTree_makeFromFrequencies (bsc#1153164).\n","status":"published","published":"2019-11-26T16:47:05Z","modified":"2026-02-04T02:33:30.052438Z","updated_at":"2026-11-02T15:53:47.06185Z"},{"id":"SUSE-SU-2019:3078-1","title":"Security update for freerdp","description":"This update for freerdp fixes the following issues:\n\n- CVE-2019-17177: Fixed multiple memory leaks in libfreerdp/codec/region.c (bsc#1153163).\n- CVE-2019-17178: Fixed a memory leak in HuffmanTree_makeFromFrequencies (bsc#1153164).\n","status":"published","published":"2019-11-26T16:47:17Z","modified":"2026-02-04T02:16:00.682276Z","updated_at":"2026-11-02T15:53:47.06185Z"},{"id":"SUSE-SU-2019:3079-1","title":"Security update for freerdp","description":"This update for freerdp fixes the following issues:\n\n- CVE-2019-17177: Fixed multiple memory leaks in libfreerdp/codec/region.c (bsc#1153163).\n- CVE-2019-17178: Fixed a memory leak in HuffmanTree_makeFromFrequencies (bsc#1153164).\n","status":"published","published":"2019-11-26T16:47:26Z","modified":"2026-02-04T03:08:25.800434Z","updated_at":"2026-11-02T15:53:47.06185Z"}]}}
