CVE-2021-33657

Source
https://cve.org/CVERecord?id=CVE-2021-33657
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-33657.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-33657
Downstream
ALPINE (1)
BELL (1)
CLEANSTART (1)
DEBIAN (1)
JLSEC (1)
MGASA (2)
OESA (1)
openSUSE (4)
SUSE (5)
UBUNTU (1)
Related
Published
2022-04-01T23:15:10Z
Modified
2026-10-20T14:23:26Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/libsdl-org/sdl

Affected ranges

Type
GIT
Repo
https://github.com/libsdl-org/sdl
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "cpe": "cpe:2.3:a:libsdl:simple_directmedia_layer:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "2.0.0"
                },
                {
                    "last_affected": "2.0.18"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "range": [
                {
                    "fixed": "8c91cf7dba5193f5ce12d06db1336515851c9ee9"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-33657.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "function_hash": "135559890956021690986487977211098728481",
            "length": 673
        },
        "id": "CVE-2021-33657-493fc812",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/libsdl-org/sdl/commit/8c91cf7dba5193f5ce12d06db1336515851c9ee9",
        "target": {
            "file": "src/video/SDL_pixels.c",
            "function": "Map1to1"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "120029847142050598506380381411279339480",
            "length": 860
        },
        "id": "CVE-2021-33657-52cbc3ff",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/libsdl-org/sdl/commit/8c91cf7dba5193f5ce12d06db1336515851c9ee9",
        "target": {
            "file": "src/video/SDL_pixels.c",
            "function": "Map1toN"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "237541296599115013407641409675079124889",
                "272085526378248488061226745576933115711",
                "235132022122211645155266490537828432366",
                "103230726993537480189666107780129338690",
                "159352565534071501880625154615757691494",
                "63061321940708442293120198552799010986",
                "43469035986305709707052829820256164457",
                "101640187021522532256005357573848813681"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2021-33657-795aa1c9",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/libsdl-org/sdl/commit/8c91cf7dba5193f5ce12d06db1336515851c9ee9",
        "target": {
            "file": "src/video/SDL_pixels.c"
        }
    }
]
vanir_signatures_modified
"2026-10-20T14:23:26Z"