Heap-based Buffer Overflow Affecting libsdl-org/SDL-1.2 package, versions [,2.0.20)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (26th 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 IDSNYK-UNMANAGED-LIBSDLORGSDL12-9673535
  • published5 Apr 2022
  • disclosed5 Apr 2022
  • creditUnknown

Introduced: 5 Apr 2022

CVE-2021-33657  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade libsdl-org/SDL-1.2 to version 2.0.20 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in video/SDL_pixels.c in SDL (Simple DirectMedia Layer). Using a crafted malicious .BMP file, an attacker can cause the application using this library to crash and potentially execute arbitrary code.

CVSS Base Scores

version 3.1