CVE-2020-9308
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-9308 affects libarchive versions before 3.4.2, specifically in the archive_read_support_format_rar5.c component. The vulnerability was discovered in February 2020 and involves the improper handling of RAR5 files with invalid or corrupted headers, such as those with a header size of zero (NVD, CVE).

Technical details

The vulnerability occurs when the libarchive attempts to unpack a RAR5 file with an invalid or corrupted header. The minimum header size for RAR5 base blocks should be 7 bytes (4 bytes for CRC and 3 bytes for the rest), but the vulnerability allows processing of files with zero-byte headers. This can lead to a SIGSEGV (segmentation fault) or other unspecified impacts. The vulnerability has a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD, GitHub PR).

Impact

The vulnerability can lead to multiple severe consequences including segmentation faults, potential arbitrary code execution, or other unspecified impacts when processing maliciously crafted RAR5 files. The high CVSS score indicates potential impacts on confidentiality, integrity, and availability of the affected systems (Gentoo Security, Ubuntu Security).

Mitigation and workarounds

The vulnerability was fixed in libarchive version 3.4.2 by adding validation checks for header sizes. The fix specifically rejects files that declare invalid header flags, including those with zero-byte headers. Users are advised to upgrade to libarchive version 3.4.2 or later. Various Linux distributions have also released patched versions through their package management systems (GitHub Patch, Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management