CVE-2022-1122
Reported by redhat · Published March 29, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| openjpeg2-tools | Amazon Linux | 2.4.0-11.amzn2023.0.3, 2.4.0-5.amzn2 |
| openjpeg | Alpine | 2.5.0-r0 |
| openjpeg2-devel | Amazon Linux | 2.4.0-5.amzn2 |
| openjpeg2 | Amazon Linux | 2.4.0-11.amzn2023.0.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | openjpeg2 | openjpeg2 version 2.4.0 and prior |
| amazon:2 | openjpeg2-tools | 0 |
| alpine | openjpeg | 0 |
| amazon:2 | openjpeg2-devel | 0 |
| amazon:2023 | openjpeg2 | 0 |
| amazon:2023 | openjpeg2-tools | 0 |
| n/a | openjpeg2 | 2.4.0 |
| amazon:2023 | openjpeg2-devel-docs | 0 |
| ConanCenter | openjpeg | 2.4.0 |
| amazon:2 | openjpeg2 | 0 |
| amazon:2 | openjpeg2-devel-docs | 0 |
| amazon:2023 | openjpeg2-devel | 0 |
Timeline
- Mar 29, 2022 CVE Published
- Mar 30, 2022 EPSS Score (30 in total, the first dated here)
- May 1, 2023 CVE Updated
- Mar 17, 2026 Security Advisory (5 in total, the first dated here)
- Jun 1, 2026 Distribution Patch (3 in total, the first dated here)
- Jul 11, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-1122
vulnetix vdb fixes CVE-2022-1122
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-1122/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- FEDORA-2022-9515529c96 vendor-advisoryx_refsource_FEDORA
- [debian-lts-announce] 20220410 [SECURITY] [DLA 2975-1] openjpeg2 security update mailing-listx_refsource_MLIST
- FEDORA-2022-2d112d4480 vendor-advisoryx_refsource_FEDORA
- FEDORA-2022-975e21444a vendor-advisoryx_refsource_FEDORA
- GLSA-202209-04 vendor-advisoryx_refsource_GENTOO
- https://nvd.nist.gov/vuln/detail/CVE-2022-1122 advisory
- https://github.com/uclouvain/openjpeg/pull/1369 patch
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/ url
- https://lists.debian.org/debian-lts-announce/2025/04/msg00002.html url