Skip to content

Security: remediate bundled PCRE 8.31 CVEs (deferred) #14

Description

@ap0ught

Scope

Security: remediate the bundled PCRE 8.31 vulnerabilities:

This is the largest real vuln but is deferred because it is NDK/native-touching and changes native behavior. The Tier-3 RegExpNative test (issue #2) is the safety net that makes this tractable.

Steps

  • Research options: vendor current PCRE2 vs patch 8.31 vs drop JIT/sljit
  • Implement the chosen remediation (drop-in PCRE 8.45, interpreter-only, SUPPORT_JIT undef, PARENS_NEST_LIMIT 250)
  • Migrate RegExpNative.java + native callers accordingly (no JNI change needed — drop-in swap)
  • Full suite (esp. Tier-3 native) + device verify

Estimate

~12–30 h — research/options 3–5 · implement 8–20 · migrate JNI 2–4 · suite+device 1–2

Notes / what to capture

  • Bundled parser is reachable from user input (regex) and loaded dictionary data — document the input-trust model.
  • App is fully offline (no INTERNET permission) → smaller attack surface, but the native parser is still exposed to questionable input.
  • May effectively merge with the step-2d NDK decision: if NDK r28c already forces a PCRE re-port, do this work there instead.
  • Keep the Tier-3 RegExpNative test passing as the equivalence guard across the re-port.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions