OSV-2025-7 Heap-buffer-overflow in oatpp::json::Utils::escapeUtf8Char

Not scored Published

A heap-buffer-overflow in the oatpp JSON library allows attackers to cause crashes or potentially execute code via crafted input.

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

What is OSV-2025-7?

OSV-2025-7 is a memory corruption vulnerability in oatpp, published on 7 Jan 2025.

Official description

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

Crash type: Heap-buffer-overflow WRITE 1
Crash state:
oatpp::json::Utils::escapeUtf8Char
oatpp::json::Utils::escapeString
oatpp::json::Serializer::serializeString

Which versions are affected by OSV-2025-7?

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

PackageAffectedFixed in
oatpp OSS-FuzzAll versionsNone

How do I fix OSV-2025-7?

No fix has been published for OSV-2025-7 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-2025-7 being exploited?

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

Sources

Is OSV-2025-7 in your software?

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

Check your SBOMs for free