Vulnerabilities in pkg:gem/gtk2

PACKAGE
Advisory Identifier: GHSA-xgj6-pgrm-x4r2
Advisory Summary

CVE-2007-6183 is a MODERATE gtk2 vulnerable to use of vulnerability (CWE-134: Use of Externally-Controlled Format String) affecting Gtk2 libraries in the RubyGems ecosystem. The issue involves gtk2 vulnerable to use of externally-controlled format string. Remediation is available by upgrading affected packages to version 0.17.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/gtk2

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/gtk2. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-xgj6-pgrm-x4r2 CVE-2007-6183 MODERATE gtk2 vulnerable to Use of Externally-Controlled Format String

CVE-2007-6183 at a Glance

CVE Identifier CVE-2007-6183
GHSA Identifier GHSA-xgj6-pgrm-x4r2
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-134: Use of Externally-Controlled Format String
Affected Product Gtk2
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2007-6183

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

gtk2 fixed: 0.17.0
Upgrade gtk2 to 0.17.0
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 gtk2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2007-6183, inspect your project dependencies for Gtk2:

inspect dependencies for gtk2

Analyze the terminal output to locate any version of Gtk2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.17.0), 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-134: Use of Externally-Controlled Format String, where the product uses a function that accepts a format string as an argument, but the format string originates from an external source. In Gtk2, 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

Format string vulnerability in the `mdiag_initialize` function in `gtk/src/rbgtkmessagedialog.c` in Ruby-GNOME 2 (aka Ruby/Gnome2) 0.16.0, and SVN versions before 20071127, allows context-dependent attackers to execute arbitrary code via format string specifiers in the message parameter.

CVE-2007-6183 Affected Gtk2 Versions

1 component(s)
Fixed Versions:
0.17.0
Product / Package Ecosystem Affected Versions Fixed Version
gtk2
RubyGems
< 0.17.0
0.17.0

References

Frequently Asked Questions

What is CVE-2007-6183?
CVE-2007-6183 is a security vulnerability in Gtk2 involving gtk2 vulnerable to Use of Externally-Controlled Format String under CWE-134: Use of Externally-Controlled Format String.
Which Gtk2 versions are affected?
Affected versions include releases prior to 0.17.0 across affected packages: gtk2.
What version fixes CVE-2007-6183?
Upgrading to 0.17.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gtk2 affected?
Yes, gtk2 is affected in releases prior to 0.17.0. Upgrade your dependency to 0.17.0 or later.
What CWE is associated with CVE-2007-6183?
CVE-2007-6183 is classified under CWE-134: Use of Externally-Controlled Format String (The product uses a function that accepts a format string as an argument, but the format string originates from an external source.).
How can I check RubyGems dependencies for CVE-2007-6183?
Run the dependency tree command: 'inspect dependencies for gtk2'. 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-xgj6-pgrm-x4r2",
  "modified" : "2023-01-26T22:31:40Z",
  "published" : "2017-10-24T18:33:38Z",
  "aliases" : [ "CVE-2007-6183" ],
  "summary" : "gtk2 vulnerable to Use of Externally-Controlled Format String",
  "details" : "Format string vulnerability in the `mdiag_initialize` function in `gtk/src/rbgtkmessagedialog.c` in Ruby-GNOME 2 (aka Ruby/Gnome2) 0.16.0, and SVN versions before 20071127, allows context-dependent attackers to execute arbitrary code via format string specifiers in the message parameter.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "gtk2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.17.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-6183"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=402871"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/38757"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228174159/http://www.securityfocus.com/bid/26616"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20201207224244/https://www.securityfocus.com/archive/1/484240/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2007-December/msg00214.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2007-December/msg00251.html"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=453689"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.gentoo.org/show_bug.cgi?id=200623"
  }, {
    "type" : "WEB",
    "url" : "http://em386.blogspot.com/2007/11/your-favorite-better-than-c-scripting.html"
  }, {
    "type" : "WEB",
    "url" : "http://security.gentoo.org/glsa/glsa-200712-09.xml"
  }, {
    "type" : "WEB",
    "url" : "http://securityreason.com/securityalert/3407"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2007/dsa-1431"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2008:033/?name=MDVSA-2008:033"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-134" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T22:03:18Z",
    "nvd_published_at" : "2007-11-30T00:46:00Z"
  }
}