Skip to content
Heist/ feed
Back to feed
HighFix available

pcre2 — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2026-86145

PCRE2 before 10.48 allows a pcre2_dfa_match out-of-bounds write because reuse of a cached workspace block, in a recursive DFA matching workspace, lacks a size check (even though a newly allocated block, for the same purpose, does have a size check). This outcome requires an attacker-controlled regular expression, or a recursive pattern in conjunction with a small heap limit (this can be set through the API).

Products
pcre2
Affected versions
Not specified
Fixed versions
10.43-r1, 10.46-r1, 10.48-r0
CVEs
CVE-2026-86145
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:39 UTC · Revision 1

Source evidence

ALPINE-CVE-2026-86145

core-osv · Original source

Published 5 Sept 2026, 06:17 UTC

PCRE2 before 10.48 allows a pcre2_dfa_match out-of-bounds write because reuse of a cached workspace block, in a recursive DFA matching workspace, lacks a size check (even though a newly allocated block, for the same purpose, does have a size check). This outcome requires an attacker-controlled regular expression, or a recursive pattern in conjunction with a small heap limit (this can be set through the API).

osv:ALPINE-CVE-2026-86145

pcre2

Fixed versions: 10.43-r1

pcre2

Fixed versions: 10.46-r1

pcre2

Fixed versions: 10.48-r0

pcre2

Fixed versions: 10.48-r0

Complete source record
{
  "id": "a5602b6bdd010243514c32387bca60ed64ab48e70ae54482325874f890abffc1",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2026-86145",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2026-86145",
    "summary": "PCRE2 before 10.48 allows a pcre2_dfa_match out-of-bounds write because reuse of a cached workspace block, in a recursive DFA matching workspace, lacks a size check (even though a newly allocated block, for the same purpose, does have a size check). This outcome requires an attacker-controlled regular expression, or a recursive pattern in conjunction with a small heap limit (this can be set through the API).",
    "evidence": "osv:ALPINE-CVE-2026-86145",
    "products": [
      {
        "name": {
          "value": "pcre2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.43-r1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "pcre2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.46-r1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "pcre2",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.48-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "pcre2",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.48-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "ALPINE-CVE-2026-86145",
      "aliases": [
        "ALPINE-CVE-2026-86145"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "10.43-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "pcre2",
            "purl": "pkg:apk/alpine/pcre2?arch=source",
            "ecosystem": "Alpine:v3.21"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-86145.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "10.46-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "pcre2",
            "purl": "pkg:apk/alpine/pcre2?arch=source",
            "ecosystem": "Alpine:v3.22"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-86145.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "10.48-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "pcre2",
            "purl": "pkg:apk/alpine/pcre2?arch=source",
            "ecosystem": "Alpine:v3.23"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-86145.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "10.48-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "pcre2",
            "purl": "pkg:apk/alpine/pcre2?arch=source",
            "ecosystem": "Alpine:v3.24"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-86145.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-21T05:30:03.556378970Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-86145"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2026-86145"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-86145",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 391595,
  "published_at": "2026-09-05T06:17:10.37+00:00"
}