Skip to content

Potential segfault due to NULL pointer dereference when parsing specially crafted SVG input

Moderate
lovell published GHSA-33qp-9pq7-9584 Sep 11, 2023

Package

libvips

Affected versions

>= 8.12.0 <= 8.14.3

Patched versions

>= 8.14.4

Description

Impact

A specially crafted SVG input can cause libvips versions between 8.12.0 and 8.14.3 (inclusive) to segfault when attempting to parse a malformed UTF-8 character.

Patches

Users of libvips compiled with support for SVG should upgrade to at least version 8.14.4 when processing untrusted input.

Workarounds

libvips versions between 8.12.0 and 8.14.3 can be patched with https://github.com/libvips/libvips/commit/e091d65835966ef56d53a4105a7362cafdb1582b.patch

Alternatively libvips can be compiled without SVG support using either the -Drsvg=disabled (Meson) or --without-rsvg (Autotools) flags.

References

Credit

Thank you to Christopher Krah of Code Intelligence GmbH for the responsible disclosure.

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVE ID

CVE-2023-40032

Weaknesses