CVE-2017-6298
High · 7.8CVSS
7.8
EPSS
1.5%
Published
Feb 24, 2017
CISA due date
—
Cloudanix analysis
A bug in code that reads certain email attachment formats can make programs crash or let attackers run code when someone opens a specially made file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
Null pointer dereference in ytnef before 1.9.1 due to unchecked calloc return value, resulting in memory corruption on malformed TNEF input.
Why it matters to the business
Applications processing TNEF files (including certain exporters and mail tools) may crash or allow local code execution, causing service outages and data exposure risks; urgency is low given age and lack of KEV listing but still requires patching of dependent packages like prometheus-postgres-exporter.
How an attack unfolds
An attacker supplies a crafted TNEF file that triggers calloc failure; the null return value is dereferenced without a check, leading to a crash or potential memory corruption that can be leveraged for code execution when the file is opened locally.
How to fix it
Upgrade prometheus-postgres-exporter-0.10 (Chainguard) to version 0.10.1-r9 or later; ensure any direct or transitive dependency on ytnef is at least 1.9.1.
How to confirm the fix worked
Confirm installed package version meets or exceeds the fixed release; test parsing of known-good and edge-case TNEF files for absence of crashes.
Typical attack path
- Craft TNEF file that forces calloc to return null
- Deliver file via email or download to target system
- Victim opens file with affected application or library
- Null pointer dereference occurs during parsing
How to detect it
Review application and system logs for segmentation faults or crashes during TNEF file processing; monitor for unexpected terminations of processes that handle mail attachments.
What your security team should do
- Apply the listed fixed version of prometheus-postgres-exporter immediately
- Inventory all systems using ytnef or TNEF-parsing libraries
- Add package version checks to vulnerability scanning pipelines
The record
An issue was discovered in ytnef before 1.9.1. This is related to a patch described as "1 of 9. Null Pointer Deref / calloc return value not checked."
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libytnef | 0 | 1.9.1-1 |
| Debian:12 | libytnef | 0 | 1.9.1-1 |
| Debian:13 | libytnef | 0 | 1.9.1-1 |
| Debian:7 | libytnef | 0 | 1.5-4+deb7u1 |
| Debian:8 | libytnef | 0 | 1.5-6+deb8u1 |
| Mageia:5 | libytnef | 0 | 1.5-10.2.mga5 |
| Ubuntu:14.04:LTS | libytnef | 0 | 1.5-6ubuntu0.1 |
| Ubuntu:16.04:LTS | libytnef | 0 | 1.5-9ubuntu0.1 |
Related vulnerabilities
- CVE-2017-12141 In ytnef 1.9.2, a heap-based buffer overflow vulnerability was found in the function… Also affects libytnef
- CVE-2026-112405 Pillow is a Python imaging library. CWE-476
- CVE-2026-112392 Pillow is a Python imaging library. CWE-476
- CVE-2026-100348 kin-openapi is a Go project for handling OpenAPI files. CWE-476
- CVE-2026-100349 kin-openapi is a Go project for handling OpenAPI files. CWE-476
- CVE-2026-109280 ImageMagick 7.1.0-20 before 7.1.2-32 contains a use after free vulnerability in the -fx… CWE-476
- CVE-2026-109272 ImageMagick 7.1.1-31 before 7.1.2-32 contains a NULL pointer dereference in the… CWE-476
- CVE-2026-109258 ImageMagick 7.1.0-20 before 7.1.2-32 contains an invalid memory free vulnerability in the… CWE-476