CVE-2025-30089: Gurk Gurk (aka Gurk-rs) Mishandles ANSI Vulnerability

MODERATE
Advisory Identifier: GHSA-89xp-c3mq-qj84
CVSS 5.4
CWE-150
Published
Advisory Summary

CVE-2025-30089 is a MODERATE (CVSS 5.4) gurk (aka gurk-rs) mishandles ansi vulnerability (CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences) affecting Gurk libraries in the crates.io ecosystem. The issue involves gurk (aka gurk-rs) mishandles ansi escape sequences. Remediation is available in the latest vendor maintenance releases.

CVE-2025-30089 at a Glance

CVE Identifier CVE-2025-30089
GHSA Identifier GHSA-89xp-c3mq-qj84
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences
Affected Product Gurk
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2025-30089

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

gurk fixed: Latest secure release
Upgrade gurk 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 gurk

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-30089, inspect your project dependencies for Gurk:

inspect dependencies for gurk

Analyze the terminal output to locate any version of Gurk 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-150: Improper Neutralization of Escape, Meta, or Control Sequences, where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component. In Gurk, 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

gurk (aka gurk-rs) through 0.6.3 mishandles ANSI escape sequences.

CVE-2025-30089 Affected Gurk Versions

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

References

Frequently Asked Questions

What is CVE-2025-30089?
CVE-2025-30089 is a security vulnerability in Gurk involving gurk (aka gurk-rs) mishandles ANSI escape sequences under CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences.
Which Gurk versions are affected?
Affected versions include releases prior to current release patches across affected packages: gurk.
What version fixes CVE-2025-30089?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is gurk affected?
Yes, gurk is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-30089?
CVE-2025-30089 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L.
What CWE is associated with CVE-2025-30089?
CVE-2025-30089 is classified under CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences (The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component.).
How can I check crates.io dependencies for CVE-2025-30089?
Run the dependency tree command: 'inspect dependencies for gurk'. 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-89xp-c3mq-qj84",
  "modified" : "2025-03-17T14:45:39Z",
  "published" : "2025-03-17T00:30:21Z",
  "aliases" : [ "CVE-2025-30089" ],
  "summary" : "gurk (aka gurk-rs) mishandles ANSI escape sequences",
  "details" : "gurk (aka gurk-rs) through 0.6.3 mishandles ANSI escape sequences.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "gurk"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.6.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-30089"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/boxdot/gurk-rs/issues/384"
  }, {
    "type" : "WEB",
    "url" : "https://crates.io/crates/gurk"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/boxdot/gurk-rs"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-150" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-17T14:45:39Z",
    "nvd_published_at" : "2025-03-17T00:15:13Z"
  }
}