{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Moderate"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright © Red Hat, Inc. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-58050.json"
      }
    ],
    "title": "pcre2: PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS",
    "tracking": {
      "current_release_date": "2026-08-31T11:29:28+00:00",
      "generator": {
        "date": "2026-08-31T11:29:28+00:00",
        "engine": {
          "name": "Red Hat SDEngine",
          "version": "5.3.16"
        }
      },
      "id": "CVE-2025-58050",
      "initial_release_date": "2025-08-27T18:47:35.041000+00:00",
      "revision_history": [
        {
          "date": "2025-08-27T18:47:35.041000+00:00",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2026-08-31T10:13:13+00:00",
          "number": "2",
          "summary": "Current version"
        },
        {
          "date": "2026-08-31T11:29:28+00:00",
          "number": "3",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "3"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 10",
                "product": {
                  "name": "Red Hat Enterprise Linux 10",
                  "product_id": "red_hat_enterprise_linux_10",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:10"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 10"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 7",
                "product": {
                  "name": "Red Hat Enterprise Linux 7",
                  "product_id": "red_hat_enterprise_linux_7",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:7"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 7"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 8",
                "product": {
                  "name": "Red Hat Enterprise Linux 8",
                  "product_id": "red_hat_enterprise_linux_8",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:8"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 8"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 9",
                "product": {
                  "name": "Red Hat Enterprise Linux 9",
                  "product_id": "red_hat_enterprise_linux_9",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:9"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 9"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat OpenShift Container Platform 4",
                "product": {
                  "name": "Red Hat OpenShift Container Platform 4",
                  "product_id": "red_hat_openshift_container_platform_4",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:openshift:4"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat OpenShift Container Platform 4"
          },
          {
            "category": "product_version",
            "name": "mingw64-pcre2",
            "product": {
              "name": "mingw64-pcre2",
              "product_id": "mingw64-pcre2",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/mingw64-pcre2"
              }
            }
          },
          {
            "category": "product_version",
            "name": "mingw32-pcre2-static",
            "product": {
              "name": "mingw32-pcre2-static",
              "product_id": "mingw32-pcre2-static",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/mingw32-pcre2-static"
              }
            }
          },
          {
            "category": "product_version",
            "name": "mingw64-pcre2-static",
            "product": {
              "name": "mingw64-pcre2-static",
              "product_id": "mingw64-pcre2-static",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/mingw64-pcre2-static"
              }
            }
          },
          {
            "category": "product_version",
            "name": "mingw32-pcre2",
            "product": {
              "name": "mingw32-pcre2",
              "product_id": "mingw32-pcre2",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/mingw32-pcre2"
              }
            }
          },
          {
            "category": "product_version",
            "name": "pcre2-utf16",
            "product": {
              "name": "pcre2-utf16",
              "product_id": "pcre2-utf16",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/pcre2-utf16"
              }
            }
          },
          {
            "category": "product_version",
            "name": "pcre2-devel",
            "product": {
              "name": "pcre2-devel",
              "product_id": "pcre2-devel",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/pcre2-devel"
              }
            }
          },
          {
            "category": "product_version",
            "name": "pcre2-utf32",
            "product": {
              "name": "pcre2-utf32",
              "product_id": "pcre2-utf32",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/pcre2-utf32"
              }
            }
          },
          {
            "category": "product_version",
            "name": "pcre2-syntax",
            "product": {
              "name": "pcre2-syntax",
              "product_id": "pcre2-syntax",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/pcre2-syntax"
              }
            }
          },
          {
            "category": "product_version",
            "name": "pcre2-static",
            "product": {
              "name": "pcre2-static",
              "product_id": "pcre2-static",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/pcre2-static"
              }
            }
          },
          {
            "category": "product_version",
            "name": "pcre2-tools",
            "product": {
              "name": "pcre2-tools",
              "product_id": "pcre2-tools",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/pcre2-tools"
              }
            }
          },
          {
            "category": "product_version",
            "name": "pcre2.src",
            "product": {
              "name": "pcre2.src",
              "product_id": "pcre2.src",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/pcre2?arch=src"
              }
            }
          },
          {
            "category": "product_version",
            "name": "pcre2",
            "product": {
              "name": "pcre2",
              "product_id": "pcre2",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/pcre2"
              }
            }
          },
          {
            "category": "product_version",
            "name": "openshift/ose-rhel-coreos-8",
            "product": {
              "name": "openshift/ose-rhel-coreos-8",
              "product_id": "openshift/ose-rhel-coreos-8",
              "product_identification_helper": {
                "purl": "pkg:oci/ose-rhel-coreos-8?repository_url=registry.redhat.io/openshift/ose-rhel-coreos-8"
              }
            }
          },
          {
            "category": "product_version",
            "name": "openshift/ose-rhel-coreos-9",
            "product": {
              "name": "openshift/ose-rhel-coreos-9",
              "product_id": "openshift/ose-rhel-coreos-9",
              "product_identification_helper": {
                "purl": "pkg:oci/ose-rhel-coreos-9?repository_url=registry.redhat.io/openshift/ose-rhel-coreos-9"
              }
            }
          }
        ],
        "category": "vendor",
        "name": "Red Hat"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mingw32-pcre2 as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:mingw32-pcre2"
        },
        "product_reference": "mingw32-pcre2",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mingw32-pcre2-static as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:mingw32-pcre2-static"
        },
        "product_reference": "mingw32-pcre2-static",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mingw64-pcre2 as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:mingw64-pcre2"
        },
        "product_reference": "mingw64-pcre2",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mingw64-pcre2-static as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:mingw64-pcre2-static"
        },
        "product_reference": "mingw64-pcre2-static",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-devel as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:pcre2-devel"
        },
        "product_reference": "pcre2-devel",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-static as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:pcre2-static"
        },
        "product_reference": "pcre2-static",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-syntax as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:pcre2-syntax"
        },
        "product_reference": "pcre2-syntax",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-tools as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:pcre2-tools"
        },
        "product_reference": "pcre2-tools",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-utf16 as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:pcre2-utf16"
        },
        "product_reference": "pcre2-utf16",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-utf32 as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:pcre2-utf32"
        },
        "product_reference": "pcre2-utf32",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2.src as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:pcre2.src"
        },
        "product_reference": "pcre2.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-devel as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:pcre2-devel"
        },
        "product_reference": "pcre2-devel",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-static as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:pcre2-static"
        },
        "product_reference": "pcre2-static",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-tools as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:pcre2-tools"
        },
        "product_reference": "pcre2-tools",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-utf16 as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:pcre2-utf16"
        },
        "product_reference": "pcre2-utf16",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-utf32 as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:pcre2-utf32"
        },
        "product_reference": "pcre2-utf32",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2.src as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:pcre2.src"
        },
        "product_reference": "pcre2.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2 as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:pcre2"
        },
        "product_reference": "pcre2",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-devel as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:pcre2-devel"
        },
        "product_reference": "pcre2-devel",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-tools as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:pcre2-tools"
        },
        "product_reference": "pcre2-tools",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-utf16 as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:pcre2-utf16"
        },
        "product_reference": "pcre2-utf16",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-utf32 as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:pcre2-utf32"
        },
        "product_reference": "pcre2-utf32",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2.src as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:pcre2.src"
        },
        "product_reference": "pcre2.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mingw32-pcre2 as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:mingw32-pcre2"
        },
        "product_reference": "mingw32-pcre2",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mingw32-pcre2-static as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:mingw32-pcre2-static"
        },
        "product_reference": "mingw32-pcre2-static",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mingw64-pcre2 as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:mingw64-pcre2"
        },
        "product_reference": "mingw64-pcre2",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mingw64-pcre2-static as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:mingw64-pcre2-static"
        },
        "product_reference": "mingw64-pcre2-static",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2 as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:pcre2"
        },
        "product_reference": "pcre2",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-devel as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:pcre2-devel"
        },
        "product_reference": "pcre2-devel",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-syntax as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:pcre2-syntax"
        },
        "product_reference": "pcre2-syntax",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-utf16 as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:pcre2-utf16"
        },
        "product_reference": "pcre2-utf16",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2-utf32 as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:pcre2-utf32"
        },
        "product_reference": "pcre2-utf32",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "pcre2.src as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:pcre2.src"
        },
        "product_reference": "pcre2.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "openshift/ose-rhel-coreos-8 as a component of Red Hat OpenShift Container Platform 4",
          "product_id": "red_hat_openshift_container_platform_4:openshift/ose-rhel-coreos-8"
        },
        "product_reference": "openshift/ose-rhel-coreos-8",
        "relates_to_product_reference": "red_hat_openshift_container_platform_4"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "openshift/ose-rhel-coreos-9 as a component of Red Hat OpenShift Container Platform 4",
          "product_id": "red_hat_openshift_container_platform_4:openshift/ose-rhel-coreos-9"
        },
        "product_reference": "openshift/ose-rhel-coreos-9",
        "relates_to_product_reference": "red_hat_openshift_container_platform_4"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2025-58050",
      "cwe": {
        "id": "CWE-125",
        "name": "Out-of-bounds Read"
      },
      "discovery_date": "2025-08-27T19:00:53.152076+00:00",
      "flags": [
        {
          "label": "vulnerable_code_not_present",
          "product_ids": [
            "red_hat_enterprise_linux_10:mingw32-pcre2",
            "red_hat_enterprise_linux_10:mingw32-pcre2-static",
            "red_hat_enterprise_linux_10:mingw64-pcre2",
            "red_hat_enterprise_linux_10:mingw64-pcre2-static",
            "red_hat_enterprise_linux_10:pcre2-devel",
            "red_hat_enterprise_linux_10:pcre2-static",
            "red_hat_enterprise_linux_10:pcre2-syntax",
            "red_hat_enterprise_linux_10:pcre2-tools",
            "red_hat_enterprise_linux_10:pcre2-utf16",
            "red_hat_enterprise_linux_10:pcre2-utf32",
            "red_hat_enterprise_linux_10:pcre2.src",
            "red_hat_enterprise_linux_7:pcre2-devel",
            "red_hat_enterprise_linux_7:pcre2-static",
            "red_hat_enterprise_linux_7:pcre2-tools",
            "red_hat_enterprise_linux_7:pcre2-utf16",
            "red_hat_enterprise_linux_7:pcre2-utf32",
            "red_hat_enterprise_linux_7:pcre2.src",
            "red_hat_enterprise_linux_8:pcre2",
            "red_hat_enterprise_linux_8:pcre2-devel",
            "red_hat_enterprise_linux_8:pcre2-tools",
            "red_hat_enterprise_linux_8:pcre2-utf16",
            "red_hat_enterprise_linux_8:pcre2-utf32",
            "red_hat_enterprise_linux_8:pcre2.src",
            "red_hat_enterprise_linux_9:mingw32-pcre2",
            "red_hat_enterprise_linux_9:mingw32-pcre2-static",
            "red_hat_enterprise_linux_9:mingw64-pcre2",
            "red_hat_enterprise_linux_9:mingw64-pcre2-static",
            "red_hat_enterprise_linux_9:pcre2",
            "red_hat_enterprise_linux_9:pcre2-devel",
            "red_hat_enterprise_linux_9:pcre2-syntax",
            "red_hat_enterprise_linux_9:pcre2-utf16",
            "red_hat_enterprise_linux_9:pcre2-utf32",
            "red_hat_enterprise_linux_9:pcre2.src",
            "red_hat_openshift_container_platform_4:openshift/ose-rhel-coreos-8",
            "red_hat_openshift_container_platform_4:openshift/ose-rhel-coreos-9"
          ]
        }
      ],
      "ids": [
        {
          "system_name": "Red Hat Bugzilla ID",
          "text": "2391338"
        }
      ],
      "notes": [
        {
          "category": "description",
          "text": "In pcre2 library, there is a vulnerability in the code that causes a heap-buffer-overflow. This arises from using the special verb - Scan-SubString together with (*ACCEPT) which causes an out-of-bounds read. This could be exploited by an attacker through crafting a pattern using this combination to trigger the heap-buffer overflow.",
          "title": "Vulnerability description"
        },
        {
          "category": "summary",
          "text": "pcre2: PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS",
          "title": "Vulnerability summary"
        },
        {
          "category": "other",
          "text": "The bug is in src/pcre2_match.c. When (*scs:...) temporarily restricts the match boundaries to a captured substring, the engine restores the current subject pointer (Feptr) correctly on an immediate (*ACCEPT), but it fails to restore mb->end_subject and mb->true_end_subject. If execution later calls match_ref (for example for a backreference like \\2), the bounds check can underflow because mb->end_subject - eptr becomes negative and is cast to an unsigned size. That makes the length check pass incorrectly and memcmp reads past the end of the allocated buffer, causing a heap-buffer-overflow read.",
          "title": "Statement"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "known_not_affected": [
          "red_hat_enterprise_linux_10:mingw32-pcre2",
          "red_hat_enterprise_linux_10:mingw32-pcre2-static",
          "red_hat_enterprise_linux_10:mingw64-pcre2",
          "red_hat_enterprise_linux_10:mingw64-pcre2-static",
          "red_hat_enterprise_linux_10:pcre2-devel",
          "red_hat_enterprise_linux_10:pcre2-static",
          "red_hat_enterprise_linux_10:pcre2-syntax",
          "red_hat_enterprise_linux_10:pcre2-tools",
          "red_hat_enterprise_linux_10:pcre2-utf16",
          "red_hat_enterprise_linux_10:pcre2-utf32",
          "red_hat_enterprise_linux_10:pcre2.src",
          "red_hat_enterprise_linux_7:pcre2-devel",
          "red_hat_enterprise_linux_7:pcre2-static",
          "red_hat_enterprise_linux_7:pcre2-tools",
          "red_hat_enterprise_linux_7:pcre2-utf16",
          "red_hat_enterprise_linux_7:pcre2-utf32",
          "red_hat_enterprise_linux_7:pcre2.src",
          "red_hat_enterprise_linux_8:pcre2",
          "red_hat_enterprise_linux_8:pcre2-devel",
          "red_hat_enterprise_linux_8:pcre2-tools",
          "red_hat_enterprise_linux_8:pcre2-utf16",
          "red_hat_enterprise_linux_8:pcre2-utf32",
          "red_hat_enterprise_linux_8:pcre2.src",
          "red_hat_enterprise_linux_9:mingw32-pcre2",
          "red_hat_enterprise_linux_9:mingw32-pcre2-static",
          "red_hat_enterprise_linux_9:mingw64-pcre2",
          "red_hat_enterprise_linux_9:mingw64-pcre2-static",
          "red_hat_enterprise_linux_9:pcre2",
          "red_hat_enterprise_linux_9:pcre2-devel",
          "red_hat_enterprise_linux_9:pcre2-syntax",
          "red_hat_enterprise_linux_9:pcre2-utf16",
          "red_hat_enterprise_linux_9:pcre2-utf32",
          "red_hat_enterprise_linux_9:pcre2.src",
          "red_hat_openshift_container_platform_4:openshift/ose-rhel-coreos-8",
          "red_hat_openshift_container_platform_4:openshift/ose-rhel-coreos-9"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2025-58050"
        },
        {
          "category": "external",
          "summary": "RHBZ#2391338",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2391338"
        },
        {
          "category": "external",
          "summary": "https://www.cve.org/CVERecord?id=CVE-2025-58050",
          "url": "https://www.cve.org/CVERecord?id=CVE-2025-58050"
        },
        {
          "category": "external",
          "summary": "https://nvd.nist.gov/vuln/detail/CVE-2025-58050",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-58050"
        },
        {
          "category": "external",
          "summary": "https://github.com/PCRE2Project/pcre2/commit/a141712e5967d448c7ce13090ab530c8e3d82254",
          "url": "https://github.com/PCRE2Project/pcre2/commit/a141712e5967d448c7ce13090ab530c8e3d82254"
        },
        {
          "category": "external",
          "summary": "https://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.46",
          "url": "https://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.46"
        },
        {
          "category": "external",
          "summary": "https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2",
          "url": "https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2"
        }
      ],
      "release_date": "2025-08-27T18:47:35.041000+00:00",
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "LOW",
            "baseScore": 6.5,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "LOW",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L",
            "version": "3.1"
          },
          "products": [
            "red_hat_enterprise_linux_10:mingw32-pcre2",
            "red_hat_enterprise_linux_10:mingw32-pcre2-static",
            "red_hat_enterprise_linux_10:mingw64-pcre2",
            "red_hat_enterprise_linux_10:mingw64-pcre2-static",
            "red_hat_enterprise_linux_10:pcre2-devel",
            "red_hat_enterprise_linux_10:pcre2-static",
            "red_hat_enterprise_linux_10:pcre2-syntax",
            "red_hat_enterprise_linux_10:pcre2-tools",
            "red_hat_enterprise_linux_10:pcre2-utf16",
            "red_hat_enterprise_linux_10:pcre2-utf32",
            "red_hat_enterprise_linux_10:pcre2.src",
            "red_hat_enterprise_linux_7:pcre2-devel",
            "red_hat_enterprise_linux_7:pcre2-static",
            "red_hat_enterprise_linux_7:pcre2-tools",
            "red_hat_enterprise_linux_7:pcre2-utf16",
            "red_hat_enterprise_linux_7:pcre2-utf32",
            "red_hat_enterprise_linux_7:pcre2.src",
            "red_hat_enterprise_linux_8:pcre2",
            "red_hat_enterprise_linux_8:pcre2-devel",
            "red_hat_enterprise_linux_8:pcre2-tools",
            "red_hat_enterprise_linux_8:pcre2-utf16",
            "red_hat_enterprise_linux_8:pcre2-utf32",
            "red_hat_enterprise_linux_8:pcre2.src",
            "red_hat_enterprise_linux_9:mingw32-pcre2",
            "red_hat_enterprise_linux_9:mingw32-pcre2-static",
            "red_hat_enterprise_linux_9:mingw64-pcre2",
            "red_hat_enterprise_linux_9:mingw64-pcre2-static",
            "red_hat_enterprise_linux_9:pcre2",
            "red_hat_enterprise_linux_9:pcre2-devel",
            "red_hat_enterprise_linux_9:pcre2-syntax",
            "red_hat_enterprise_linux_9:pcre2-utf16",
            "red_hat_enterprise_linux_9:pcre2-utf32",
            "red_hat_enterprise_linux_9:pcre2.src",
            "red_hat_openshift_container_platform_4:openshift/ose-rhel-coreos-8",
            "red_hat_openshift_container_platform_4:openshift/ose-rhel-coreos-9"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate",
          "product_ids": [
            "red_hat_enterprise_linux_10:mingw32-pcre2",
            "red_hat_enterprise_linux_10:mingw32-pcre2-static",
            "red_hat_enterprise_linux_10:mingw64-pcre2",
            "red_hat_enterprise_linux_10:mingw64-pcre2-static",
            "red_hat_enterprise_linux_10:pcre2-devel",
            "red_hat_enterprise_linux_10:pcre2-static",
            "red_hat_enterprise_linux_10:pcre2-syntax",
            "red_hat_enterprise_linux_10:pcre2-tools",
            "red_hat_enterprise_linux_10:pcre2-utf16",
            "red_hat_enterprise_linux_10:pcre2-utf32",
            "red_hat_enterprise_linux_10:pcre2.src",
            "red_hat_enterprise_linux_7:pcre2-devel",
            "red_hat_enterprise_linux_7:pcre2-static",
            "red_hat_enterprise_linux_7:pcre2-tools",
            "red_hat_enterprise_linux_7:pcre2-utf16",
            "red_hat_enterprise_linux_7:pcre2-utf32",
            "red_hat_enterprise_linux_7:pcre2.src",
            "red_hat_enterprise_linux_8:pcre2",
            "red_hat_enterprise_linux_8:pcre2-devel",
            "red_hat_enterprise_linux_8:pcre2-tools",
            "red_hat_enterprise_linux_8:pcre2-utf16",
            "red_hat_enterprise_linux_8:pcre2-utf32",
            "red_hat_enterprise_linux_8:pcre2.src",
            "red_hat_enterprise_linux_9:mingw32-pcre2",
            "red_hat_enterprise_linux_9:mingw32-pcre2-static",
            "red_hat_enterprise_linux_9:mingw64-pcre2",
            "red_hat_enterprise_linux_9:mingw64-pcre2-static",
            "red_hat_enterprise_linux_9:pcre2",
            "red_hat_enterprise_linux_9:pcre2-devel",
            "red_hat_enterprise_linux_9:pcre2-syntax",
            "red_hat_enterprise_linux_9:pcre2-utf16",
            "red_hat_enterprise_linux_9:pcre2-utf32",
            "red_hat_enterprise_linux_9:pcre2.src",
            "red_hat_openshift_container_platform_4:openshift/ose-rhel-coreos-8",
            "red_hat_openshift_container_platform_4:openshift/ose-rhel-coreos-9"
          ]
        }
      ],
      "title": "pcre2: PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS"
    }
  ]
}