It’s time to switch to using the PCRE library.
Libmodsecurity3 and mod_security2 have a very important component, namely PCRE. Both engines use PCRE3 by default, but they also support PCRE2. If you want to use it, all you have to do is specify the necessary switch when compiling: --with-pcre2
.
We are sure it’s time to change this behavior. With this pull request the default PCRE engine in libmodsecurity3 will be PCRE2. Don’t worry if you have an old system, it’s sill possible to use the old regex engine with switch --with-pcre
.
We are working on a similar PR for mod_security2.
Summary: in the next releases (both mod_security2 and libmodsecurity3) the default PCRE engine will change and both will use PCRE2.
If you have any perception please leave a comment under the mentioned PR above.