CVE-2018-25305 librsvg2-bin 2.40.13 Buffer Overflow via Malformed SVG

Medium 6.9 Published Updated

Local attackers can cause a denial of service by processing malformed SVG files with the rsvg conversion tool.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-25305?

CVE-2018-25305 is a medium-severity memory corruption vulnerability in librsvg2-bin, published on 29 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

librsvg2-bin 2.40.13 contains a buffer overflow vulnerability that allows local attackers to cause a denial of service by processing malformed SVG files. Attackers can supply crafted SVG input to the rsvg conversion tool to trigger a segmentation fault in the cairo image compositor.

Weakness: CWE-120

Which versions are affected by CVE-2018-25305?

How do I fix CVE-2018-25305?

No fix has been published for CVE-2018-25305 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 CVE-2018-25305 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-25305 exists.

Sources

Also known as GHSA-rcg3-h6qx-f974.

Is CVE-2018-25305 in your software?

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

Check your SBOMs for free