{"answers":{"affected":"3 open source packages ship an affected version, including cryptography. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-26130 in the wild and no public exploit code.","fix":"Upgrade cryptography to 42.0.4 or later.","what":"CVE-2024-26130 is a high-severity vulnerability in pyca cryptography, published on 21 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-26130 and fix it if it is affected.\n\nWhat it is: CVE-2024-26130 is a high-severity vulnerability in pyca cryptography, published on 21 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-26130 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cryptography (PyPI): affected from 38.0.0; fixed in 42.0.4\n- cryptography (PyPI): affected from 38.0.0; fixed in 42.0.4\n- cryptography (PyPI): affected from 38.0.0; fixed in 42.0.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-26130/ (Markdown: https://insights.sbomify.com/CVE-2024-26130/index.md)","id":"CVE-2024-26130","markdown":"https://insights.sbomify.com/CVE-2024-26130/index.md","name":"CVE-2024-26130","record":{"aliases":["ALSA-2025:15608","BELL-CVE-2024-26130","DEBIAN-CVE-2024-26130","ECHO-c0e9-a477-5a84","GHSA-6vqw-3v5j-54x4","PYSEC-2024-225","RHSA-2025:15608","RLSA-2025:15608","ROOT-APP-PYPI-CVE-2024-26130","SUSE-SU-2024:0763-1","SUSE-SU-2024:2138-1","UBUNTU-CVE-2024-26130","USN-6673-3","openSUSE-SU-2024:13710-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Python cryptography library","requires_auth":"none","summary":"A NULL pointer dereference in the Python cryptography library causes a crash when serializing mismatched keys with specific HMAC settings.","user_interaction":"not_required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cryptography","vendor":"cryptography.io"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"description":"cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Starting in version 38.0.0 and prior to version 42.0.4, if `pkcs12.serialize_key_and_certificates` is called with both a certificate whose public key did not match the provided private key and an `encryption_algorithm` with `hmac_hash` set (via `PrivateFormat.PKCS12.encryption_builder().hmac_hash(...)`, then a NULL pointer dereference would occur, crashing the Python process. This has been resolved in version 42.0.4, the first version in which a `ValueError` is properly raised.","ecosystems":["AlmaLinux:9","PyPI","Red Hat:enterprise_linux:9::appstream","Rocky Linux:9","SUSE:Linux Enterprise Module for Python 3 15 SP5","SUSE:Linux Enterprise Module for Python 3 15 SP6","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"cryptography NULL pointer dereference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash override","id":"CVE-2024-26130","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"null_dereference","year":"2024"},"n_packages":13,"n_references":3,"next":{"headline":"Element Android Intent Redirection","id":"CVE-2024-26131"},"packages":[{"ecosystem":"PyPI","fixed":["42.0.4"],"introduced":["38.0.0"],"last_affected":[],"package":"cryptography","purl":null,"source":"GHSA-6vqw-3v5j-54x4"},{"ecosystem":"PyPI","fixed":["42.0.4"],"introduced":["38.0.0"],"last_affected":[],"package":"cryptography","purl":"pkg:pypi/cryptography","source":"GHSA-6vqw-3v5j-54x4"},{"ecosystem":"PyPI","fixed":["42.0.4"],"introduced":["38.0.0"],"last_affected":[],"package":"cryptography","purl":"pkg:pypi/cryptography","source":"PYSEC-2024-225"},{"ecosystem":"AlmaLinux:9","fixed":["41.0.7-2.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"python3.12-cryptography","purl":"pkg:rpm/almalinux/python3.12-cryptography","source":"ALSA-2025:15608"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:41.0.7-2.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"python3.12-cryptography","purl":"pkg:rpm/redhat/python3.12-cryptography","source":"RHSA-2025:15608"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:41.0.7-2.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"python3.12-cryptography-debuginfo","purl":"pkg:rpm/redhat/python3.12-cryptography-debuginfo","source":"RHSA-2025:15608"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:41.0.7-2.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"python3.12-cryptography-debugsource","purl":"pkg:rpm/redhat/python3.12-cryptography-debugsource","source":"RHSA-2025:15608"},{"ecosystem":"Rocky Linux:9","fixed":["0:41.0.7-2.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"python3.12-cryptography","purl":"pkg:rpm/rocky-linux/python3.12-cryptography?distro=rocky-linux-9-6\u0026epoch=0","source":"RLSA-2025:15608"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP5","fixed":["41.0.3-150400.16.15.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP5","source":"SUSE-SU-2024:0763-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP6","fixed":["41.0.3-150600.23.3.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6","source":"SUSE-SU-2024:2138-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["41.0.3-150400.16.15.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/opensuse/python-cryptography\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:0763-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["41.0.3-150600.23.3.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/opensuse/python-cryptography\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:2138-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["42.0.4-1.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/opensuse/python-cryptography\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13710-1"}],"prev":{"headline":"Prestashop vulnerable to path disclosure in JavaScript variable","id":"CVE-2024-26129"},"products":["cryptography"],"published":"2024-02-21","related":[{"cvss_score":9.1,"headline":"PyCA Cryptography symmetrically encrypting large values can lead to integer overflow","id":"CVE-2020-36242","kev_date_added":null,"published":"2021-02-07"},{"cvss_score":8.2,"headline":"cryptography Subgroup Attack Due to Missing Subgroup Validation for SECT Curves","id":"CVE-2026-26007","kev_date_added":null,"published":"2026-02-10"},{"cvss_score":7.5,"headline":"cryptography mishandles SSH certificates","id":"CVE-2023-38325","kev_date_added":null,"published":"2023-07-14"},{"cvss_score":6.9,"headline":"cryptography has a buffer overflow if non-contiguous buffers were passed to APIs","id":"CVE-2026-39892","kev_date_added":null,"published":"2026-04-08"},{"cvss_score":5.9,"headline":"cryptography vulnerable to NULL-dereference when loading PKCS7 certificates","id":"CVE-2023-49083","kev_date_added":null,"published":"2023-11-29"},{"cvss_score":5.9,"headline":"RSA decryption vulnerable to Bleichenbacher timing vulnerability","id":"CVE-2020-25659","kev_date_added":null,"published":"2021-01-11"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-14","vendors":["pyca"]},"summary":"A NULL pointer dereference in the Python cryptography library causes a crash when serializing mismatched keys with specific HMAC settings.","url":"https://insights.sbomify.com/CVE-2024-26130/"}