Skip to content

enh(deps): Upgrade bundled PCRE2 from 10.44 to 10.47#5095

Merged
matejk merged 2 commits intomainfrom
upgrade-pcre2-10.47
Dec 17, 2025
Merged

enh(deps): Upgrade bundled PCRE2 from 10.44 to 10.47#5095
matejk merged 2 commits intomainfrom
upgrade-pcre2-10.47

Conversation

@matejk
Copy link
Copy Markdown
Contributor

@matejk matejk commented Dec 16, 2025

Summary

Upgrades bundled PCRE2 library from version 10.44 to 10.47 (released October 2024).

Source: https://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.47

Security

This upgrade skips version 10.45 which contained CVE-2025-58050 - a heap-buffer-overflow read vulnerability in the (*scs:...) (Scan SubString) verb when combined with (*ACCEPT). Fixed in 10.46.

Changes

  • Patched pcre2_internal.h to allow C++ inclusion (required by Foundation/src/Unicode.cpp for UCD table access)
  • Excluded pcre2_jit_compile.c from build (POCO doesn't use JIT compilation)
  • Added config.h symlink to pcre2_config.h for PCRE2 internal includes
  • Updated CMakeLists.txt to exclude test/tool files from build

Test Plan

  • Foundation module compiles successfully
  • All 18 RegularExpression tests pass
  • All 16 UTF8String/TextIterator tests pass

Closes #4912

@matejk matejk added this to the Release 1.15.0 milestone Dec 16, 2025
@matejk matejk merged commit 6ca8a51 into main Dec 17, 2025
80 checks passed
@matejk matejk deleted the upgrade-pcre2-10.47 branch December 17, 2025 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade bundled PCRE2 to 10.47

1 participant