CVE-2022-1507
NixOS vulnerability analysis and mitigation

Overview

A NULL Pointer Dereference vulnerability was discovered in the Chafa image-to-text converter, specifically in the gifinternaldecode_frame function at libnsgif.c:599. The vulnerability was identified in versions prior to 1.10.2 and was assigned CVE-2022-1507. Chafa is a command-line utility that converts various image formats, including animated GIFs, into ANSI/Unicode character output for terminal display (CVE Details).

Technical details

The vulnerability occurs in the gifinternaldecode_frame function when processing GIF files with no frame data. When such a file is processed, the frames pointer is NULL, leading to a potential crash due to dereferencing a null pointer. The issue was fixed by adding a check to verify if gif->frames is NULL before proceeding with frame processing (GitHub Commit).

Impact

When exploited, this vulnerability allows attackers to cause a denial of service (crash) by providing a specially crafted input file. The impact is limited to the availability of the application, with no known ability to execute code or access sensitive information (CVE Details).

Mitigation and workarounds

The vulnerability has been fixed in Chafa version 1.10.2. Users are advised to upgrade to this version or later. Multiple Linux distributions have released security updates, including Fedora 34 (1.2.1-7.fc34), Fedora 35 (1.2.1-7.fc35), and Fedora 36 (1.8.0-4.fc36) (Fedora Update).

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-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025

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