CVE catalog

CVE-2021-32142

libraw: CVE-2021-32142

[CVE catalog]

Severity
Medium · CVSS 6.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.39% · Oct 25, 2026

Buffer Overflow vulnerability in LibRaw linux/unix v0.20.0 allows attacker to escalate privileges via the LibRaw_buffer_datastream::gets(char*, int) in /src/libraw/src/libraw_datastream.cpp.

Vulnerable and fixed packages

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

DistributionPackageReleaseVersionStatus
Debianlibrawsid0.22.1-1fixed
Debianlibrawforky0.22.1-1fixed
Debianlibrawtrixie0.21.4-2+deb13u1fixed
Debianlibrawbookworm0.20.2-2.1+deb12u1fixed
Debianlibrawbookworm-security0.20.2-2.1+deb12u2fixed
Ubuntulibraw20.040.19.5-1vulnerable
Ubuntulibraw20.040.19.5-1ubuntu1vulnerable
Ubuntulibraw20.040.19.5-1ubuntu1.1vulnerable
Ubuntulibraw20.040.19.5-1ubuntu1.2fixed
Ubuntulibraw22.040.20.2-1ubuntu3vulnerable
Ubuntulibraw22.040.20.2-2ubuntu1vulnerable
Ubuntulibraw22.040.20.2-2ubuntu2vulnerable
Ubuntulibraw22.040.20.2-2ubuntu2.22.04.1fixed
Suselibrawlinux enterprise software development kit 12 sp50.15.4-36.1fixed
Suselibrawlinux enterprise workstation extension 12 sp50.15.4-36.1fixed
Suselibrawlinux enterprise module for desktop applications 15 sp40.20.2-150400.3.3.1fixed
Suselibrawlinux enterprise workstation extension 15 sp40.20.2-150400.3.3.1fixed
Opensuselibrawleap 15.40.20.2-150400.3.3.1fixed
Suselibrawlinux enterprise workstation extension 15 sp40.18.9-150000.3.17.1fixed
Opensuselibrawleap 15.40.18.9-150000.3.17.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibrawsourcesid0.20.2-2.1not yet assignedNot reported[1031790]
Debianlibrawsourceforky0.20.2-2.1not yet assignedNot reported[1031790]
Debianlibrawsourcetrixie0.20.2-2.1not yet assignedNot reported[1031790]
Debianlibrawsourcebookworm0.20.2-2.1not yet assignedNot reported[1031790]
Ubuntulibrawdeb20.040.19.5-1ubuntu1.2Not reportedUSN-6137-1Not reported
Ubuntulibrawdeb22.040.20.2-2ubuntu2.22.04.1Not reportedUSN-6137-1Not reported
Suselibrawrpmlinux enterprise software development kit 12 sp50.15.4-36.1Not reportedSUSE-SU-2023:0510-1Not reported
Suselibrawrpmlinux enterprise workstation extension 12 sp50.15.4-36.1Not reportedSUSE-SU-2023:0510-1Not reported
Suselibrawrpmlinux enterprise module for desktop applications 15 sp40.20.2-150400.3.3.1Not reportedSUSE-SU-2023:0512-1Not reported
Suselibrawrpmlinux enterprise workstation extension 15 sp40.20.2-150400.3.3.1Not reportedSUSE-SU-2023:0512-1Not reported
Opensuselibrawrpmleap 15.40.20.2-150400.3.3.1Not reportedSUSE-SU-2023:0512-1Not reported
Suselibrawrpmlinux enterprise workstation extension 15 sp40.18.9-150000.3.17.1Not reportedSUSE-SU-2023:0511-1Not reported
Opensuselibrawrpmleap 15.40.18.9-150000.3.17.1Not reportedSUSE-SU-2023:0511-1Not reported

[Debian bug #1031790]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libraw20]Fixed

    Source package: [libraw]

    Details (4)
    • 0.20.2-2.1+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

    • 0.20.2-2.1+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

    • 0.20.2-2.1+deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

    • 0.20.2-2.1+deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

  • [libraw-bin]Fixed

    Source package: [libraw]

    Details (4)
    • 0.20.2-2.1+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

    • 0.20.2-2.1+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

    • 0.20.2-2.1+deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

    • 0.20.2-2.1+deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

  • [libraw-dev]Fixed

    Source package: [libraw]

    Details (4)
    • 0.20.2-2.1+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

    • 0.20.2-2.1+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

    • 0.20.2-2.1+deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

    • 0.20.2-2.1+deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

  • [libraw-doc]Fixed

    Source package: [libraw]

    Details (4)
    • 0.20.2-2.1+deb12u1 · all · bookworm

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

    • 0.20.2-2.1+deb12u1 · all · bookworm

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

    • 0.20.2-2.1+deb12u2 · all · bookworm-security

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

    • 0.20.2-2.1+deb12u2 · all · bookworm-security

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · bookworm; dsa · libraw · debian · 12

[Debian 13 (Trixie)]

  • Source package: [libraw]

    Details (2)
    • 0.21.4-2 · amd64 · trixie

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · 13

    • 0.21.4-2 · arm64 · trixie

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · 13

  • [libraw-bin]Fixed

    Source package: [libraw]

    Details (2)
    • 0.21.4-2 · amd64 · trixie

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · 13

    • 0.21.4-2 · arm64 · trixie

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · 13

  • [libraw-dev]Fixed

    Source package: [libraw]

    Details (2)
    • 0.21.4-2 · amd64 · trixie

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · 13

    • 0.21.4-2 · arm64 · trixie

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · 13

  • [libraw-doc]Fixed

    Source package: [libraw]

    Details (2)
    • 0.21.4-2 · all · trixie

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · 13

    • 0.21.4-2 · all · trixie

      Fixed · Fixed: 0.20.2-2.1

      dsa · libraw · debian · 13

Observed:

References