Cloudanix VulnDB

CVE-2017-8844

High · 7.8

CVSS

7.8

EPSS

1.6%

Published

May 8, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A problem in a popular file compression program can let attackers crash it or possibly take over the computer simply by tricking someone into opening a specially prepared archive file.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Full Compromise
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap-based buffer overflow in the read_1g function of liblrzip.so triggered by a malformed archive leads to application crash or potential memory corruption that may allow arbitrary code execution.

Why it matters to the business

Processing untrusted compressed archives can cause sudden application failures, potential system instability, or full host compromise, disrupting backup, archival, and data transfer workflows that rely on lrzip.

How an attack unfolds

An attacker crafts a malicious archive that triggers the overflow in read_1g, then supplies the archive to a victim who opens or extracts it with an affected lrzip binary; the overflow occurs during decompression and may crash the process or allow control-flow hijacking.

How to fix it

Upgrade lrzip to a version that corrects the buffer handling flaw in stream.c; where package managers do not yet provide a fixed build, replace the binary with a rebuilt version from current upstream sources and rebuild any dependent packages.

How to confirm the fix worked

Confirm the installed lrzip and liblrzip.so report a version newer than 0.631 and that the read_1g function no longer performs unbounded reads on crafted inputs; re-test with known-bad archives in an isolated environment.

Typical attack path

  1. Craft archive that overflows the heap buffer in read_1g
  2. Deliver the archive via email, download link, or shared storage
  3. Victim opens or extracts the archive using lrzip or dependent tools
  4. Overflow executes, resulting in crash or code execution

How to detect it

Review system logs and crash reports for segmentation faults or heap errors originating from lrzip or liblrzip.so when processing archive files; correlate with file-access timestamps on suspicious .lrz archives.

  • liblrzip.so
  • read_1g

What your security team should do

  • Block or sandbox lrzip execution on untrusted archives until patched builds are deployed
  • Scan package repositories and build pipelines for the vulnerable 0.631 release and replace it
  • Add lrzip to the list of tools monitored for memory-corruption crashes in endpoint telemetry

The record

The read_1g function in stream.c in liblrzip.so in lrzip 0.631 allows remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted archive.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 lrzip 0 0.631+git180517-1
Debian:12 lrzip 0 0.631+git180517-1
Debian:13 lrzip 0 0.631+git180517-1
Debian:9 lrzip 0 0.631-1+deb9u1
Ubuntu:18.04:LTS lrzip 0 0.631-1+deb9u1build0.18.04.1
Ubuntu:20.04:LTS lrzip 0 0.631+git180528-1
Ubuntu:Pro:14.04:LTS lrzip 0 0.616-1ubuntu0.1~esm1
Ubuntu:Pro:16.04:LTS lrzip 0 0.621-1ubuntu0.1~esm1

Related vulnerabilities