{"id":"UBUNTU-CVE-2022-1587","details":"An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.c file. This issue affects recursions in JIT-compiled regular expressions caused by duplicate data transfers.","modified":"2026-04-22T15:17:33.445727Z","published":"2022-05-16T21:15:00Z","related":["USN-5627-1","USN-5627-2"],"upstream":["CVE-2022-1587"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-1587"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5627-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5627-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-1587"}],"affected":[{"package":{"name":"pcre2","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/pcre2@10.21-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["10.20-1","10.20-2","10.20-3","10.21-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libpcre2-16-0","binary_version":"10.21-1"},{"binary_name":"libpcre2-32-0","binary_version":"10.21-1"},{"binary_name":"libpcre2-8-0","binary_version":"10.21-1"},{"binary_name":"libpcre2-posix0","binary_version":"10.21-1"},{"binary_name":"pcre2-utils","binary_version":"10.21-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1587.json"}},{"package":{"name":"pcre2","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/pcre2@10.31-2ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.31-2ubuntu0.1~esm1"}]}],"versions":["10.22-3","10.22-4","10.22-5","10.22-6","10.31-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"libpcre2-16-0","binary_version":"10.31-2ubuntu0.1~esm1"},{"binary_name":"libpcre2-32-0","binary_version":"10.31-2ubuntu0.1~esm1"},{"binary_name":"libpcre2-8-0","binary_version":"10.31-2ubuntu0.1~esm1"},{"binary_name":"libpcre2-posix0","binary_version":"10.31-2ubuntu0.1~esm1"},{"binary_name":"pcre2-utils","binary_version":"10.31-2ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1587.json"}},{"package":{"name":"pcre2","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/pcre2@10.34-7ubuntu0.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.34-7ubuntu0.1"}]}],"versions":["10.32-5","10.34-7"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libpcre2-16-0","binary_version":"10.34-7ubuntu0.1"},{"binary_name":"libpcre2-32-0","binary_version":"10.34-7ubuntu0.1"},{"binary_name":"libpcre2-8-0","binary_version":"10.34-7ubuntu0.1"},{"binary_name":"libpcre2-posix2","binary_version":"10.34-7ubuntu0.1"},{"binary_name":"pcre2-utils","binary_version":"10.34-7ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1587.json"}},{"package":{"name":"pcre2","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pcre2@10.39-3ubuntu0.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.39-3ubuntu0.1"}]}],"versions":["10.37-0ubuntu2","10.39-3","10.39-3build1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libpcre2-16-0","binary_version":"10.39-3ubuntu0.1"},{"binary_name":"libpcre2-32-0","binary_version":"10.39-3ubuntu0.1"},{"binary_name":"libpcre2-8-0","binary_version":"10.39-3ubuntu0.1"},{"binary_name":"libpcre2-posix3","binary_version":"10.39-3ubuntu0.1"},{"binary_name":"pcre2-utils","binary_version":"10.39-3ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1587.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}