CVE catalog

CVE-2019-5059

libsdl2-image: CVE-2019-5059

[CVE catalog]

Severity
High · CVSS 8.8CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
3.55% · Oct 25, 2026

An exploitable code execution vulnerability exists in the XPM image rendering functionality of SDL2_image 2.0.4. A specially crafted XPM image can cause an integer overflow, allocating too small of a buffer. This buffer can then be written out of bounds resulting in a heap overflow, ultimately ending in code execution. An attacker can display a specially crafted image to trigger this vulnerability.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiansdl-image1.2sid1.2.12-14fixed
Debiansdl-image1.2forky1.2.12-14fixed
Debiansdl-image1.2trixie1.2.12-14fixed
Debiansdl-image1.2bookworm1.2.12-13fixed
Debianlibsdl2-imagesid2.8.12+dfsg-2fixed
Debianlibsdl2-imageforky2.8.12+dfsg-2fixed
Debianlibsdl2-imagetrixie2.8.8+dfsg-1+deb13u1fixed
Debianlibsdl2-imagebookworm2.6.3+dfsg-1fixed
Alpinesdl2_image3.102.0.5-r0fixed
Alpinesdl2_image3.72.0.5-r0fixed
Alpinesdl2_image3.82.0.5-r0fixed
Alpinesdl2_image3.92.0.5-r0fixed
Ubuntulibsdl2-imagepro2.0.0+dfsg-2vulnerable
Ubuntulibsdl2-imagepro2.0.0+dfsg-3vulnerable
Ubuntulibsdl2-imagepro2.0.0+dfsg-3build2vulnerable
Ubuntulibsdl2-imagepro2.0.0+dfsg-3+deb8u1build0.14.04.1vulnerable
Ubuntulibsdl2-imagepro2.0.0+dfsg-3+deb8u2build0.14.04.1~esm1vulnerable
Ubuntulibsdl2-image16.042.0.0+dfsg-3build2vulnerable
Ubuntulibsdl2-image16.042.0.1+dfsg-1vulnerable
Ubuntulibsdl2-image16.042.0.1+dfsg-2vulnerable
Ubuntulibsdl2-image16.042.0.1+dfsg-2+deb9u1build0.16.04.1vulnerable
Ubuntulibsdl2-image18.042.0.1+dfsg-3vulnerable
Ubuntulibsdl2-image18.042.0.1+dfsg-4vulnerable
Ubuntulibsdl2-image18.042.0.2+dfsg1-1vulnerable
Ubuntulibsdl2-image18.042.0.3+dfsg1-1vulnerable
Ubuntulibsdl2-image20.042.0.5+dfsg1-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansdl-image1.2sourcesid1.2.12-12not yet assignedNot reportedNot reported
Debiansdl-image1.2sourceforky1.2.12-12not yet assignedNot reportedNot reported
Debiansdl-image1.2sourcetrixie1.2.12-12not yet assignedNot reportedNot reported
Debiansdl-image1.2sourcebookworm1.2.12-12not yet assignedNot reportedNot reported
Debianlibsdl2-imagesourcesid2.0.5+dfsg1-1not yet assignedNot reportedNot reported
Debianlibsdl2-imagesourceforky2.0.5+dfsg1-1not yet assignedNot reportedNot reported
Debianlibsdl2-imagesourcetrixie2.0.5+dfsg1-1not yet assignedNot reportedNot reported
Debianlibsdl2-imagesourcebookworm2.0.5+dfsg1-1not yet assignedNot reportedNot reported
Alpinesdl2_imageapk3.102.0.5-r0Not reportedALPINE-CVE-2019-5059Not reported
Alpinesdl2_imageapk3.72.0.5-r0Not reportedALPINE-CVE-2019-5059Not reported
Alpinesdl2_imageapk3.82.0.5-r0Not reportedALPINE-CVE-2019-5059Not reported
Alpinesdl2_imageapk3.92.0.5-r0Not reportedALPINE-CVE-2019-5059Not reported
Ubuntulibsdl2-imagedeb20.042.0.5+dfsg1-1Not reportedUBUNTU-CVE-2019-5059Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [libsdl2-image]

    Details (2)
    • 2.6.3+dfsg-1 · amd64 · bookworm

      Fixed · Fixed: 2.0.5+dfsg1-1

      dsa · libsdl2-image · debian · bookworm; dsa · libsdl2-image · debian · 12

    • 2.6.3+dfsg-1 · arm64 · bookworm

      Fixed · Fixed: 2.0.5+dfsg1-1

      dsa · libsdl2-image · debian · bookworm; dsa · libsdl2-image · debian · 12

  • Source package: [libsdl2-image]

    Details (2)
    • 2.6.3+dfsg-1 · amd64 · bookworm

      Fixed · Fixed: 2.0.5+dfsg1-1

      dsa · libsdl2-image · debian · bookworm; dsa · libsdl2-image · debian · 12

    • 2.6.3+dfsg-1 · arm64 · bookworm

      Fixed · Fixed: 2.0.5+dfsg1-1

      dsa · libsdl2-image · debian · bookworm; dsa · libsdl2-image · debian · 12

  • Source package: [libsdl2-image]

    Details (2)
    • 2.6.3+dfsg-1 · amd64 · bookworm

      Fixed · Fixed: 2.0.5+dfsg1-1

      dsa · libsdl2-image · debian · bookworm; dsa · libsdl2-image · debian · 12

    • 2.6.3+dfsg-1 · arm64 · bookworm

      Fixed · Fixed: 2.0.5+dfsg1-1

      dsa · libsdl2-image · debian · bookworm; dsa · libsdl2-image · debian · 12

  • Source package: [sdl-image1.2]

    Details (2)
    • 1.2.12-13+b2 · amd64 · bookworm

      Fixed · Fixed: 1.2.12-12

      dsa · sdl-image1.2 · debian · bookworm; dsa · sdl-image1.2 · debian · 12

    • 1.2.12-13+b2 · arm64 · bookworm

      Fixed · Fixed: 1.2.12-12

      dsa · sdl-image1.2 · debian · bookworm; dsa · sdl-image1.2 · debian · 12

  • Source package: [sdl-image1.2]

    Details (2)
    • 1.2.12-13+b2 · amd64 · bookworm

      Fixed · Fixed: 1.2.12-12

      dsa · sdl-image1.2 · debian · bookworm; dsa · sdl-image1.2 · debian · 12

    • 1.2.12-13+b2 · arm64 · bookworm

      Fixed · Fixed: 1.2.12-12

      dsa · sdl-image1.2 · debian · bookworm; dsa · sdl-image1.2 · debian · 12

[Debian 13 (Trixie)]

  • Source package: [libsdl2-image]

    Details (2)
    • 2.8.8+dfsg-1 · amd64 · trixie

      Fixed · Fixed: 2.0.5+dfsg1-1

      dsa · libsdl2-image · debian · 13

    • 2.8.8+dfsg-1 · arm64 · trixie

      Fixed · Fixed: 2.0.5+dfsg1-1

      dsa · libsdl2-image · debian · 13

  • Source package: [libsdl2-image]

    Details (2)
    • 2.8.8+dfsg-1 · amd64 · trixie

      Fixed · Fixed: 2.0.5+dfsg1-1

      dsa · libsdl2-image · debian · 13

    • 2.8.8+dfsg-1 · arm64 · trixie

      Fixed · Fixed: 2.0.5+dfsg1-1

      dsa · libsdl2-image · debian · 13

  • Source package: [libsdl2-image]

    Details (2)
    • 2.8.8+dfsg-1 · amd64 · trixie

      Fixed · Fixed: 2.0.5+dfsg1-1

      dsa · libsdl2-image · debian · 13

    • 2.8.8+dfsg-1 · arm64 · trixie

      Fixed · Fixed: 2.0.5+dfsg1-1

      dsa · libsdl2-image · debian · 13

  • Source package: [sdl-image1.2]

    Details (2)
    • 1.2.12-14 · amd64 · trixie

      Fixed · Fixed: 1.2.12-12

      dsa · sdl-image1.2 · debian · 13

    • 1.2.12-14 · arm64 · trixie

      Fixed · Fixed: 1.2.12-12

      dsa · sdl-image1.2 · debian · 13

  • Source package: [sdl-image1.2]

    Details (2)
    • 1.2.12-14 · amd64 · trixie

      Fixed · Fixed: 1.2.12-12

      dsa · sdl-image1.2 · debian · 13

    • 1.2.12-14 · arm64 · trixie

      Fixed · Fixed: 1.2.12-12

      dsa · sdl-image1.2 · debian · 13

Observed:

References