Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft .irap file with oversized ncol/nrow header
-
DeliverySubmit file to surfio-backed service
-
ExploitParser trusts size field without bounds check
-
ExecutionOut-of-bounds read / huge allocation
-
ImpactMemory disclosure or worker crash (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires that the target application uses surfio (< 0.0.19) to parse an Irap surface file whose contents the attacker controls or can influence - specifically an .irap file (ASCII or binary) whose header ncol/nrow size fields declare more values than the file body actually holds. The vendor's Critical/network rating explicitly assumes surfio is deployed to parse untrusted files in a networking context such as a web service; that deployment model is the real precondition. Limiting factors: exploitation is gated on the consuming application accepting and auto-parsing externally supplied Irap files, so a tool that only opens locally trusted geoscience files is effectively local-vector and far lower risk; the realized impact is memory over-read (information disclosure) and over-allocation/crash (DoS), not code execution. |
| Impact | The published CVSS 3.0 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H, 9.8 Critical) reflects a worst-case assumption stated by the vendor itself: that surfio parses untrusted files in a networked web service. That assumption drives the score - the underlying defect is an out-of-bounds READ (CWE-125, tagged Information Disclosure), so the I:H (integrity) rating is hard to justify and A:H is realized mainly as crash/over-allocation denial of service rather than full compromise. There is no EPSS score, no CISA KEV listing, and no public proof-of-concept in the provided data, so exploitation signals are weak. Net assessment: a genuine parser-hardening fix worth applying wherever surfio ingests third-party files, but the 9.8 headline overstates real-world risk for the typical deployment (a local geoscience tooling library, not an internet-facing service). Treat the network vector and integrity impact as conditional on how the consuming application exposes surfio - verify before prioritizing this as if it were remote RCE. |
| Exploit ScenarioDerived | An application - for example a web service that lets users upload subsurface surface files - passes an uploaded .irap file to surfio for parsing. The attacker crafts a file whose header declares far more columns and rows than the file actually contains; surfio reads past the buffer and/or attempts to allocate tens of megabytes, leaking adjacent process memory or crashing the worker. No public proof-of-concept is available, but the patch's regression tests demonstrate the trigger (a one-value surface with a header declaring ~2**24 values ~64MB). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Out-of-bounds read with unbounded memory allocation in the surfio Python/C++ library affects all versions prior to 0.0.19, where the Irap ASCII and binary surface-file parsers trust attacker-controllable ncol/nrow size fields in the header without validating them against the actual input length. A remote attacker who can supply a crafted .irap file to an application that parses it - the vendor explicitly rates severity assuming surfio runs in a networked service - can trigger a memory over-read and force allocation of tens of megabytes from a single tiny value, causing information disclosure or denial of service. No public exploit identified at time of analysis; the issue is fixed in 0.0.19.
RemediationAI
Vendor-released patch: 0.0.19 - upgrade surfio to 0.0.19 or later (pip install --upgrade 'surfio>=0.0.19'); the fix is delivered via https://github.com/equinor/surfio/pull/86 and commit 1619750bce28e39c4f378d2fb6d28b72380a12aa, released at https://github.com/equinor/surfio/releases/tag/0.0.19. If you cannot upgrade immediately, do not feed untrusted or attacker-reachable .irap files to surfio: restrict parsing to files from trusted sources, and where surfio sits behind a service that accepts uploads, validate/normalize header ncol and nrow against actual file size before handing bytes to surfio (side effect: legitimate but unusually large surfaces may be rejected by an overly tight limit). Running the parser in a resource-capped, sandboxed worker (memory/CPU cgroup limits) contains the over-allocation and out-of-bounds read to a disposable process at the cost of added latency and operational complexity. See advisory GHSA-rcr2-hggw-43wm for details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
surfio (PyPI package 'surfio', maintained by Equinor) is a Python-bound C++ library for reading and writing Irap/RMS surface grid files used in subsurface/geoscience workflows. The vulnerable routines are get_values() in src/lib/irap_import_ascii.cpp and get_values_binary() in src/lib/irap_import_binary.cpp, which computed the number of grid values (nvalues = ncol * nrow) from header-declared dimensions and read/allocated based on that figure without confirming the buffer between start and end actually contains that many 4-byte floats. This is CWE-125 (Out-of-bounds Read): the declared size field drives a read past the real end of the input. The patch changes ncol/nrow from int to size_t and adds a bound check - 'if (static_cast<size_t>(end - start) / 4 < nvalues) throw std::length_error' - rejecting headers whose declared dimensions exceed the input length, which also closes the excessive-allocation vector (regression-tested with a memray 10 MB limit against a header declaring ~2**24 values from a one-value surface).
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Adopts the vendor's networked-parser assumption (AV:N/PR:N/UI:N/AC:L); an out-of-bounds READ yields memory disclosure (C:H) and DoS via over-read/over-allocation (A:H) but no integrity impact (I:N).
Primary rating from Vendor (https://github.com/equinor/surfio).
CVSS VectorVendor: https://github.com/equinor/surfio
DescriptionCVE.org
Impact
Prior to version 0.0.19, surfio would not correctly validate size fields in irap files, leading to a buffer overflow . The severity rating assumes that surfio is used to parse untrused files in a networking context such as a web service.
Patches
The bug has been patched in version 0.0.19
Executive ViewAI
The surfio Python/C++ library (all versions before 0.0.19) contains a critical remote vulnerability enabling memory exhaustion and information disclosure via crafted .irap surface files. Organizations running surfio in networked services that parse untrusted file input face immediate risk of data leakage and service disruption. Urgent patching to version 0.0.19 is required across all production systems.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-78671
GHSA-rcr2-hggw-43wm
NVD
CVE.org
EPSS
Exploit-DB