OSV-2024-1261 Stack-buffer-overflow in _pcre2_compile_class_not_nested_16
A stack buffer overflow in the PCRE2 regex library allows attackers to cause denial of service or potentially execute code via crafted patterns.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Not stated
- Victim action needed
- Not needed
- Fix
- None listed
What is OSV-2024-1261?
OSV-2024-1261 is a memory corruption vulnerability in pcre2, published on 2 Nov 2024.
Official description
OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=376515526
Crash type: Stack-buffer-overflow WRITE 2
Crash state:
_pcre2_compile_class_not_nested_16
compile_class_operand
_pcre2_compile_class_nested_16
Which versions are affected by OSV-2024-1261?
1 open source package ship an affected version, including pcre2.
| Package | Affected | Fixed in |
|---|---|---|
pcre2 OSS-Fuzz | All versions | None |
How do I fix OSV-2024-1261?
No fix has been published for OSV-2024-1261 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is OSV-2024-1261 being exploited?
There is no known exploitation of OSV-2024-1261 in the wild and no public exploit code.