CVE-2023-37644
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Jan 11, 2024
CISA due date
—
Cloudanix analysis
A flaw in document handling can make the program use far more memory than intended when given a specially made file, potentially freezing or crashing the application.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits a crafted document to trigger an excessively large memory allocation attempt inside png_read_chunk in lib/png.c, resulting in memory exhaustion.
Why it matters to the business
Systems may become unresponsive when processing untrusted documents, causing operational disruption and potential loss of service availability until the process is terminated or the system is restarted.
How an attack unfolds
An attacker crafts a malicious document that, when opened or converted by the affected tool, reaches png_read_chunk and forces an oversized allocation, exhausting available memory and crashing the process.
How to fix it
Update to a fixed version of the affected package. For chromium on Debian 12 install version 126.0.6478.114-1~deb12u1 or later.
How to confirm the fix worked
Verify the installed package version matches or exceeds the fixed release and confirm that processing of the previously triggering document no longer causes excessive memory usage or crashes.
Typical attack path
- Prepare a specially crafted document targeting the PNG chunk handling path
- Deliver the document to the victim or host it for download
- Victim opens or converts the document using the vulnerable software
- png_read_chunk attempts the oversized allocation and the process terminates
How to detect it
Review process logs and system resource monitors for unexpected high memory consumption or OOM kills when document conversion tools are invoked; inspect any available crash dumps or core files for references to png_read_chunk.
What your security team should do
- Apply the listed fixed package version immediately on all Debian 12 systems running chromium
- Restrict processing of untrusted documents until patches are deployed
- Monitor memory usage of document-processing workflows for anomalous spikes
The record
SWFTools 0.9.2 772e55a allows attackers to trigger a large memory-allocation attempt via a crafted document, as demonstrated by pdf2swf. This occurs in png_read_chunk in lib/png.c.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | swftools | 0 | No fix |
| Ubuntu:18.04:LTS | swftools | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | swftools | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | swftools | 0 | No fix |
Related vulnerabilities
- CVE-2024-28458 Null Pointer Dereference vulnerability in swfdump in swftools 0.9.2 allows attackers to… Also affects swftools
- CVE-2024-26334 swftools v0.9.2 was discovered to contain a segmentation violation via the function… Also affects swftools
- CVE-2024-26337 swftools v0.9.2 was discovered to contain a segmentation violation via the function… Also affects swftools
- CVE-2024-26335 swftools v0.9.2 was discovered to contain a segmentation violation via the function… Also affects swftools
- CVE-2024-26339 swftools v0.9.2 was discovered to contain a strcpy parameter overlap via… Also affects swftools
- CVE-2024-26333 swftools v0.9.2 was discovered to contain a segmentation violation via the function… Also affects swftools
- CVE-2024-25165 A global-buffer-overflow vulnerability was found in SWFTools v0.9.2, in the function… Also affects swftools
- CVE-2024-22956 swftools 0.9.2 was discovered to contain a heap-use-after-free vulnerability via the… Also affects swftools