OSV-2025-300 Negative-size-param in recurse_update_offsets

Not scored Published

A negative size parameter in PCRE2's recurse_update_offsets function can cause a crash, leading to denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
None listed

What is OSV-2025-300?

OSV-2025-300 is a vulnerability in pcre2, published on 26 Apr 2025.

Official description

OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=413078692

Crash type: Negative-size-param
Crash state:
recurse_update_offsets
match
pcre2_match_8

Which versions are affected by OSV-2025-300?

1 open source package ship an affected version, including pcre2.

PackageAffectedFixed in
pcre2 OSS-FuzzAll versionsNone

How do I fix OSV-2025-300?

No fix has been published for OSV-2025-300 yet. Limit exposure of the affected software until one is available.

Is OSV-2025-300 being exploited?

There is no known exploitation of OSV-2025-300 in the wild and no public exploit code.

Sources

Is OSV-2025-300 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free