---
title: "CVE-2017-5336\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-2017-5336?format=md
keywords: index, follow
---

# CVE-2017-5336

Publication date 11 January 2017

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

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

## Cvss 3 Severity Score

**9.8 · Critical**

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

Toggle side navigation

## Description

Stack-based buffer overflow in the cdk\_pk\_get\_keyid function in
lib/opencdk/pubkey.c in GnuTLS before 3.3.26 and 3.5.x before 3.5.8 allows
remote attackers to have unspecified impact via a crafted OpenPGP
certificate.

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| gnutls26 | 19.04 disco | Not in release |
| 18.10 cosmic | Not in release |
| 18.04 LTS bionic | Not in release |
| 17.10 artful | Not in release |
| 17.04 zesty | Not in release |
| 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Fixed 2.12.23-12ubuntu2.6 |
| 12.04 LTS precise | Fixed 2.12.14-5ubuntu3.13 |
| gnutls28 | 19.04 disco | Fixed 3.5.6-4ubuntu3 |
| 18.10 cosmic | Fixed 3.5.6-4ubuntu3 |
| 18.04 LTS bionic | Fixed 3.5.6-4ubuntu3 |
| 17.10 artful | Fixed 3.5.6-4ubuntu3 |
| 17.04 zesty | Fixed 3.5.6-4ubuntu3 |
| 16.10 yakkety | Fixed 3.5.3-5ubuntu1.1 |
| 16.04 LTS xenial | Fixed 3.4.10-4ubuntu1.2 |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | 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)
* [Patch details](https://ubuntu.com/security/CVE-2017-5336?format=md#patch-details)

## Notes

---

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

reproducer https://gitlab.com/gnutls/gnutls/commit/611098e2f01fd8c3a5a625d61f26c56fcb3d770c

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| gnutls28 | * Upstream:   [5140422](https://gitlab.com/gnutls/gnutls/commit/5140422e0d7319a8e2fe07f02cbcafc4d6538732) * Upstream:   [7dec871](https://gitlab.com/gnutls/gnutls/commit/7dec871f82e205107a81281e3286f0aa9caa93b3) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

9.8 · Critical

* Base metrics

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

  | Parameter | Value |
  | --- | --- |
  | Base score | 9.8 · Critical |
  | Exploitability score | - |
  | Impact score | - |

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

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-3183-1](https://usn.ubuntu.com/USN-3183-1)
+ GnuTLS vulnerabilities
+ 1 February 2017

### Other references

* <https://gnutls.org/security.html#GNUTLS-SA-2017-2>
* <http://seclists.org/oss-sec/2017/q1/51>
* <https://www.cve.org/CVERecord?id=CVE-2017-5336>
