{"id":"CVE-2020-36242","aliases":["CVE-2020-36242","GHSA-rhm9-p9w5-fwm7","PYSEC-2021-63"],"related":[],"kind":"vulnerability","state":"published","title":"PyCA Cryptography symmetrically encrypting large values can lead to integer overflow","summary":"In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could result in an integer overflow and buffer overflow, as demonstrated by the Fernet class.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could result in an integer overflow and buffer overflow, as demonstrated by the Fernet class.","source":"cvelist"},{"lang":"en","text":"cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. When certain sequences of `update()` calls with large values (multiple GBs) for symetric encryption or decryption occur, it's possible for an integer overflow to happen, leading to mishandling of buffers. This is patched in version 3.3.2 and newer.","format":"markdown","source":"ghsa"},{"lang":"es","text":"En el paquete de criptografía versiones anteriores a 3.3.2 para Python, determinadas secuencias de llamadas de actualización para cifrar simétricamente valores de varios GB podrían resultar en un desbordamiento de enteros y un desbordamiento del búfer, como es demostrado por la clase Fernet","source":"nvd"}],"published":"2021-02-07T19:50:57.000Z","modified":"2026-06-17T03:15:11.793Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-190","CWE-787"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.1","status":"affected","fixed":"3.3.2"}],"ecosystem":"PyPI","package":"cryptography","purl":"pkg:pypi/cryptography","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.3.2"}],"vendor":"cryptography.io","product":"cryptography","cpe":"cpe:2.3:a:cryptography.io:cryptography:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.10.0"}],"vendor":"oracle","product":"communications_cloud_native_core_network_function_cloud_native_environment","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_network_function_cloud_native_environment:1.10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"3.1","status":"affected","fixed":"3.3.2"}],"ecosystem":"PyPI","package":"cryptography","purl":"pkg:pypi/cryptography","source":"pysec"}],"references":[{"url":"https://github.com/pyca/cryptography/issues/5615","tags":["exploit","patch","report","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pyca/cryptography/compare/3.3.1...3.3.2","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst","tags":["release-notes","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pyca/cryptography/security/advisories/GHSA-rhm9-p9w5-fwm7","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36242","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pyca/cryptography/commit/82b6ce28389f0a317bc55ba2091a74b346db7cae","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-rhm9-p9w5-fwm7","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pyca/cryptography","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2021-63.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E/","tags":["web"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-36242","url":"https://www.cve.org/CVERecord?id=CVE-2020-36242","licence":"CVE Terms of Use","modified":"2024-08-04T17:23:09.814Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rhm9-p9w5-fwm7","url":"https://github.com/advisories/GHSA-rhm9-p9w5-fwm7","licence":"CC-BY-4.0","modified":"2025-02-15T05:29:30.639Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-36242","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36242","licence":"Public domain","modified":"2026-06-17T03:15:11.793Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-63","url":"https://osv.dev/vulnerability/PYSEC-2021-63","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:42.949Z"}],"updatedAt":"2026-11-25T22:57:57.286Z","epss":{"score":0.06799,"percentile":0.94134,"date":"2026-12-01T12:00:22.000Z"}}