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.
{
"license": "CC-BY-4.0",
"sources": [
{
"id": "CVE-2022-1122",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-1122",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2022-1122",
"imported": "2026-05-25T01:08:37.913Z",
"modified": "2025-11-03T20:15:52.347Z",
"database_specific": {
"status": "Modified"
},
"published": "2022-03-29T18:15:07.977Z"
}
]
}