GHSA-m2xr-2vj4-wh94: Tanton engine Tanton_engine Has Unsound Public API Vulnerability

MODERATE
CWE-119
Published
Advisory Summary

GHSA-m2xr-2vj4-wh94 is a MODERATE tanton_engine has unsound public api vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Tanton engine libraries in the crates.io ecosystem. The issue involves tanton_engine has unsound public api. Remediation is available in the latest vendor maintenance releases.

GHSA-m2xr-2vj4-wh94 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-m2xr-2vj4-wh94
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Tanton engine
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-m2xr-2vj4-wh94

To remediate this vulnerability, upgrade all affected Tanton engine dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

tanton_engine fixed: Latest secure release
Upgrade tanton_engine to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for tanton_engine

How to Check if You Are Affected

To determine whether your application is affected by GHSA-m2xr-2vj4-wh94, inspect your project dependencies for Tanton engine:

inspect dependencies for tanton_engine

Analyze the terminal output to locate any version of Tanton engine in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Tanton engine, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The following functions in the `tanton_engine` crate are unsound due to lack of sufficient boundary checks in public API: - `Stack::offset()` - `ThreadStack::get()` - `RootMoveList::insert_score_depth()` - `RootMoveList::insert_score()` The tanton_engine crate is no longer maintained, so there are no plans to fix this issue.

GHSA-m2xr-2vj4-wh94 Affected Tanton engine Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
tanton_engine
crates.io
≤ 1.0.0

References

Frequently Asked Questions

What is GHSA-m2xr-2vj4-wh94?
GHSA-m2xr-2vj4-wh94 is a security vulnerability in Tanton engine involving tanton_engine has unsound public API under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Tanton engine versions are affected?
Affected versions include releases prior to current release patches across affected packages: tanton_engine.
What version fixes GHSA-m2xr-2vj4-wh94?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is tanton_engine affected?
Yes, tanton_engine is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-m2xr-2vj4-wh94?
GHSA-m2xr-2vj4-wh94 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.).
How can I check crates.io dependencies for GHSA-m2xr-2vj4-wh94?
Run the dependency tree command: 'inspect dependencies for tanton_engine'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m2xr-2vj4-wh94",
  "modified" : "2025-05-06T16:44:30Z",
  "published" : "2025-05-06T16:44:30Z",
  "aliases" : [ ],
  "summary" : "tanton_engine has unsound public API",
  "details" : "The following functions in the `tanton_engine` crate are unsound due to lack of sufficient boundary\nchecks in public API:\n\n- `Stack::offset()`\n- `ThreadStack::get()`\n- `RootMoveList::insert_score_depth()`\n- `RootMoveList::insert_score()`\n\nThe tanton_engine crate is no longer maintained, so there are no plans to fix this issue.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "tanton_engine"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0031.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-06T16:44:30Z",
    "nvd_published_at" : null
  }
}