{"id":"CVE-2017-7245","aliases":["ALPINE-CVE-2017-7245","DEBIAN-CVE-2017-7245","EUVD-2017-16277","GHSA-c68h-v9j2-9jjh","MGASA-2017-0454","SUSE-SU-2021:3652-1","openSUSE-SU-2024:11153-1"],"status":"published","title":"Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in...","description":"Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of service (WRITE of size 4) or possibly have unspecified other impact via a crafted 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.0237,"percentile":0.83932,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119"],"published":"2017-03-23T21:00:00Z","modified":"2026-09-01T20:03:49Z","fixes":[{"ecosystem":"Alpine:v3.6","package":"pcre","fixed_in":["8.41-r0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.6","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.41-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"pcre3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:8.39-15","2:8.39-15.1"]},{"source":"osv","ecosystem":"Mageia:5","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.41-1.mga5"}]}],"bundled":5},{"source":"osv","ecosystem":"Mageia:6","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.41-1.mga6"}]}],"bundled":5},{"source":"osv","ecosystem":"SUSE:HPE Helion OpenStack 8","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:HPE Helion OpenStack 8","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud 8","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud 8","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud 9","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud 9","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud Crowbar 8","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud Crowbar 8","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud Crowbar 9","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud Crowbar 9","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP3","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP4","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP5","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP4","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP4","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP2-BCL","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP2-BCL","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3-LTSS","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3-LTSS","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3-BCL","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3-BCL","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP4-LTSS","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP4-LTSS","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP5","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP5","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","package":"selinux-policy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140730-36.5.2"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP5","package":"pcre","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.45-8.7.1"}]}],"bundled":7}],"products":[{"vendor":"pcre","product":"pcre"}],"references":[{"url":"http://www.securityfocus.com/bid/97067","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://blogs.gentoo.org/ago/2017/03/20/libpcre-two-stack-based-buffer-overflow-write-in-pcre32_copy_substring-pcre_get-c/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2486","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory"]},{"url":"https://security.gentoo.org/glsa/201710-25","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-7245"},{"url":"https://blogs.gentoo.org/ago/2017/03/20/libpcre-two-stack-based-buffer-overflow-write-in-pcre32_copy_substring-pcre_get-c"},{"url":"https://github.com/advisories/GHSA-c68h-v9j2-9jjh"},{"url":"https://security.alpinelinux.org/vuln/CVE-2017-7245","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-7245","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2017-0454.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=20355","tags":["report"]},{"url":"http://openwall.com/lists/oss-security/2017/03/24/1","tags":["web"]},{"url":"http://openwall.com/lists/oss-security/2017/03/24/2","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/ESZV6GLV63XBXTZQOAJPOWLRIG35TEV7/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/XEYMUTVQAMYFGYH7ZE6RJD34GJMBZRMS/","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20213652-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1025709","tags":["report"]},{"url":"https://bugzilla.suse.com/1030066","tags":["report"]},{"url":"https://bugzilla.suse.com/1030803","tags":["report"]},{"url":"https://bugzilla.suse.com/1030805","tags":["report"]},{"url":"https://bugzilla.suse.com/1030807","tags":["report"]},{"url":"https://bugzilla.suse.com/1172973","tags":["report"]},{"url":"https://bugzilla.suse.com/1172974","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2017-6004","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-7186","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-7244","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-7245","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-7246","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-20838","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-14155","tags":["web"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2017-7245","description":"Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of service (WRITE of size 4) or possibly have unspecified other impact via a crafted file.","status":"published","published":"2017-03-23T21:00:00Z","modified":"2024-08-05T15:56:36.004Z","updated_at":"2026-11-02T14:33:20.843976Z"}],"euvd":[{"id":"EUVD-2017-16277","description":"Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of service (WRITE of size 4) or possibly have unspecified other impact via a crafted file.","status":"published","published":"2017-03-23T21:00:00Z","modified":"2024-08-05T15:56:36Z","updated_at":"2026-11-03T02:39:08.892902Z"}],"ghsa":[{"id":"GHSA-c68h-v9j2-9jjh","title":"Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in...","description":"Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of service (WRITE of size 4) or possibly have unspecified other impact via a crafted file.","status":"published","published":"2022-05-14T03:07:03Z","modified":"2025-04-20T03:35:49Z","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-119"],"updated_at":"2026-11-02T15:01:43.480751Z"}],"nvd":[{"id":"CVE-2017-7245","description":"Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of service (WRITE of size 4) or possibly have unspecified other impact via a crafted file.","status":"published","published":"2017-03-23T21:59:00.193Z","modified":"2026-06-17T01:23:56.053Z","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-119"],"updated_at":"2026-11-02T14:03:44.275273Z"}],"osv":[{"id":"ALPINE-CVE-2017-7245","description":"Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of service (WRITE of size 4) or possibly have unspecified other impact via a crafted file.","status":"published","published":"2017-03-23T21:59:00.193Z","modified":"2026-06-15T18:24:59.608718695Z","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:27:47.187336Z"},{"id":"CVE-2017-7245","description":"Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of service (WRITE of size 4) or possibly have unspecified other impact via a crafted file.","status":"published","published":"2017-03-23T21:59:00.193Z","modified":"2026-04-16T06:19:58.383129181Z","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:06.412595Z"},{"id":"DEBIAN-CVE-2017-7245","description":"Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of service (WRITE of size 4) or possibly have unspecified other impact via a crafted file.","status":"published","published":"2017-03-23T21:59:00.193Z","modified":"2026-09-01T20:03:49.756773468Z","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:29.412243Z"},{"id":"MGASA-2017-0454","title":"Updated pcre packages fix security vulnerabilities","description":"The compile_bracket_matchingpath function in pcre_jit_compile.c in PCRE\nthrough 8.x before revision 1680 (e.g., the PHP 7.1.1 bundled version)\nallows remote attackers to cause a denial of service (out-of-bounds read\nand application crash) via a crafted regular expression (CVE-2017-6004).\n\nA vulnerability was found in pcre caused by trying to find a Unicode\nproperty for a code value greater than 0x10ffff, the Unicode maximum,\nwhen running in non-UTF mode (where character values can be up to\n0xffffffff) (CVE-2017-7186).\n\nThe _pcre32_xclass function in pcre_xclass.c in libpcre1 in PCRE 8.40\nallows remote attackers to cause a denial of service (invalid memory\nread) via a crafted file (CVE-2017-7244).\n\nStack-based buffer overflow in the pcre32_copy_substring function in\npcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a\ndenial of service (WRITE of size 4) or possibly have unspecified other\nimpact via a crafted file (CVE-2017-7245).\n\nStack-based buffer overflow in the pcre32_copy_substring function in\npcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a\ndenial of service (WRITE of size 268) or possibly have unspecified other\nimpact via a crafted file (CVE-2017-7246).\n","status":"published","published":"2017-12-21T17:43:29Z","modified":"2026-04-16T06:24:18.279920682Z","updated_at":"2026-11-02T15:49:40.442238Z"},{"id":"openSUSE-SU-2024:11153-1","title":"libpcre1-32bit-8.45-1.2 on GA media","description":"These are all security issues fixed in the libpcre1-32bit-8.45-1.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:38:20.12616Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"id":"SUSE-SU-2021:3652-1","title":"Security update for pcre","description":"This update for pcre fixes the following issues:\n\nUpdate pcre to version 8.45:\n\n- CVE-2020-14155: Fixed integer overflow via a large number after a '(?C' substring (bsc#1172974).\n- CVE-2019-20838: Fixed buffer over-read in JIT compiler (bsc#1172973).\n- CVE-2017-7244: Fixed invalid read in _pcre32_xclass() (bsc#1030807).\n- CVE-2017-7245: Fixed buffer overflow in the pcre32_copy_substring (bsc#1030805).\n- CVE-2017-7246: Fixed another buffer overflow in the pcre32_copy_substring (bsc#1030803).\n- CVE-2017-7186: Fixed denial of service caused by an invalid Unicode property lookup (bsc#1030066).\n- CVE-2017-6004: Fixed denial of service via crafted regular expression (bsc#1025709).\n","status":"published","published":"2021-11-10T16:40:42Z","modified":"2026-02-04T03:08:45.85764Z","updated_at":"2026-11-02T15:53:49.605187Z"}]}}
