LiveActive security incident?Get immediate response
CVE Record

CVE-2022-0699: A double-free condition exists in contrib/shpsort.c of shapelib 1.5.0 and older releases.

A double-free condition exists in contrib/shpsort.c of shapelib 1.5.0 and older releases. This issue may allow an attacker to cause a denial of service or have other unspecified impact via control over malloc.

CriticalCVSS 9.8Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

CVE-2022-0699 is a memory safety flaw in shapelib's shpsort utility affecting version 1.5.0 and older. An attacker able to feed crafted shapefile-related input could crash processing and may have unspecified additional impact. Treat this as urgent where shapelib handles untrusted geospatial files.

Executive priority

Prioritize remediation for geospatial services that process third-party files. The score is critical, but urgency should be highest where untrusted shapefile input reaches vulnerable shapelib components.

Technical view

The issue is a double-free condition in contrib/shpsort.c in shapelib 1.5.0 and earlier, reported with CVSS 3.1 score 9.8. The CVE record describes denial of service or unspecified impact through control over malloc. Public sources identify an upstream GitHub issue, a fixing commit, and a Debian LTS advisory.

Likely exposure

Exposure is most likely in applications, batch jobs, or distributions that include shapelib 1.5.0 or older and process shapefile data from external or untrusted sources.

Exploitation context

The provided sources do not show CISA KEV listing or confirmed active exploitation. The CVSS vector indicates remote, unauthenticated, low-complexity impact without user interaction, but practical exploitability details are incomplete.

Researcher notes

Evidence confirms the vulnerable file, affected version range, high CVSS rating, and upstream commit reference. The sources do not establish active exploitation, a named fixed release, or a precise impact beyond denial of service and unspecified malloc-related consequences.

Mitigation direction

  • Identify all packaged and bundled shapelib copies.
  • Update through vendor or distribution channels incorporating the upstream fix.
  • Review the OSGeo fixing commit before backporting.
  • Follow Debian LTS guidance where Debian packages are used.
  • Restrict untrusted shapefile processing until patched.

Validation and detection

  • Check installed shapelib versions against 1.5.0 and older.
  • Confirm whether contrib/shpsort.c is built or shipped.
  • Verify packages include the referenced upstream commit or vendor fix.
  • Review ingestion paths for externally supplied shapefile data.
  • Document any compensating controls for unpatched systems.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-416: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-0699 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.8CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H3.95.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.8Critical
CVSS 3.1 vector shape for CVE-2022-0699Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/ashapelibshapelib 1.5.0 and older releasesListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-416 · source CWE mapping

Use After Free

Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.