Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-36242

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-36242
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:12 UTC · Revision 1

Source evidence

CVE-2020-36242

core-osv · Original source

Published 7 Feb 2021, 20:15 UTC

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.

osv:CVE-2020-36242
Complete source record
{
  "id": "91fe8fe358ab5420bf2348d739309d67eed11f703f4d8149e0c5c4fa11f62ce7",
  "url": "https://osv.dev/vulnerability/CVE-2020-36242",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-36242",
    "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.",
    "evidence": "osv:CVE-2020-36242",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2020-36242",
      "aliases": [
        "CVE-2020-36242",
        "GHSA-rhm9-p9w5-fwm7",
        "PYSEC-2021-63"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/pyca/cryptography",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "82b6ce28389f0a317bc55ba2091a74b346db7cae"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:cryptography.io:cryptography:*:*:*:*:*:python:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.3.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.3.1",
            "3.3",
            "3.2",
            "3.1",
            "3.0",
            "2.9",
            "2.8",
            "2.7",
            "2.6.1",
            "2.6",
            "2.5",
            "2.4.1",
            "2.4",
            "2.3",
            "2.2",
            "2.1",
            "2.0",
            "1.9",
            "1.8",
            "1.7",
            "1.6",
            "1.5",
            "1.4",
            "1.3",
            "1.2",
            "1.1",
            "1.0",
            "0.9",
            "0.8",
            "0.7",
            "0.6",
            "0.5.1",
            "0.5",
            "0.4",
            "0.3",
            "0.2",
            "0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-36242.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:25.645799938Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E/",
        "https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst",
        "https://github.com/pyca/cryptography/compare/3.3.1...3.3.2",
        "https://github.com/pyca/cryptography/issues/5615",
        "https://www.oracle.com/security-alerts/cpuapr2022.html",
        "https://www.oracle.com/security-alerts/cpujul2022.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:communications_cloud_native_core_network_function_cloud_native_environment:1.10.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:communications_cloud_native_core_network_function_cloud_native_environment",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.10.0"
                  },
                  {
                    "last_affected": "1.10.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-36242",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384302,
  "published_at": "2021-02-07T20:15:12.09+00:00"
}