CVE-2018-25305
Buffer Overflow in librsvg2-bin via Malformed SVG Files
Publication date: 2026-04-29
Last updated on: 2026-04-29
Assigner: VulnCheck
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| gnome | librsvg2-bin | to 2.40.13 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-120 | The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer. |
Attack-Flow Graph
AI Powered Q&A
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The provided information does not specify any direct impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.
Can you explain this vulnerability to me?
The vulnerability in librsvg2-bin version 2.40.13 is a buffer overflow issue that occurs when the rsvg conversion tool processes malformed or specially crafted SVG files. This buffer overflow triggers a segmentation fault in the cairo image compositor, causing the application to crash.
How can this vulnerability impact me? :
This vulnerability allows local attackers to cause a denial of service by crashing the rsvg conversion tool when it processes malicious SVG files. It affects the availability of the service or application using librsvg2-bin but does not impact confidentiality or integrity.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by attempting to process potentially malformed SVG files using the rsvg conversion tool included in librsvg2-bin version 2.40.13. If the tool crashes with a segmentation fault during processing, it indicates the presence of the vulnerability.
A practical detection method is to run the rsvg tool on suspicious or crafted SVG files and observe if it triggers a crash.
Example command to test an SVG file for the vulnerability:
- rsvg-convert suspicious_file.svg -o output.png
If this command causes a segmentation fault or crashes, it indicates the system is vulnerable.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability immediately, avoid processing untrusted or malformed SVG files with the rsvg conversion tool.
Restrict local access to the system or the rsvg tool to trusted users only, since the exploit requires local access.
Monitor for updates or patches from the librsvg2-bin maintainers and apply them as soon as they become available to fix the buffer overflow issue.
Can you explain this vulnerability to me?
The vulnerability in librsvg2-bin version 2.40.13 is a buffer overflow issue. It allows local attackers to cause a denial of service by processing specially crafted malformed SVG files. When these malicious SVG files are processed by the rsvg conversion tool, they trigger a segmentation fault in the cairo image compositor.
How can this vulnerability impact me? :
This vulnerability can impact you by causing a denial of service (DoS) condition on your system. An attacker with local access can supply a crafted SVG file to the rsvg conversion tool, causing it to crash due to a segmentation fault. This could disrupt services or applications relying on this tool.