CVE-2021-33657: There is a heap overflow problem in video/SDL_pixels.c in SDL (Simple DirectMedia Layer) 2.x to 2.0.18 version
CVE-2021-33657 is a high-severity flaw (CVSS 8.8) affecting simple directmedia layer. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.8 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 2.1% (top 19%) |
| CISA exploited list | No |
| Weakness | CWE-787 |
| Published | 2022-04-01 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-33657?
simple directmedia layer: upgrade to newer than 2.0.18. Exact commands for each OS are on this page.
Is CVE-2021-33657 being exploited?
CVE-2021-33657 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-33657 affect?
CVE-2021-33657 affects simple directmedia layer. Severity is high (CVSS 8.8). 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
How urgent is CVE-2021-33657?
Priority 51/100. High severity
Related CVEs
- CVE-2022-4743 HIGH 7.5 UPGRADE MITIGATE A potential memory leak issue was discovered in SDL2 in GLES_CreateTexture() function in SDL_render_gles.c
- CVE-2022-34568 HIGH 7.5 UPGRADE SDL v1.2 was discovered to contain a use-after-free via the XFree function at /src/video/x11/SDL_x11yuv.c.
- CVE-2020-14410 MEDIUM 5.4 UPGRADE MITIGATE SDL (Simple DirectMedia Layer) through 2.0.12 has a heap-based buffer over-read in Blit_3or4_to_3or4__inversed
- CVE-2020-14409 HIGH 7.8 UPGRADE MITIGATE SDL (Simple DirectMedia Layer) through 2.0.12 has an Integer Overflow (and resultant SDL_memcpy heap corruptio
- CVE-2019-14906 CRITICAL 9.8 UPGRADE MITIGATE A flaw was found with the RHSA-2019:3950 erratum, where it did not fix the CVE-2019-13616 SDL vulnerability