USN-9096-1: cairosvg vulnerability
It was discovered that CairoSVG fetched external files referenced by SVG documents by default. If a user or automated system were tricked into converting a specially crafted SVG file, an attacker could possibly use this issue to perform server-side request forgery attacks or cause a denial of service. After this update, CairoSVG only fetches external files when the unsafe option is used.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/cairosvgto a version that resolves this vulnerability.Fixed in 1.0.19-1ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/cairosvgto a version that resolves this vulnerability.Fixed in 1.0.20-1ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/cairosvgto a version that resolves this vulnerability.Fixed in 2.4.2-1ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/cairosvgto a version that resolves this vulnerability.Fixed in 2.5.2-1ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/python3-cairosvgto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/python-cairosvgto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/python-cairosvgto a version that resolves this vulnerability.Fixed in 1.0.19-1ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/python3-cairosvgto a version that resolves this vulnerability.Fixed in 1.0.19-1ubuntu0.1~esm1 - Configuration
Do not use the unsafe option when converting SVG files; external files are fetched only when this option is used.
CairoSVG unsafe option = disabled
Event History
Frequently Asked Questions
Who is most exposed to this issue?
Systems that convert SVG files supplied by untrusted users or external sources are most exposed. This includes automated conversion workflows and services that process uploaded SVG documents.
What does an attacker need to exploit it?
An attacker needs to get a specially crafted SVG document converted by CairoSVG. The SVG can reference external files, which CairoSVG fetched by default before this update.
What changes after applying the update?
CairoSVG no longer fetches external files by default. External fetching now requires use of the unsafe option.
What can be done if the update cannot be applied immediately?
Avoid converting untrusted SVG files, especially in automated workflows. Restricting SVG conversion to trusted inputs reduces the opportunity for crafted external references to trigger server-side requests or denial of service.