CVE catalog

CVE-2022-1122

OpenJPEG vulnerabilities

[CVE catalog]

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

A flaw was found in the opj2_decompress program in openjpeg2 2.4.0 in the way it handles an input directory with a large number of files. When it fails to allocate a buffer to store the filenames of the input directory, it calls free() on an uninitialized pointer, leading to a segmentation fault and a denial of service.

Vulnerable and fixed packages

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

DistributionPackageReleaseVersionStatus
Debianopenjpeg2sid2.5.4-1.1fixed
Debianopenjpeg2forky2.5.4-1.1fixed
Debianopenjpeg2trixie2.5.3-2.1~deb13u2fixed
Debianopenjpeg2trixie-security2.5.3-2.1~deb13u2fixed
Debianopenjpeg2bookworm2.5.0-2+deb12u3fixed
Debianopenjpeg2bookworm-security2.5.0-2+deb12u3fixed
Ubuntuopenjpeg2noble2.5.0-2ubuntu0.2fixed
Ubuntulibopenjp2-7noble2.5.0-2ubuntu0.2fixed
Ubuntulibopenjp2-7-devnoble2.5.0-2ubuntu0.2fixed
Ubuntulibopenjp2-toolsnoble2.5.0-2ubuntu0.2fixed
Ubuntulibopenjpip-dec-servernoble2.5.0-2ubuntu0.2fixed
Ubuntulibopenjpip-servernoble2.5.0-2ubuntu0.2fixed
Ubuntulibopenjpip-viewernoble2.5.0-2ubuntu0.2fixed
Ubuntulibopenjpip7noble2.5.0-2ubuntu0.2fixed
Ubuntuopenjpeg-docnoble2.5.0-2ubuntu0.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianopenjpeg2sourcesid2.5.0-1not yet assignedNot reportedNot reported
Debianopenjpeg2sourceforky2.5.0-1not yet assignedNot reportedNot reported
Debianopenjpeg2sourcetrixie2.5.0-1not yet assignedNot reportedNot reported
Debianopenjpeg2sourcebookworm2.5.0-1not yet assignedNot reportedNot reported
Ubuntuopenjpeg2debnoble2.5.0-2ubuntu0.2Not reportedNot reportedNot reported
Ubuntulibopenjp2-7debnoble2.5.0-2ubuntu0.2Not reportedNot reportedNot reported
Ubuntulibopenjp2-7-devdebnoble2.5.0-2ubuntu0.2Not reportedNot reportedNot reported
Ubuntulibopenjp2-toolsdebnoble2.5.0-2ubuntu0.2Not reportedNot reportedNot reported
Ubuntulibopenjpip-dec-serverdebnoble2.5.0-2ubuntu0.2Not reportedNot reportedNot reported
Ubuntulibopenjpip-serverdebnoble2.5.0-2ubuntu0.2Not reportedNot reportedNot reported
Ubuntulibopenjpip-viewerdebnoble2.5.0-2ubuntu0.2Not reportedNot reportedNot reported
Ubuntulibopenjpip7debnoble2.5.0-2ubuntu0.2Not reportedNot reportedNot reported
Ubuntuopenjpeg-docdebnoble2.5.0-2ubuntu0.2Not reportedNot reportedNot reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libopenjp2-7]Unknown

    Source package: [openjpeg2]

    Details (4)
    • 2.5.0-2+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · amd64 · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · arm64 · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

  • Source package: [openjpeg2]

    Details (4)
    • 2.5.0-2+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · amd64 · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · arm64 · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

  • Source package: [openjpeg2]

    Details (4)
    • 2.5.0-2+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · amd64 · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · arm64 · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

  • [libopenjpip7]Unknown

    Source package: [openjpeg2]

    Details (4)
    • 2.5.0-2+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · amd64 · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · arm64 · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

  • Source package: [openjpeg2]

    Details (4)
    • 2.5.0-2+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · amd64 · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · arm64 · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

  • Source package: [openjpeg2]

    Details (4)
    • 2.5.0-2+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · amd64 · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · arm64 · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

  • Source package: [openjpeg2]

    Details (4)
    • 2.5.0-2+deb12u3 · all · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · all · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · all · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · all · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

  • [openjpeg-doc]Unknown

    Source package: [openjpeg2]

    Details (4)
    • 2.5.0-2+deb12u3 · all · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · all · bookworm

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · all · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

    • 2.5.0-2+deb12u3 · all · bookworm-security

      Fixed · Fixed: 2.5.0-1

      usn · openjpeg2 · debian · bookworm

Observed:

References