CVE-2022-1586
Reported by redhat · Published May 16, 2022
An out-of-bounds read vulnerability was discovered in the PCRE2 library in the compile_xclass_matchingpath() function of the pcre2_jit_compile.c file. This involves a unicode property matching issue in JIT-compiled regular expressions. The issue occurs because the character was not fully read in case-less matching within JIT.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pcre2 | conan.io | 10.40 |
| pcre2-utf16 | Amazon Linux | 10.40-1.amzn2023.0.2, 10.23-11.amzn2.0.1 |
| pcre2-static | Amazon Linux | 10.40-1.amzn2023.0.2, 10.23-11.amzn2.0.1 |
| pcre2 | Alpine | 10.40-r0, 10.36-r1 |
| pcre2-utf32 | Amazon Linux | 10.40-1.amzn2023.0.2 |
| pcre2-devel | Amazon Linux | 10.40-1.amzn2023.0.2 |
| pcre2-syntax | Amazon Linux | 10.40-1.amzn2023.0.2 |
| pcre2 | pcre | 10.40 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | pcre2 | Fixed in pcre2-10.40. |
| amazon:2023 | pcre2-utf16 | 0 |
| amazon:2023 | pcre2-static | 0 |
| alpine | pcre2 | 0, 0 |
| amazon:2 | pcre2-static | 0 |
| amazon:2023 | pcre2-utf32 | 0 |
| wolfi | pcre2 | * |
| chainguard | pcre2 | * |
| amazon:2023 | pcre2-devel | 0 |
| amazon:2023 | pcre2-syntax | 0 |
| amazon:2 | pcre2-utf16 | 0 |
| n/a | pcre2 | 10.40 |
| amazon:2023 | pcre2 | 0 |
| amazon:2 | pcre2-utf32 | 0 |
| amazon:2023 | pcre2-tools | 0 |
| ConanCenter | pcre2 | 0 |
| amazon:2 | pcre2 | 0 |
| amazon:2 | pcre2-tools | 0 |
| amazon:2 | pcre2-devel | 0 |
Timeline
- May 12, 2022 CVE Published
- May 17, 2022 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (57 in total, the first dated here)
- Jul 11, 2026 Coalition ESS Score
- Oct 6, 2026 CVE Updated
- Nov 21, 2026 Distribution Patch (54 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-1586
vulnetix vdb fixes CVE-2022-1586
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-1586/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-e56085ba31 vendor-advisory
- FEDORA-2022-a3edad0ab6 vendor-advisory
- FEDORA-2022-19f4c34184 vendor-advisory
- FEDORA-2022-9c9691d058 vendor-advisory
- [debian-lts-announce] 20230316 [SECURITY] [DLA 3363-1] pcre2 security update mailing-list
- https://nvd.nist.gov/vuln/detail/CVE-2022-1586 advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M2GLQQUEY5VFM57CFYXVIFOXN2HUZPDM/ url
- https://github.com/PCRE2Project/pcre2/commit/50a51cb7e67268e6ad417eb07c9de9bfea5cc55a, patch
- https://bugzilla.redhat.com/show_bug.cgi?id=2077976, url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KAX7767BCUFC7JMDGP7GOQ5GIZCAUGBB/ url
- https://bugzilla.redhat.com/show_bug.cgi?id=2077976 url
- https://github.com/PCRE2Project/pcre2/commit/50a51cb7e67268e6ad417eb07c9de9bfea5cc55a url