{"id":"UBUNTU-CVE-2012-0039","details":"GLib 2.31.8 and earlier, when the g_str_hash function is used, computes hash values without restricting the ability to trigger hash collisions predictably, which allows context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table. NOTE: this issue may be disputed by the vendor; the existence of the g_str_hash function is not a vulnerability in the library, because callers of g_hash_table_new and g_hash_table_new_full can specify an arbitrary hash function that is appropriate for the application.","modified":"2026-04-22T09:11:05.616259Z","published":"2012-01-14T17:55:00Z","upstream":["CVE-2012-0039"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2012-0039"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2012/01/10/12"},{"type":"REPORT","url":"http://mail.gnome.org/archives/gtk-devel-list/2003-May/msg00111.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2012-0039"}],"affected":[{"package":{"name":"glib2.0","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/glib2.0@2.40.2-0ubuntu1.1+esm7?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.38.0-1ubuntu1","2.38.1-1","2.39.1-0ubuntu1","2.39.1-0ubuntu2","2.39.1-0ubuntu3","2.39.2-0ubuntu1","2.39.2-0ubuntu2","2.39.3-0ubuntu4","2.39.4-0ubuntu1","2.39.90-0ubuntu1","2.39.91-0ubuntu2","2.39.91-0ubuntu3","2.39.92-2","2.40.0-1","2.40.0-1ubuntu1","2.40.0-2","2.40.2-0ubuntu1","2.40.2-0ubuntu1.1","2.40.2-0ubuntu1.1+esm1","2.40.2-0ubuntu1.1+esm2","2.40.2-0ubuntu1.1+esm3","2.40.2-0ubuntu1.1+esm4","2.40.2-0ubuntu1.1+esm6","2.40.2-0ubuntu1.1+esm7"],"ecosystem_specific":{"binaries":[{"binary_version":"2.40.2-0ubuntu1.1+esm7","binary_name":"libglib2.0-0"},{"binary_version":"2.40.2-0ubuntu1.1+esm7","binary_name":"libglib2.0-0-refdbg"},{"binary_version":"2.40.2-0ubuntu1.1+esm7","binary_name":"libglib2.0-bin"},{"binary_version":"2.40.2-0ubuntu1.1+esm7","binary_name":"libglib2.0-data"},{"binary_version":"2.40.2-0ubuntu1.1+esm7","binary_name":"libglib2.0-tests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2012/UBUNTU-CVE-2012-0039.json"}},{"package":{"name":"glib2.0","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/glib2.0@2.48.2-0ubuntu4.8+esm5?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.46.1-1","2.46.1-2","2.47.1-1","2.47.3-3","2.47.4-1","2.47.5-1","2.47.6-1","2.48.0-1ubuntu3","2.48.0-1ubuntu4","2.48.1-1~ubuntu16.04.1","2.48.2-0ubuntu1","2.48.2-0ubuntu3","2.48.2-0ubuntu4","2.48.2-0ubuntu4.1","2.48.2-0ubuntu4.2","2.48.2-0ubuntu4.3","2.48.2-0ubuntu4.4","2.48.2-0ubuntu4.5","2.48.2-0ubuntu4.6","2.48.2-0ubuntu4.7","2.48.2-0ubuntu4.8","2.48.2-0ubuntu4.8+esm1","2.48.2-0ubuntu4.8+esm3","2.48.2-0ubuntu4.8+esm4","2.48.2-0ubuntu4.8+esm5"],"ecosystem_specific":{"binaries":[{"binary_version":"2.48.2-0ubuntu4.8+esm5","binary_name":"libglib2.0-0"},{"binary_version":"2.48.2-0ubuntu4.8+esm5","binary_name":"libglib2.0-0-refdbg"},{"binary_version":"2.48.2-0ubuntu4.8+esm5","binary_name":"libglib2.0-bin"},{"binary_version":"2.48.2-0ubuntu4.8+esm5","binary_name":"libglib2.0-data"},{"binary_version":"2.48.2-0ubuntu4.8+esm5","binary_name":"libglib2.0-tests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2012/UBUNTU-CVE-2012-0039.json"}},{"package":{"name":"glib2.0","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/glib2.0@2.56.4-0ubuntu0.18.04.9+esm5?arch=source&distro=esm-infra/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.54.1-1ubuntu1","2.55.2-2ubuntu1","2.56.0-2ubuntu1","2.56.0-4ubuntu1","2.56.1-2ubuntu1","2.56.2-0ubuntu0.18.04.1","2.56.2-0ubuntu0.18.04.2","2.56.3-0ubuntu0.18.04.1","2.56.4-0ubuntu0.18.04.2","2.56.4-0ubuntu0.18.04.3","2.56.4-0ubuntu0.18.04.4","2.56.4-0ubuntu0.18.04.5","2.56.4-0ubuntu0.18.04.6","2.56.4-0ubuntu0.18.04.7","2.56.4-0ubuntu0.18.04.8","2.56.4-0ubuntu0.18.04.9","2.56.4-0ubuntu0.18.04.9+esm3","2.56.4-0ubuntu0.18.04.9+esm4","2.56.4-0ubuntu0.18.04.9+esm5"],"ecosystem_specific":{"binaries":[{"binary_version":"2.56.4-0ubuntu0.18.04.9+esm5","binary_name":"libglib2.0-0"},{"binary_version":"2.56.4-0ubuntu0.18.04.9+esm5","binary_name":"libglib2.0-bin"},{"binary_version":"2.56.4-0ubuntu0.18.04.9+esm5","binary_name":"libglib2.0-data"},{"binary_version":"2.56.4-0ubuntu0.18.04.9+esm5","binary_name":"libglib2.0-dev-bin"},{"binary_version":"2.56.4-0ubuntu0.18.04.9+esm5","binary_name":"libglib2.0-tests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2012/UBUNTU-CVE-2012-0039.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}