Out-of-bounds Write Affecting sdl2 package, versions <2.0.18-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.81% (82nd 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-ALPINE321-SDL2-8489532
  • published6 Dec 2024
  • disclosed1 Apr 2022

Introduced: 1 Apr 2022

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

How to fix?

Upgrade Alpine:3.21 sdl2 to version 2.0.18-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream sdl2 package and not the sdl2 package as distributed by Alpine. See How to fix? for Alpine:3.21 relevant fixed versions and status.

There is a heap overflow problem in video/SDL_pixels.c in SDL (Simple DirectMedia Layer) 2.x to 2.0.18 versions. By crafting a malicious .BMP file, an attacker can cause the application using this library to crash, denial of service or Code execution.

CVSS Scores

version 3.1