Skip to content
Heist/ feed
Back to feed
HighFix available

python-cryptography — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-26007

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Prior to 46.0.5, the public_key_from_numbers (or EllipticCurvePublicNumbers.public_key()), EllipticCurvePublicNumbers.public_key(), load_der_public_key() and load_pem_public_key() functions do not verify that the point belongs to the expected prime-order subgroup of the curve. This missing validation allows an attacker to provide a public key point P from a small-order subgroup. This can lead to security issues in various situations, such as the most commonly used signature verification (ECDSA) and shared key negotiation (ECDH). When the victim computes the shared secret as S = [victim_private_key]P via ECDH, this leaks information about victim_private_key mod (small_subgroup_order). For curves with cofactor > 1, this reveals the least significant bits of the private key. When these weak public keys are used in ECDSA , it's easy to forge signatures on the small subgroup. Only SECT curves are impacted by this. This vulnerability is fixed in 46.0.5.

Products
python-cryptography
Affected versions
1.0.1-1ubuntu1, 1.0.2-1, 1.1-1, 1.1.1-1, 1.1.1-1ubuntu1, 1.1.1-1ubuntu2, 1.1.1-1ubuntu3, 1.2.2-2, 1.2.3-1, 1.2.3-1ubuntu0.1, 1.2.3-1ubuntu0.2, 1.2.3-1ubuntu0.3, 1.2.3-1ubuntu0.3+esm1, 1.9-1, 2.1.3-3, 2.1.4-1, 2.1.4-1build1, 2.1.4-1build2, 2.1.4-1ubuntu1, 2.1.4-1ubuntu1.1, 2.1.4-1ubuntu1.2, 2.1.4-1ubuntu1.3, 2.1.4-1ubuntu1.4, 2.1.4-1ubuntu1.4+esm1, 2.6.1-3.1, 2.6.1-4, 2.6.1-4ubuntu1, 2.8-1ubuntu2, 2.8-2, 2.8-3, 2.8-3ubuntu0.1, 2.8-3ubuntu0.2, 2.8-3ubuntu0.3, 3.3.2-1, 3.3.2-1build1, 3.4.8-1, 3.4.8-1ubuntu1, 3.4.8-1ubuntu2, 3.4.8-1ubuntu2.1, 3.4.8-1ubuntu2.2, 38.0.4-4, 38.0.4-4ubuntu1, 41.0.7-3, 41.0.7-4build2, 41.0.7-4build3, 41.0.7-4ubuntu0.1, 43.0.0-1ubuntu1
Fixed versions
1.2.3-1ubuntu0.3+esm3, 2.1.4-1ubuntu1.4+esm3, 2.8-3ubuntu0.3+esm2, 3.4.8-1ubuntu2.3, 41.0.7-4ubuntu0.3, 43.0.0-1ubuntu1.1
CVEs
CVE-2026-26007
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:19 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-26007

core-osv · Original source

Published 10 Feb 2026, 22:17 UTC

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Prior to 46.0.5, the public_key_from_numbers (or EllipticCurvePublicNumbers.public_key()), EllipticCurvePublicNumbers.public_key(), load_der_public_key() and load_pem_public_key() functions do not verify that the point belongs to the expected prime-order subgroup of the curve. This missing validation allows an attacker to provide a public key point P from a small-order subgroup. This can lead to security issues in various situations, such as the most commonly used signature verification (ECDSA) and shared key negotiation (ECDH). When the victim computes the shared secret as S = [victim_private_key]P via ECDH, this leaks information about victim_private_key mod (small_subgroup_order). For curves with cofactor > 1, this reveals the least significant bits of the private key. When these weak public keys are used in ECDSA , it's easy to forge signatures on the small subgroup. Only SECT curves are impacted by this. This vulnerability is fixed in 46.0.5.

osv:UBUNTU-CVE-2026-26007

python-cryptography

Fixed versions: 1.2.3-1ubuntu0.3+esm3

python-cryptography

Fixed versions: 2.1.4-1ubuntu1.4+esm3

python-cryptography

Fixed versions: 2.8-3ubuntu0.3+esm2

python-cryptography

Fixed versions: 3.4.8-1ubuntu2.3

python-cryptography

Fixed versions: 41.0.7-4ubuntu0.3

python-cryptography

Fixed versions: 43.0.0-1ubuntu1.1

Complete source record
{
  "id": "deb7a74a8e8e720c4887b8da396ab927015b3d524efbe1bfc08e9e3aade54d7a",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-26007",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-26007",
    "summary": "cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Prior to 46.0.5, the public_key_from_numbers (or EllipticCurvePublicNumbers.public_key()), EllipticCurvePublicNumbers.public_key(), load_der_public_key() and load_pem_public_key() functions do not verify that the point belongs to the expected prime-order subgroup of the curve. This missing validation allows an attacker to provide a public key point P from a small-order subgroup. This can lead to security issues in various situations, such as the most commonly used signature verification (ECDSA) and shared key negotiation (ECDH). When the victim computes the shared secret as S = [victim_private_key]P via ECDH, this leaks information about victim_private_key mod (small_subgroup_order). For curves with cofactor > 1, this reveals the least significant bits of the private key. When these weak public keys are used in ECDSA , it's easy to forge signatures on the small subgroup. Only SECT curves are impacted by this. This vulnerability is fixed in 46.0.5.",
    "evidence": "osv:UBUNTU-CVE-2026-26007",
    "products": [
      {
        "name": {
          "value": "python-cryptography",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.2.3-1ubuntu0.3+esm3",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.0.1-1ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.0.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1.1-1ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1.1-1ubuntu2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1.1-1ubuntu3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.2-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.3-1ubuntu0.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.3-1ubuntu0.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.3-1ubuntu0.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.3-1ubuntu0.3+esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-cryptography",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.1.4-1ubuntu1.4+esm3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.9-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.1.3-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.1.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.1.4-1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.1.4-1build2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.1.4-1ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.1.4-1ubuntu1.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.1.4-1ubuntu1.2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.1.4-1ubuntu1.3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.1.4-1ubuntu1.4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.1.4-1ubuntu1.4+esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-cryptography",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.8-3ubuntu0.3+esm2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.6.1-3.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.6.1-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.6.1-4ubuntu1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.8-1ubuntu2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.8-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.8-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.8-3ubuntu0.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.8-3ubuntu0.2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.8-3ubuntu0.3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-cryptography",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.4.8-1ubuntu2.3",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.3.2-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.3.2-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.4.8-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.4.8-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.4.8-1ubuntu2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.4.8-1ubuntu2.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.4.8-1ubuntu2.2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-cryptography",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "41.0.7-4ubuntu0.3",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "38.0.4-4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "38.0.4-4ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "41.0.7-3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "41.0.7-4build2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "41.0.7-4build3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "41.0.7-4ubuntu0.1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-cryptography",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "43.0.0-1ubuntu1.1",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "43.0.0-1ubuntu1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-26007",
      "aliases": [
        "UBUNTU-CVE-2026-26007"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.2.3-1ubuntu0.3+esm3"
                }
              ]
            }
          ],
          "package": {
            "name": "python-cryptography",
            "purl": "pkg:deb/ubuntu/python-cryptography?arch=source&distro=esm-infra%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "1.0.1-1ubuntu1",
            "1.0.2-1",
            "1.1-1",
            "1.1.1-1",
            "1.1.1-1ubuntu1",
            "1.1.1-1ubuntu2",
            "1.1.1-1ubuntu3",
            "1.2.2-2",
            "1.2.3-1",
            "1.2.3-1ubuntu0.1",
            "1.2.3-1ubuntu0.2",
            "1.2.3-1ubuntu0.3",
            "1.2.3-1ubuntu0.3+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-26007.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-cryptography",
                "binary_version": "1.2.3-1ubuntu0.3+esm3"
              },
              {
                "binary_name": "python3-cryptography",
                "binary_version": "1.2.3-1ubuntu0.3+esm3"
              }
            ],
            "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.1.4-1ubuntu1.4+esm3"
                }
              ]
            }
          ],
          "package": {
            "name": "python-cryptography",
            "purl": "pkg:deb/ubuntu/python-cryptography?arch=source&distro=esm-infra%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "1.9-1",
            "2.1.3-3",
            "2.1.4-1",
            "2.1.4-1build1",
            "2.1.4-1build2",
            "2.1.4-1ubuntu1",
            "2.1.4-1ubuntu1.1",
            "2.1.4-1ubuntu1.2",
            "2.1.4-1ubuntu1.3",
            "2.1.4-1ubuntu1.4",
            "2.1.4-1ubuntu1.4+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-26007.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-cryptography",
                "binary_version": "2.1.4-1ubuntu1.4+esm3"
              },
              {
                "binary_name": "python3-cryptography",
                "binary_version": "2.1.4-1ubuntu1.4+esm3"
              }
            ],
            "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.8-3ubuntu0.3+esm2"
                }
              ]
            }
          ],
          "package": {
            "name": "python-cryptography",
            "purl": "pkg:deb/ubuntu/python-cryptography?arch=source&distro=esm-infra%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "2.6.1-3.1",
            "2.6.1-4",
            "2.6.1-4ubuntu1",
            "2.8-1ubuntu2",
            "2.8-2",
            "2.8-3",
            "2.8-3ubuntu0.1",
            "2.8-3ubuntu0.2",
            "2.8-3ubuntu0.3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-26007.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-cryptography",
                "binary_version": "2.8-3ubuntu0.3+esm2"
              },
              {
                "binary_name": "python3-cryptography",
                "binary_version": "2.8-3ubuntu0.3+esm2"
              }
            ],
            "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.4.8-1ubuntu2.3"
                }
              ]
            }
          ],
          "package": {
            "name": "python-cryptography",
            "purl": "pkg:deb/ubuntu/python-cryptography?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "3.3.2-1",
            "3.3.2-1build1",
            "3.4.8-1",
            "3.4.8-1ubuntu1",
            "3.4.8-1ubuntu2",
            "3.4.8-1ubuntu2.1",
            "3.4.8-1ubuntu2.2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-26007.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-cryptography",
                "binary_version": "3.4.8-1ubuntu2.3"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "41.0.7-4ubuntu0.3"
                }
              ]
            }
          ],
          "package": {
            "name": "python-cryptography",
            "purl": "pkg:deb/ubuntu/python-cryptography?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "38.0.4-4",
            "38.0.4-4ubuntu1",
            "41.0.7-3",
            "41.0.7-4build2",
            "41.0.7-4build3",
            "41.0.7-4ubuntu0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-26007.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-cryptography",
                "binary_version": "41.0.7-4ubuntu0.3"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "43.0.0-1ubuntu1.1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-cryptography",
            "purl": "pkg:deb/ubuntu/python-cryptography?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "43.0.0-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-26007.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-cryptography",
                "binary_version": "43.0.0-1ubuntu1.1"
              }
            ],
            "availability": "No subscription required"
          }
        }
      ],
      "modified": "2026-10-27T04:17:53.275194205Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-26007"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-26007",
        "https://www.cve.org/CVERecord?id=CVE-2026-26007",
        "https://github.com/pyca/cryptography/security/advisories/GHSA-r6ph-v2qm-q3c2",
        "https://ubuntu.com/security/notices/USN-8087-1",
        "https://ubuntu.com/security/notices/USN-8087-3"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-26007",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 460321,
  "published_at": "2026-02-10T22:17:00+00:00"
}