OpenJPEG allows OOB heap memory write in opj_jp2_read_header
OpenJPEG is an open-source JPEG 2000 codec. In OpenJPEG 2.5.3 and earlier, a call to opj_jp2_read_header may lead to OOB heap memory write when the data stream p_stream is too short and p_image is not initialized.
References
- https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d x_refsource_CONFIRM
- https://github.com/uclouvain/openjpeg/pull/1573 x_refsource_MISC
- https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV x_refsource_MISC
- https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d x_refsource_CONFIRM
- https://github.com/uclouvain/openjpeg/pull/1573 x_refsource_MISC
- https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV x_refsource_MISC
- https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV x_refsource_MISC
- https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d x_refsource_CONFIRM
- https://github.com/uclouvain/openjpeg/pull/1573 x_refsource_MISC
Affected products
- ==>= 2.5.1, <= 2.5.3
- ==<= 2.5.3
Matching in nixpkgs
pkgs.openjpeg
Open-source JPEG 2000 codec written in C language
pkgs.python312Packages.pylibjpeg-openjpeg
A J2K and JP2 plugin for pylibjpeg
pkgs.python313Packages.pylibjpeg-openjpeg
A J2K and JP2 plugin for pylibjpeg
Package maintainers
-
@codyopel Cody Opel <codyopel@gmail.com>
-
@bcdarwin Ben Darwin <bcdarwin@gmail.com>