CVE-2022-0699
NixOS vulnerability analysis and mitigation

Overview

A double-free condition vulnerability (CVE-2022-0699) was identified in contrib/shpsort.c of shapelib version 1.5.0 and older releases. The vulnerability was discovered and reported on December 29, 2021, affecting the shapelib library, which is used for handling ESRI Shapefile format (GitHub Issue, CVE Mitre).

Technical details

The vulnerability occurs when a buffer named 'copy' is freed twice in the split() function within shpsort.c. Specifically, the first free operation happens at line 107, and if realloc() fails on line 110, the same buffer is incorrectly freed again at line 116. This double-free condition represents a serious memory handling flaw that could potentially be exploited (GitHub Issue).

Impact

The double-free vulnerability could allow an attacker to gain control over the values returned from malloc(), which could lead to multiple security implications. These include the potential disclosure of sensitive data through bypassing additional safety features, and in worst-case scenarios, the possibility of hostile code execution. Additionally, attackers could cause denial of service conditions (CVE Mitre, GitHub Issue).

Mitigation and workarounds

The vulnerability has been fixed by removing the redundant free() operation at line 116 in the contrib/shpsort.c file. Users are advised to upgrade to versions newer than 1.5.0, specifically version 1.6.1-1 or later, which contains the fix. For Debian systems, the fix is available in bookworm version 1.5.0-3 and sid/trixie version 1.6.1-1 (Debian Tracker, GitHub Commit).

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-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-65622MEDIUM5.4
  • PHPPHP
  • snipe-it
NoYesDec 01, 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