Blender 2.49 before 5.2.1 contains a heap out-of-bounds read vulnerability in imb_load_jp2_stream() in source/blender/imbuf/intern/format_jp2.cc that reads every JPEG 2000 image component using the width and height of the first component, although components may be subsampled and have smaller sample buffers. Attackers can supply a crafted .jp2 file with a subsampled component that, when opened or loaded as an image or texture, makes Blender read past the end of that component's heap buffer and crash.