{"id":"CVE-2016-9243","aliases":["GHSA-q3cj-2r34-2cwc","PYSEC-2017-8"],"kind":"cve","tier":"cold","status":"published","title":"Improper input validation in cryptography","description":"HKDF in cryptography before 1.5.2 returns an empty byte-string if used with a length less than algorithm.digest_size.","ai_summary":null,"severity":"high","cvss":{"score":7.5,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"NVD"},"scores":[{"score":7.5,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"nvd"},{"score":5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","source":"nvd"}],"cwe":["CWE-20"],"remote":true,"remote_unauth":true,"epss":{"score":0.03464,"percentile":0.89835,"date":"2026-11-28"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"PyPI","name":"cryptography","affected":"< 1.5.3","fixed":["1.5.3"],"source":"osv"}],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"Upgrade cryptography to 1.5.3 or later.","technologies":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U23KDR2M2N7W2ZSREG63BVW7D4VC6CIZ/","kind":"vendor"},{"url":"http://www.ubuntu.com/usn/USN-3138-1","kind":"vendor"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQ5G7KHKZC4SI23JE7277KZXM57GEQKT/","kind":"vendor"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5R2ZOBMPWDFFHUZ6QOZZY36A6H5CGJXL/","kind":"vendor"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-9243","kind":"vendor"},{"url":"https://github.com/advisories/GHSA-q3cj-2r34-2cwc","kind":"vendor"},{"url":"https://github.com/pyca/cryptography/commit/b924696b2e8731f39696584d12cceeb3aeb2d874","kind":"patch"},{"url":"http://www.openwall.com/lists/oss-security/2016/11/09/2","kind":"patch"},{"url":"http://www.securityfocus.com/bid/94216","kind":"other"},{"url":"https://cryptography.io/en/latest/changelog","kind":"other"},{"url":"https://github.com/pyca/cryptography/issues/3211","kind":"other"},{"url":"https://cryptography.io/en/latest/changelog/#v1-5-3","kind":"other"},{"url":"https://github.com/pyca/cryptography","kind":"other"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2017-8.yaml","kind":"other"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5R2ZOBMPWDFFHUZ6QOZZY36A6H5CGJXL","kind":"other"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U23KDR2M2N7W2ZSREG63BVW7D4VC6CIZ","kind":"other"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQ5G7KHKZC4SI23JE7277KZXM57GEQKT","kind":"other"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5R2ZOBMPWDFFHUZ6QOZZY36A6H5CGJXL","kind":"other"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U23KDR2M2N7W2ZSREG63BVW7D4VC6CIZ","kind":"other"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WQ5G7KHKZC4SI23JE7277KZXM57GEQKT","kind":"other"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WQ5G7KHKZC4SI23JE7277KZXM57GEQKT/","kind":"other"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U23KDR2M2N7W2ZSREG63BVW7D4VC6CIZ/","kind":"other"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5R2ZOBMPWDFFHUZ6QOZZY36A6H5CGJXL/","kind":"other"}],"workarounds":null,"vendors":["canonical","cryptography.io","fedoraproject"],"products":["cryptography","fedora","ubuntu_linux"],"cpes":["cpe:2.3:a:cryptography.io:cryptography:*:*:*:*:*:python:*:*","cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:16.10:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:25:*:*:*:*:*:*:*"],"published_at":"2017-03-27T17:00:00.000Z","modified_at":"2026-06-17T00:55:43.337Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-9243"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-q3cj-2r34-2cwc","license_url":"https://creativecommons.org/licenses/by/4.0/"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/PYSEC-2017-8","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2016-9243","markdown":"https://flawdb.com/CVE-2016-9243.md","json":"https://flawdb.com/api/v1/entries/CVE-2016-9243"}}