CVE-2023-49460
High · 8.8CVSS
8.8
EPSS
0.8%
Published
Dec 7, 2023
CISA due date
—
Cloudanix analysis
A flaw in image handling code can make programs crash when they try to open certain specially crafted image files.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Segmentation violation in UncompressedImageCodec::decode_uncompressed_image causes process crash or memory corruption when processing malformed uncompressed image data.
Why it matters to the business
Services that process untrusted images can be disrupted by crashes, leading to downtime and potential data exposure or further compromise if memory corruption allows code execution.
How an attack unfolds
An attacker crafts a malicious uncompressed image file that triggers the segmentation fault during decoding in libheif, causing the application to crash or enabling memory corruption exploitation when the file is processed by affected software.
How to fix it
Upgrade vitessio/vitess to commit 2fd5ba1dbf6e9b32fdfdaf869d130066b1b5c0df or later; rebuild and redeploy any dependent components that incorporate the fixed libheif handling.
How to confirm the fix worked
Confirm the updated commit is present in the codebase, test image decoding with known trigger files to ensure no crash occurs, and verify application stability under load with varied image inputs.
Typical attack path
- Identify target application or service that accepts or processes image files via libheif
- Craft a malformed uncompressed image designed to trigger the decode path
- Deliver the image through upload, download, or network request
- Trigger decoding in the vulnerable code path to induce crash or corruption
How to detect it
Review application and system logs for segmentation faults or crashes during image decoding operations; correlate with file upload or processing timestamps and inspect any error messages referencing image codec functions.
What your security team should do
- Prioritize upgrade to the fixed commit across all environments within the next maintenance window
- Implement input validation or sandboxing for image processing workflows until patched
- Monitor for application crashes correlated with image processing events
The record
libheif v1.17.5 was discovered to contain a segmentation violation via the function UncompressedImageCodec::decode_uncompressed_image.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:13 | libheif | 0 | 1.17.6-1 |
| Mageia:9 | libheif | 0 | 1.16.2-1.1.mga9 |
| Mageia:9 | libheif | 0 | 1.16.2-1.1.mga9.tainted |
| Ubuntu:23.10 | libheif | 0 | 1.16.2-2ubuntu1.1 |
| Ubuntu:24.04:LTS | libheif | 0 | 1.17.6-1ubuntu4 |
| Ubuntu:Pro:18.04:LTS | libheif | 0 | 1.1.0-2ubuntu0.1~esm1 |
| Ubuntu:Pro:20.04:LTS | libheif | 0 | 1.6.1-1ubuntu0.1~esm1 |
| Ubuntu:Pro:22.04:LTS | libheif | 0 | 1.12.0-2ubuntu0.1~esm1 |
Related vulnerabilities
- CVE-2024-41311 In Libheif 1.17.6, insufficient checks in ImageOverlay::parse() decoding a heif file… Also affects libheif
- CVE-2024-25269 libheif <= 1.17.6 contains a memory leak in the function JpegEncoder::Encode. Also affects libheif
- CVE-2023-49462 libheif v1.17.5 was discovered to contain a segmentation violation via the component… Also affects libheif
- CVE-2023-49463 libheif v1.17.5 was discovered to contain a segmentation violation via the function… Also affects libheif
- CVE-2023-49464 libheif v1.17.5 was discovered to contain a segmentation violation via the function… Also affects libheif