Cloudanix VulnDB

CVE-2017-6298

High · 7.8

CVSS

7.8

EPSS

1.5%

Published

Feb 24, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

  1. Craft TNEF file that forces calloc to return null
  2. Deliver file via email or download to target system
  3. Victim opens file with affected application or library
  4. 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