NULL Pointer Dereference Affecting sdl_image package, versions [,3.4.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about NULL Pointer Dereference vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-SDLIMAGE-14913771
  • published12 Jan 2026
  • disclosed19 Dec 2021
  • creditAlbin Eldstål-Ahrens

Introduced: 19 Dec 2021

CVE-2021-45340  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade sdl_image to version 3.4.0 or higher.

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference in the stbi__convert_format() function via the stb_image.h component. An attacker can cause a crash and denial of service by loading a specially crafted invalid PICT file.

CVSS Base Scores

version 4.0
version 3.1