Skip to content
Memory corruption Advisory Advanced CVE-2026-9535

VTK vtkChacoReader InputGraph2 out-of-bounds read vulnerability

The Chaco graph reader in VTK stores neighbour vertex IDs from a crafted .graph file without checking they fall within the declared vertex count. When an application later reads cell data from the resulting grid, the reader uses an out-of-range ID as an index into the points array, causing an out-of-bounds heap read that can crash the process or leak heap memory as coordinate values.

Emmanuel Tacheau Follow

Originally disclosed on Cisco Talos

High 8.2 View original

A out-of-bounds read vulnerability exists in the vtkChacoReader InputGraph2 functionality of vtk (version(s): 9.6.1). A specially crafted chaco can lead to an out-of-bounds read.

Emmanuel Tacheau, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

Context

VTK, the Visualization Toolkit, is an open-source software system for 3D computer graphics, image processing and scientific visualization. It ships a large collection of algorithms and data structures for rendering, volume visualization, geometric processing and interaction. The vulnerable component is vtkChacoReader, a reader for the Chaco plain-text graph format.

A Chaco dataset consists of a .graph file encoding topology and an optional .coords file with vertex coordinates. The .graph file declares the vertex count and edge count on its first line, then lists, for each vertex, the 1-based IDs of all adjacent vertices. The reader turns that adjacency data into a vtkUnstructuredGrid: each edge becomes a two-point VTK_LINE cell, and the points array is sized from the declared vertex count.

The bug is an out-of-bounds read (CWE-125) in the InputGraph2 functionality of VTK 9.6.1. A malformed .graph file is parsed without error, and the out-of-bounds read happens later, when the application accesses cell data on the resulting grid.

Setup

The advisory lists VTK 9.6.1 as the confirmed vulnerable version, tested or verified by Talos or confirmed by the vendor. The crash was reproduced with an AddressSanitizer build of VTK, driven by a harness, poc_vtkchacoreader_update.cpp. The proof-of-concept input is ./poc/oob_vertex_ref. The harness prints the point and cell counts before touching cell data:

Text
[PoC] Update(./poc/oob_vertex_ref)
[PoC] Points: 2  Cells: 1

So the crafted sample declares two vertices and produces a single line cell. No account, role or network position is involved: the precondition is simply that an application feeds an attacker-supplied Chaco file to vtkChacoReader and later reads cell geometry from the output.

Finding it

The reader accepts a malformed Chaco sample without emitting any error or warning. The output grid is built with 2 points and 1 cell, and the problem only surfaces when cell data is accessed. Under ASan the access produces:

Text
==4181==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x50400003d020
READ of size 8 at 0x50400003d020 thread T0
    #0  in vtk::detail::TupleRange<...>::GetTuple(long long, double*) const
        /opt/vtk-src/Common/Core/vtkDataArrayTupleRange_AOS.h:1023:18
    [...]
    #10 in vtkPoints::GetPoints(vtkIdList*, vtkPoints*)
        /opt/vtk-src/Common/Core/vtkPoints.cxx:109:8
    [...]
    #12 in vtkUnstructuredGrid::GetCell(long long)
        /opt/vtk-src/Common/DataModel/vtkUnstructuredGrid.cxx:365:9
    #13 in main
        /manuwork/advisories/chaco-geometry-1/poc_vtkchacoreader_update.cpp:35:26

Address 0x50400003d020 is a wild pointer inside of access range of size 0x000000000008.

The call chain runs from GetCell() (frame #12) through GetPoints() (frame #10) into GetTuple() (frame #0), where the 8-byte heap read lands at address 0x50400003d020. The full ASan report from the crash section shows the same chain with symbols and line numbers, including the dispatch machinery in vtkArrayDispatch.txx between GetPoints() and the worker, and the main frame at poc_vtkchacoreader_update.cpp:35:26.

What made this look wrong is the combination: a file that parses cleanly, a grid whose point count matches the declared vertex count, and yet a point ID inside the cell connectivity that indexes past the end of the points array. The reader validated the total number of adjacencies but never validated the individual neighbour IDs.

Exploitation

Step 1: craft a .graph file with an out-of-range neighbour ID

The .graph format declares vertex and edge counts on the first line, then gives each vertex followed by its neighbours. The neighbour field is fully attacker-controlled and is read with ReadInt(). The valid range for a neighbour is [1, nvtxs], because each ID should reference an existing vertex, but nothing enforces it. Supplying a neighbour ID above the declared vertex count is enough to plant an out-of-range point ID in the grid.

Step 2: load the file with vtkChacoReader

The reader parses the sample without error. ReadFile() allocates the points array for exactly NumberOfVertices entries, taken from the first line of the file:

Text
LINE_269  int vtkChacoReader::ReadFile(vtkUnstructuredGrid* output)
LINE_270  {
[...]
LINE_354    ptarray->SetNumberOfPoints(this->NumberOfVertices);

InputGraph2() is called from ReadFile() to build the adjacency data:

Text
LINE_269  int vtkChacoReader::ReadFile(vtkUnstructuredGrid* output)
LINE_270  {
[...]
LINE_468    rc = this->InputGraph2(&idx, &nbors, vw, ew);
}

Step 3: the neighbour ID is stored unchecked

Inside InputGraph2(), each neighbour is read from the file and written into the adjacency output array:

Text
LINE_1022  int vtkChacoReader::InputGraph2(
LINE_1023    vtkIdType** start, vtkIdType** adjacency,
LINE_1024    double** vweights, double** eweights)
LINE_1025  {
[...]
LINE_1175    neighbor = this->ReadInt(fin, &end_flag);
[...]
LINE_1200      if (++sum_edges > 2 * narcs)
LINE_1201      {
LINE_1202        vtkErrorMacro(<< "Too many adjacencies " ...);
LINE_1203        retVal = 0;
LINE_1204        goto done;
LINE_1205      }
LINE_1209        *adjptr++ = neighbor;
[...]
}

The guard at LINE_1200 caps the total adjacency count, not the individual values. Whether neighbor falls within [1, nvtxs] is never verified, and the value is stored as-is at LINE_1209.

Step 4: adjacency becomes cell connectivity

Back in ReadFile(), the adjacency array is converted into cells. Each entry is converted from 1-based to 0-based and stored as a point ID, subject only to a deduplication filter:

Text
LINE_269  int vtkChacoReader::ReadFile(vtkUnstructuredGrid* output)
LINE_270  {
[...]
LINE_354    ptarray->SetNumberOfPoints(this->NumberOfVertices);
[...]
LINE_553        vtkIdType nbor = nbors[n] - 1;    // 1-based → 0-based
[...]
LINE_557        if (nbor > id)                     // deduplication filter
[...]
LINE_570          *captr++ = nbor;                 // stored as point ID
[...]
LINE_616    output->SetCells(VTK_LINE, cells);
}

The condition nbor > id at LINE_557 ensures each edge is stored once; it is not a bounds check. At LINE_616, SetCells() commits the full connectivity array to the output grid.

Step 5: access cell data and read out of bounds

When the application calls GetCell(), the grid retrieves the point IDs for the cell and then fetches those points:

Text
LINE_370  void vtkUnstructuredGrid::GetCell(vtkIdType cellId, vtkGenericCell* cell)
LINE_371  {
[...]
LINE_375    this->Connectivity->GetCellAtId(cellId, cell->PointIds);
LINE_376    this->Points->GetPoints(cell->PointIds, cell->Points);
}

this->Connectivity is a vtkCellArray holding, for each cell, the list of point IDs that define it. GetCellAtId() at LINE_375 reads the IDs into cell->PointIds, and GetPoints() at LINE_376 dispatches to a templated worker. The worker uses each ID as an index into the points array:

Text
LINE_76     void operator()(Array1T* src, Array2T* dst) const
LINE_77     {
[...]
LINE_88         srcTuples.GetTuple(idsPtr[i], point);
[...]
}

idsPtr is a raw pointer into the list of point IDs passed down from GetCell(). Since the points array holds only NumberOfVertices entries, any index above NumberOfVertices - 1 reads beyond the buffer. In the PoC, the read of size 8 lands at 0x50400003d020, which ASan reports as a wild pointer inside an access range of size 8.

Root cause

The mistake is a missing bounds check on the neighbour vertex ID. A value read from the file at LINE_1175 flows through InputGraph2() (stored at LINE_1209), into the adjacency array nbors, through ReadFile() (converted to 0-based at LINE_553, stored as a point ID at LINE_570), and into cell connectivity via SetCells() at LINE_616. When GetCell() later resolves that cell, GetTuple() uses the stored ID as an index into the points array, which was allocated for NumberOfVertices entries.

The existing defences do not cover this. The sum_edges > 2 * narcs guard limits how many adjacencies are accepted, not what values they contain. The nbor > id condition is a deduplication filter for edges, not a range check. The reader therefore accepts a file whose connectivity references vertices that do not exist, and the failure only appears at cell access time, after parsing has already succeeded.

File content controls the read offset (the neighbor field) and the buffer size (num_vertices header) independently, which is what makes the out-of-range index easy to arrange.

Impact

The CVSSv3 score is 8.2, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H. A specially crafted .graph file causes denial of service on cell access. On non-instrumented builds, heap contents leak as double coordinate values, for example through exported geometry. The confidentiality impact is therefore limited to whatever heap data ends up interpreted as coordinates, and the availability impact comes from the crash when cell data is accessed.

The attacker only needs to supply the file; the victim must load it with vtkChacoReader and then access cell data on the resulting vtkUnstructuredGrid. The advisory does not describe any case beyond that.

Fix

A bounds check on neighbor between LINE_1175 and LINE_1209 would prevent any out-of-range vertex ID from reaching the output, A bounds check on neighbor between LINE_1175 and LINE_1209 would prevent any out-of-range vertex ID from reaching the output.. The vendor was notified on 2026-06-23 and acknowledged on 2026-06-25; the issue was assigned CVE-2026-9535, and the vendor response points to the VTK download page. The timeline records follow-ups on 2026-07-02 and 2026-09-15, vendor replies on 2026-07-07 and 2026-09-23 stating the dev team was working on it, and on 2026-10-12 Cisco advised the vendor it would publish and close out. The advisory does not state which release contains a fix.

Variants to test

  1. Neighbour IDs far above the declared vertex count, and IDs of zero or negative values after the 1-based to 0-based conversion, to see whether other index paths in the reader misbehave.
  2. Mismatches between the declared vertex count and the number of adjacency lines, to probe other places where the header and the body are trusted independently.
  3. The optional .coords file: supply coordinates for fewer or more vertices than declared and check whether point lookups read past the coordinate buffer.
  4. Other VTK readers that parse text formats with declared counts and per-entry IDs, looking for the same pattern of validating totals but not individual references.
  5. Downstream consumers of the grid, such as exporters, to see whether the leaked heap values surface in output files as the advisory suggests.

A positive result is an ASan heap-buffer-overflow report on a read, or, on a non-instrumented build, coordinate values that do not correspond to anything in the input file.

Hunting notes

This class of bug hides in file-format parsers that trust declared counts and per-record identifiers: the parser validates structure and totals, then hands raw IDs to a later stage that indexes an array sized from a header field. The signal during review is a reader that allocates from one field of the input and indexes with another, with no check tying the two together. Here the researcher showed impact by driving the parsed output into GetCell(), the ordinary way an application consumes geometry, and by demonstrating the crash under ASan. That combination, a clean parse followed by a crash on normal use, is what makes the case concrete for the vendor.

Credit

Emmanuel Tacheau of Cisco Talos.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 16 min read.

What happened, in plain words

VTK, the Visualization Toolkit, is a free open-source library that programmers use to build software for 3D graphics, image processing and scientific visualisation. Think of it as a big box of ready-made tools for drawing and analysing shapes on a computer, rather than a program you double-click. Other programs include VTK to do the heavy lifting.

One of those tools is called vtkChacoReader. Its job is to read a particular plain-text file format called Chaco, which describes a graph. A graph here is not a chart: it is a set of dots (called vertices or points) joined by lines (called edges). The Chaco format stores this in two files: a .graph file that lists the dots and which dots are connected to which, and an optional .coords file that gives each dot a position in space.

The .graph file starts with two numbers on its first line: how many vertices there are, and how many edges. After that, each line lists one vertex followed by the numbers (IDs) of the vertices it is connected to. Those IDs start counting at 1, not 0.

The reader turns this into a vtkUnstructuredGrid, which is VTK's way of holding a shape made of points and cells. Each edge in the file becomes a cell of type VTK_LINE, a simple two-point line. The list of points is sized from the vertex count declared on the first line.

The bug is an out-of-bounds read. That means the program is asked to fetch an item from a list using a position number that is past the end of the list. Imagine a shelf with two boxes on it, numbered 0 and 1, and someone asks for box number 500. The request is nonsense, but a program that does not check will happily walk past the end of the shelf and grab whatever happens to be lying there. In this case the program reads 8 bytes of memory it should never touch.

The flaw lives in the part of the reader called InputGraph2, in VTK version 9.6.1. A malformed .graph file is read without any error. The out-of-bounds read only happens later, when the application asks for the details of a cell in the resulting grid.

Setting up the test

The advisory lists VTK 9.6.1 as the confirmed vulnerable version. It was either tested by Talos, verified by Talos, or confirmed by the vendor.

The crash was reproduced using a build of VTK compiled with AddressSanitizer. AddressSanitizer, usually shortened to ASan, is a tool a programmer adds to a program while testing. It watches every memory access and shouts loudly the moment the program reads or writes outside the memory it was given. Without it, such a mistake often goes unnoticed.

The test was driven by a program, poc_vtkchacoreader_update.cpp. "PoC" stands for proof of concept: a minimal example that shows the problem is real. This program loads the sample and then calls GetCell() on the output grid. GetCell() is the ordinary way an application asks a grid for the shape of one of its cells.

The crafted input is ./poc/oob_vertex_ref. Before touching any cell data, the test program prints how many points and cells the grid ended up with:

Text
[PoC] Update(./poc/oob_vertex_ref)
[PoC] Points: 2  Cells: 1

Line by line:

  • [PoC] Update(./poc/oob_vertex_ref) is the program announcing that it is loading the sample from that folder.
  • [PoC] Points: 2 Cells: 1 says the resulting grid has two points and one cell.

So the crafted file declares two vertices and produces a single line cell. There is no login, no user account and no special network position involved. The only precondition is that some application takes a Chaco file from an untrusted source, feeds it to vtkChacoReader, and later reads cell geometry from the result.

Finding the problem

The reader accepts the malformed sample without printing any error or warning. The grid is built with 2 points and 1 cell, and everything looks fine until cell data is accessed. Under ASan, that access produces this:

Text
==4181==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x50400003d020
READ of size 8 at 0x50400003d020 thread T0
    #0  in vtk::detail::TupleRange<...>::GetTuple(long long, double*) const
        /opt/vtk-src/Common/Core/vtkDataArrayTupleRange_AOS.h:1023:18
    [...]
    #10 in vtkPoints::GetPoints(vtkIdList*, vtkPoints*)
        /opt/vtk-src/Common/Core/vtkPoints.cxx:109:8
    [...]
    #12 in vtkUnstructuredGrid::GetCell(long long)
        /opt/vtk-src/Common/DataModel/vtkUnstructuredGrid.cxx:365:9
    #13 in main
        /manuwork/advisories/chaco-geometry-1/poc_vtkchacoreader_update.cpp:35:26

Address 0x50400003d020 is a wild pointer inside of access range of size 0x000000000008.

What each part means:

  • ERROR: AddressSanitizer: heap-buffer-overflow is ASan saying the program stepped outside a block of memory reserved for it. The heap is the general-purpose pool of memory a program uses for data it creates while running.
  • READ of size 8 says the program tried to read 8 bytes, which is the size of a double, a decimal number in the C++ language.
  • The numbered lines starting with # are a stack trace: the list of function calls that led to the crash, most recent first. #0 is where it happened, #13 is the test program's own main function.
  • #0 is inside GetTuple, in a file called vtkDataArrayTupleRange_AOS.h, at line 1023. GetTuple is the function that fetches one point's coordinates.
  • #10 is vtkPoints::GetPoints, which fetches several points at once.
  • #12 is vtkUnstructuredGrid::GetCell, the function the application called.
  • #13 is main, the test program, at line 35 of poc_vtkchacoreader_update.cpp.
  • Address 0x50400003d020 is a wild pointer inside of access range of size 0x000000000008 means the address being read is not part of any valid object the program knows about, and the read covers 8 bytes.

So the chain runs from GetCell() (frame #12) through GetPoints() (frame #10) into GetTuple() (frame #0), where the 8-byte read lands at address 0x50400003d020. The full ASan report in the crash section shows the same chain with symbols and line numbers, including the internal dispatch machinery in vtkArrayDispatch.txx that sits between GetPoints() and the worker, and the main frame at poc_vtkchacoreader_update.cpp:35:26.

What made this look wrong is the combination: a file that parses cleanly, a grid whose point count matches the declared vertex count, and yet a point ID inside the cell that points past the end of the points array. The reader checked how many connections there were in total, but never checked the individual neighbour IDs.

Exploitation

Step 1: craft a .graph file with an out-of-range neighbour ID

The .graph format declares vertex and edge counts on the first line, then gives each vertex followed by its neighbours. The neighbour field is entirely under the attacker's control and is read with a function called ReadInt(). A valid neighbour is a number from 1 up to the declared vertex count, because each ID should refer to a vertex that exists. Nothing enforces that. Putting a neighbour ID above the declared vertex count is enough to plant a point ID in the grid that points past the end of the points list.

Step 2: load the file with vtkChacoReader

The reader parses the sample without error. ReadFile() sets aside space for the points array for exactly NumberOfVertices entries, taken from the first line of the file:

Text
LINE_269  int vtkChacoReader::ReadFile(vtkUnstructuredGrid* output)
LINE_270  {
[...]
LINE_354    ptarray->SetNumberOfPoints(this->NumberOfVertices);

Line by line:

  • LINE_269 and LINE_270 begin the definition of ReadFile, the function that reads the whole file and fills in the output grid.
  • [...] marks code that is left out of the excerpt.
  • LINE_354 calls SetNumberOfPoints on the points array, ptarray, with the value of this->NumberOfVertices. That value came straight from the file's first line. This is the size of the shelf, so to speak.

InputGraph2() is called from ReadFile() to build the connection data:

Text
LINE_269  int vtkChacoReader::ReadFile(vtkUnstructuredGrid* output)
LINE_270  {
[...]
LINE_468    rc = this->InputGraph2(&idx, &nbors, vw, ew);
}

Line by line:

  • LINE_468 calls InputGraph2, passing it the addresses of several variables. &idx, &nbors, vw and ew are where the function will put its results: the starting positions of each vertex's neighbour list, the neighbour list itself (nbors), and optional vertex and edge weights.
  • rc receives the return code, which says whether the call succeeded.

Step 3: the neighbour ID is stored unchecked

Inside InputGraph2(), each neighbour is read from the file and written into the output array:

Text
LINE_1022  int vtkChacoReader::InputGraph2(
LINE_1023    vtkIdType** start, vtkIdType** adjacency,
LINE_1024    double** vweights, double** eweights)
LINE_1025  {
[...]
LINE_1175    neighbor = this->ReadInt(fin, &end_flag);
[...]
LINE_1200      if (++sum_edges > 2 * narcs)
LINE_1201      {
LINE_1202        vtkErrorMacro(<< "Too many adjacencies " ...);
LINE_1203        retVal = 0;
LINE_1204        goto done;
LINE_1205      }
LINE_1209        *adjptr++ = neighbor;
[...]
}

Line by line:

  • LINE_1022 to LINE_1025 begin the definition of InputGraph2. Its parameters are pointers to pointers, which is how the function hands back arrays it has built.
  • LINE_1175 reads one integer from the file into neighbor. fin is the open file, and end_flag is a flag saying whether the end of the file was reached. This is the attacker-controlled value.
  • LINE_1200 checks whether the running total of edges, sum_edges, has gone past twice the declared number of edges, narcs. The ++ means the counter is increased before the comparison.
  • LINE_1201 to LINE_1205 handle the case where it has: print an error saying there are too many adjacencies, set the return value to 0 (failure), and jump to the done label to finish.
  • LINE_1209 stores neighbor into the adjacency array and moves the write pointer adjptr forward by one.

The guard at LINE_1200 limits how many connections are accepted in total, not what values they contain. Whether neighbor is between 1 and the vertex count is never checked, and the value is stored as-is at LINE_1209.

Step 4: the connections become cell data

Back in ReadFile(), the neighbour list is turned into cells. Each entry is converted from 1-based to 0-based counting and stored as a point ID, with only a duplicate-removal filter in the way:

Text
LINE_269  int vtkChacoReader::ReadFile(vtkUnstructuredGrid* output)
LINE_270  {
[...]
LINE_354    ptarray->SetNumberOfPoints(this->NumberOfVertices);
[...]
LINE_553        vtkIdType nbor = nbors[n] - 1;    // 1-based → 0-based
[...]
LINE_557        if (nbor > id)                     // deduplication filter
[...]
LINE_570          *captr++ = nbor;                 // stored as point ID
[...]
LINE_616    output->SetCells(VTK_LINE, cells);
}

Line by line:

  • LINE_354 again sizes the points array from the declared vertex count.
  • LINE_553 takes the n-th neighbour from the nbors array and subtracts 1. The file counts vertices from 1, but C++ arrays count from 0, so this conversion is needed. The result is stored in nbor.
  • LINE_557 checks whether nbor is greater than the current vertex's own ID, id. This is only there to avoid storing the same edge twice, once from each end. It is not a check that nbor is inside the array.
  • LINE_570 writes nbor into the cell array and moves the write pointer captr forward.
  • LINE_616 hands the finished cell array to the output grid with SetCells, saying every cell is of type VTK_LINE.

Step 5: access cell data and read out of bounds

When the application calls GetCell(), the grid fetches the point IDs for that cell and then fetches those points:

Text
LINE_370  void vtkUnstructuredGrid::GetCell(vtkIdType cellId, vtkGenericCell* cell)
LINE_371  {
[...]
LINE_375    this->Connectivity->GetCellAtId(cellId, cell->PointIds);
LINE_376    this->Points->GetPoints(cell->PointIds, cell->Points);
}

Line by line:

  • LINE_370 begins GetCell, which takes a cell number and a vtkGenericCell object to fill in.
  • LINE_375 asks the connectivity array for the point IDs of that cell and stores them in cell->PointIds.
  • LINE_376 asks the points array to fetch the actual coordinates for those IDs and store them in cell->Points.

this->Connectivity is a vtkCellArray, a structure that holds, for each cell, the list of point IDs that make it up. GetCellAtId() at LINE_375 reads the IDs into cell->PointIds, and GetPoints() at LINE_376 passes the work to a templated worker function. A templated function is one written once and reused for several data types. The worker uses each ID as a position number into the points array:

Text
LINE_76     void operator()(Array1T* src, Array2T* dst) const
LINE_77     {
[...]
LINE_88         srcTuples.GetTuple(idsPtr[i], point);
[...]
}

Line by line:

  • LINE_76 and LINE_77 begin the worker, which takes a source array and a destination array.
  • LINE_88 fetches the point whose ID is idsPtr[i] from the source array and stores its coordinates in point. idsPtr is a raw pointer into the list of point IDs passed down from GetCell(), and i counts through that list.

Because the points array holds only as many entries as the declared vertex count, any ID above that count minus one reads past the end of the buffer. In the proof of concept, the 8-byte read lands at 0x50400003d020, which ASan reports as a wild pointer inside an access range of size 8.

Root cause

The mistake is a missing range check on the neighbour vertex ID. A value read from the file at LINE_1175 goes through InputGraph2() (stored at LINE_1209), into the neighbour array nbors, through ReadFile() (converted to 0-based at LINE_553, stored as a point ID at LINE_570), and into the cell data via SetCells() at LINE_616. When GetCell() later looks up that cell, GetTuple() uses the stored ID as a position number into the points array, which was sized for the declared vertex count.

The existing defences do not cover this. The sum_edges > 2 * narcs guard limits how many connections are accepted, not what values they contain. The nbor > id condition removes duplicate edges, it is not a range check. The reader therefore accepts a file whose cells refer to vertices that do not exist, and the failure only appears when cell data is accessed, after parsing has already succeeded.

The file's contents control the read position (the neighbor field) and the buffer size (num_vertices header) independently, which makes the out-of-range position easy to arrange.

Impact

The CVSSv3 score is 8.2, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H. CVSS is a standard scoring system for the severity of a security flaw. The string is a set of measurements: the attack can be carried out over a network (AV:N), needs no special conditions (AC:L), no privileges (PR:N) and no user interaction beyond opening the file (UI:N), the impact stays within the vulnerable component (S:U), confidentiality impact is low (C:L), integrity impact is none, and availability impact is high (A:H).

A specially crafted .graph file causes a denial of service when cell data is accessed: the program crashes. On builds without ASan, the contents of memory are leaked as double coordinate values, for example through exported geometry. So the confidentiality impact is limited to whatever memory data ends up being read as coordinates, and the availability impact comes from the crash.

The attacker only needs to supply the file. The victim must load it with vtkChacoReader and then access cell data on the resulting vtkUnstructuredGrid. The advisory does not describe any case beyond that.

Fix

A range check on neighbor between LINE_1175 and LINE_1209 would stop any out-of-range vertex ID from reaching the output. The vendor was notified on 2026-06-23 and acknowledged it on 2026-06-25. The issue was assigned CVE-2026-9535, a public identifier for a known vulnerability, and the vendor response points to the VTK download page. The timeline records follow-ups on 2026-07-02 and 2026-09-15, vendor replies on 2026-07-07 and 2026-09-23 saying the development team was working on it, and on 2026-10-12 Cisco advised the vendor it would publish and close out. The advisory does not say which release contains a fix.

Variants to test

  1. Neighbour IDs far above the declared vertex count, and IDs of zero or negative values after the 1-based to 0-based conversion, to see whether other places in the reader that use IDs as positions misbehave.
  2. Mismatches between the declared vertex count and the number of lines listing neighbours, to probe other places where the header and the body are trusted independently.
  3. The optional .coords file: supply coordinates for fewer or more vertices than declared and check whether point lookups read past the coordinate buffer.
  4. Other VTK readers that parse text formats with declared counts and per-entry IDs, looking for the same pattern of checking totals but not individual references.
  5. Downstream consumers of the grid, such as exporters, to see whether the leaked memory values show up in output files as the advisory suggests.

A positive result is an ASan heap-buffer-overflow report on a read, or, on a build without ASan, coordinate values that do not correspond to anything in the input file.

Hunting notes

This class of bug hides in file-format parsers that trust declared counts and per-record identifiers: the parser checks the structure and the totals, then hands raw IDs to a later stage that uses them as positions in an array sized from a header field. The signal during review is a reader that sizes an array from one field of the input and indexes it with another, with no check tying the two together. Here the researcher showed impact by driving the parsed output into GetCell(), the ordinary way an application consumes geometry, and by demonstrating the crash under ASan. That combination, a clean parse followed by a crash on normal use, is what makes the case concrete for the vendor.

Credit

Emmanuel Tacheau of Cisco Talos.

Glossary

  • AddressSanitizer (ASan): a testing tool added to a program that detects and reports out-of-bounds memory accesses and similar memory errors.
  • Adjacency: the list of vertices connected to a given vertex in a graph.
  • Array: an ordered list of items stored in memory, where each item is found by its position number (index).
  • Buffer: a block of memory set aside to hold data.
  • Cell: in VTK, one shape in a grid, such as a line or triangle, defined by a list of point IDs.
  • Chaco format: a plain-text graph file format with a .graph file for connections and an optional .coords file for positions.
  • Confidentiality impact: the effect on keeping data secret; here, memory contents leaking as coordinates.
  • Connectivity: the structure that stores, for each cell, which point IDs make it up.
  • CVE: a public identifier assigned to a known vulnerability, here CVE-2026-9535.
  • CVSS: a standard scoring system for the severity of a security flaw.
  • CWE-125: the standard category name for an out-of-bounds read.
  • Denial of service: making a program or service stop working, here by crashing it.
  • Double: a C++ data type for a decimal number, 8 bytes in size.
  • Deduplication filter: code that avoids storing the same edge twice, once from each end.
  • Edge: a connection between two vertices in a graph.
  • Graph: a set of vertices joined by edges.
  • Heap: the general-purpose pool of memory a program uses for data it creates while running.
  • Heap-buffer-overflow: reading or writing outside a block of heap memory that was reserved for the program.
  • Index: a position number used to pick an item out of an array.
  • InputGraph2: the function in vtkChacoReader that reads the neighbour lists from a .graph file.
  • Out-of-bounds read: reading memory outside the area the program was given, using a position number past the end of a list.
  • Proof of concept (PoC): a minimal example that demonstrates a vulnerability is real.
  • Raw pointer: a variable that holds a memory address directly, with no automatic bounds checking.
  • Stack trace: the list of function calls that led to a crash, most recent first.
  • Templated function: a function written once and reused for several data types.
  • Vertex: a dot or point in a graph.
  • VTK (Visualization Toolkit): an open-source library for 3D graphics, image processing and scientific visualisation.
  • vtkCellArray: the VTK structure that holds, for each cell, its list of point IDs.
  • vtkChacoReader: the VTK component that reads Chaco graph files.
  • vtkGenericCell: a VTK object used to hold the details of one cell while it is being looked up.
  • vtkPoints: the VTK structure that holds the coordinates of points.
  • vtkUnstructuredGrid: VTK's structure for a shape made of points and cells.
  • VTK_LINE: the VTK cell type for a simple two-point line.
  • Wild pointer: a memory address that does not belong to any valid object the program knows about.

More by Emmanuel Tacheau

View all

58 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.