---
title: "CVE-2012-0039\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2012-0039?format=md
keywords: index, follow
---

# CVE-2012-0039

Publication date 14 January 2012

Last updated 4 August 2025

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.5 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2012-0039?format=md#impact-score)

Toggle side navigation

## Description

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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2012-0039?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| glib2.0 | 19.04 disco | Ignored |
| 18.10 cosmic | Ignored |
| 18.04 LTS bionic | Ignored |
| 17.10 artful | Ignored end of life |
| 17.04 zesty | Ignored end of life |
| 16.10 yakkety | Ignored end of life |
| 16.04 LTS xenial | Ignored |
| 15.10 wily | Ignored end of life |
| 15.04 vivid | Ignored end of life |
| 14.10 utopic | Ignored end of life |
| 14.04 LTS trusty | Ignored end of standard support |
| 13.10 saucy | Ignored end of life |
| 13.04 raring | Ignored end of life |
| 12.10 quantal | Ignored end of life |
| 12.04 LTS precise | Ignored end of life |
| 11.10 oneiric | Ignored end of life |
| 11.04 natty | Ignored end of life |
| 10.10 maverick | Ignored end of life |
| 10.04 LTS lucid | Ignored end of life |
| 8.04 LTS hardy | Ignored end of life |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

as of 2012-02-21, upstream has simply added a warning:
http://git.gnome.org/browse/glib/commit/?id=030b3f25e3e5c018247e18bf309e0454ba138898
http://git.gnome.org/browse/glib/commit/?id=12060df9f17a48cd4c7fda27a0af70c17c308ad9
This CVE is disputed by upstream, we will not be fixing this
issue in stable releases

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.5 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | None |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.5 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0039)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2012-0039)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2012-0039)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2012-0039)

### Other references

* <http://www.openwall.com/lists/oss-security/2012/01/10/12>
* <http://mail.gnome.org/archives/gtk-devel-list/2003-May/msg00111.html>
* <https://www.cve.org/CVERecord?id=CVE-2012-0039>
