OSV-2025-512 Invalid-free in pdf_decodestream

Not scored Published

An invalid-free vulnerability in the PDF decoding stream allows attackers to cause crashes or potentially execute code via malicious PDF files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is OSV-2025-512?

OSV-2025-512 is a memory corruption vulnerability in clamav, published on 3 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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

Crash type: Invalid-free
Crash state:
pdf_decodestream
pdf_extract_obj
cli_pdf

Which versions are affected by OSV-2025-512?

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

PackageAffectedFixed in
clamav OSS-FuzzAll versionsNone

How do I fix OSV-2025-512?

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

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

Sources

Is OSV-2025-512 in your software?

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

Check your SBOMs for free