Skip to content
Heist/ feed
Back to feed
CriticalFix available

py3-cryptography — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-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
py3-cryptography
Affected versions
Not specified
Fixed versions
3.2.2-r0, 3.3.2-r0
CVEs
CVE-2020-36242
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 12:11 UTC · Revision 1

Source evidence

ALPINE-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:ALPINE-CVE-2020-36242

py3-cryptography

Fixed versions: 3.3.2-r0

py3-cryptography

Fixed versions: 3.2.2-r0

py3-cryptography

Fixed versions: 3.2.2-r0

Complete source record
{
  "id": "7973f5fd7f8d74aaf7f97fd73993a500e68de0baf74e8bfd3a1f890d4b9d09bb",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2020-36242",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-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:ALPINE-CVE-2020-36242",
    "products": [
      {
        "name": {
          "value": "py3-cryptography",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.3.2-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-cryptography",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.2.2-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-cryptography",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.2.2-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "ALPINE-CVE-2020-36242",
      "aliases": [
        "ALPINE-CVE-2020-36242"
      ],
      "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": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.3.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-cryptography",
            "purl": "pkg:apk/alpine/py3-cryptography?arch=source",
            "ecosystem": "Alpine:v3.13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-36242.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.2.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-cryptography",
            "purl": "pkg:apk/alpine/py3-cryptography?arch=source",
            "ecosystem": "Alpine:v3.23"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-36242.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.2.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-cryptography",
            "purl": "pkg:apk/alpine/py3-cryptography?arch=source",
            "ecosystem": "Alpine:v3.24"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-36242.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-26T11:17:55.175333399Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-36242"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2020-36242"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-36242",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 450648,
  "published_at": "2021-02-07T20:15:12.09+00:00"
}