lunasvg Segmentation Fault Vulnerability in Version 3.0.0

Vulnerability

A segmentation fault vulnerability has been identified in lunasvg version 3.0.0. This issue arises in the 'composition_source_over' component, where improper handling of memory access leads to a crash. The vulnerability can be reproduced using the 'svg2png' tool included with lunasvg, by processing a specially crafted SVG file that triggers the segmentation violation.

Impact

Exploitation of this vulnerability causes a segmentation fault, leading to a crash of the application.

Reproduction

The vulnerability can be reproduced by using the 'svg2png' command-line tool that comes with lunasvg. After compiling lunasvg with AddressSanitizer enabled, the tool can be run with a specific SVG file that has been crafted to exploit the vulnerability. The 'SEGV-composition_source_over' file, available in the GitHub repository 'keepinggg/poc', can be used to trigger the issue. When the file is processed, it causes a segmentation fault due to a read memory access violation, which can be observed in the AddressSanitizer output.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
6.0
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.