Cloudanix VulnDB

CVE-2020-27818

Low · 3.3

CVSS

3.3

EPSS

1.2%

Published

Dec 8, 2020

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A specially made image file can make a PNG-checking tool briefly stop working until it is restarted.

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

Memory corruption in the check_chunk_name function allows a malformed PNG chunk name to trigger a crash or temporary hang during file parsing.

Why it matters to the business

Attackers can briefly interrupt pngcheck processing on user workstations or build pipelines, causing short availability loss with minimal overall operational effect.

How an attack unfolds

An attacker crafts a PNG containing an invalid chunk name, then supplies the file to pngcheck via command line or automated scanning; the tool crashes or stalls until restarted.

How to fix it

Upgrade pngcheck to a version newer than 2.4.0 that resolves the chunk-name validation issue; rebuild any dependent packages in Fedora or Debian distributions once corrected packages are released.

How to confirm the fix worked

Confirm pngcheck version is greater than 2.4.0 and test with known-malformed test files to verify the process no longer crashes.

Typical attack path

  1. Craft a PNG file with a malformed chunk name that triggers the flaw in check_chunk_name
  2. Deliver the file to a target system where pngcheck is executed
  3. Invoke pngcheck against the malicious file, causing the process to terminate or hang
  4. Repeat as needed to sustain temporary denial of service

How to detect it

Review process crash logs and command-line history for pngcheck invocations on files that produce segmentation faults or unexpected exits; correlate with file creation timestamps.

What your security team should do

  • Prioritize updating pngcheck across developer workstations and CI pipelines
  • Disable pngcheck execution on untrusted files until patched
  • Monitor upstream libpng and distribution repositories for corrected packages

The record

A flaw was found in the check_chunk_name() function of pngcheck-2.4.0. An attacker able to pass a malicious file to be processed by pngcheck could cause a temporary denial of service, posing a low risk to application availability.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 pngcheck 0 2.3.0-13
Debian:12 pngcheck 0 2.3.0-13
Debian:13 pngcheck 0 2.3.0-13
Debian:14 pngcheck 0 2.3.0-13
Debian:9 pngcheck 0 2.3.0-7+deb9u1
SUSE:Package Hub 15 SP1 pngcheck 0 2.3.0-bp151.4.3.1
SUSE:Package Hub 15 SP2 pngcheck 0 2.3.0-bp152.4.3.1
Ubuntu:20.04:LTS pngcheck 0 2.3.0-7ubuntu0.20.04.1
Ubuntu:22.04:LTS pngcheck 0 3.0.2-2
Ubuntu:24.04:LTS pngcheck 0 No fix
Ubuntu:24.10 pngcheck 0 No fix
Ubuntu:25.04 pngcheck 0 No fix
Ubuntu:25.10 pngcheck 0 No fix
Ubuntu:Pro:16.04:LTS pngcheck 0 2.3.0-7ubuntu0.16.04.1~esm1
Ubuntu:Pro:18.04:LTS pngcheck 0 2.3.0-7ubuntu0.18.04.1~esm1
openSUSE:Leap 15.1 pngcheck 0 2.3.0-lp151.3.3.1
openSUSE:Leap 15.2 pngcheck 0 2.3.0-lp152.4.3.1
openSUSE:Tumbleweed pngcheck 0 3.0.0-1.7

Related vulnerabilities