Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 93%

CVE-2026-59146: CWE-787 Out-of-bounds Write in EGOR Data::SpatialHash::Shared

0
High
VulnerabilityCVE-2026-59146cvecve-2026-59146cwe-787cwe-125
Published: 07/21/2026 (07/21/2026, 19:04:56 UTC)
Source: CVE Database V5
Vendor/Project: EGOR
Product: Data::SpatialHash::Shared

Description

Data::SpatialHash::Shared versions before 0.02 for Perl contain an out-of-bounds read and write vulnerability due to unvalidated indices in key functions. This allows a local peer with write access to the backing file to corrupt memory or crash the process by manipulating bucket chains and free lists. The vulnerability arises because the validator checks header scalars and region layout but does not validate array contents, leading to unsafe memory access during queries and inserts.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →cve
Data-SpatialHash-Shared
pkg:github/Data-SpatialHash-Shared
Affected versions
<0.02

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 08:38:20 UTC

Technical Analysis

CVE-2026-59146 describes an out-of-bounds write and read vulnerability in Data::SpatialHash::Shared versions prior to 0.02. The vulnerability stems from insufficient validation of bucket, link, and free-list indices used in the functions sph_walk_cell and sph_alloc_slot. Although the attach-time validator sph_validate_header verifies header scalars and region layout against file size, it does not validate the array contents that are subsequently trusted. A local attacker with write access to the backing file can craft a valid header while poisoning bucket chains and free lists, causing sph_walk_cell to read out-of-bounds entries and sph_alloc_slot to write out-of-bounds via the free-list head index. This leads to memory corruption or process crashes.

Potential Impact

Successful exploitation allows a local attacker with write access to the backing file to cause memory corruption or crash the process using Data::SpatialHash::Shared. The vulnerability affects confidentiality, integrity, and availability, as indicated by the CVSS vector (C:H/I:H/A:H). There are no known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict local write access to the backing file to trusted users only to prevent exploitation. Monitor for updates from the vendor or maintainers regarding patches or official fixes.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
CPANSec
Date Reserved
2026-07-02T16:24:17.913Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 6a5fcbb52a4a8d5989ac6cd4

Added to database: 07/21/2026, 19:42:45 UTC

Last enriched: 07/30/2026, 08:38:20 UTC

Last updated: 09/04/2026, 15:48:44 UTC

Views: 58

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses