{"answers":{"affected":"3 open source packages ship an affected version, including cryptography. It affects 3 products.","exploited":"There is no known exploitation of CVE-2018-10903 in the wild and no public exploit code.","fix":"Upgrade cryptography to 2.3 or later.","what":"CVE-2018-10903 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 30 Jul 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-10903 and fix it if it is affected.\n\nWhat it is: CVE-2018-10903 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 30 Jul 2018. 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-2018-10903 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cryptography (PyPI): affected from 1.9; fixed in 2.3\n- cryptography (PyPI): affected from 1.9.0; fixed in 2.3\n- cryptography (PyPI): affected from 1.9.0; fixed in 2.3\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-2018-10903/ (Markdown: https://insights.sbomify.com/CVE-2018-10903/index.md)","id":"CVE-2018-10903","markdown":"https://insights.sbomify.com/CVE-2018-10903/index.md","name":"CVE-2018-10903","record":{"aliases":["DEBIAN-CVE-2018-10903","GHSA-fcf9-3qw3-gxmj","MGASA-2018-0429","PYSEC-2018-52","RHSA-2018:3600","SUSE-SU-2018:3392-1","SUSE-SU-2018:3553-1","SUSE-SU-2020:0790-1","SUSE-SU-2020:0792-1","SUSE-SU-2022:4044-1","UBUNTU-CVE-2018-10903","USN-3720-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python cryptography library","requires_auth":"none","summary":"Attackers can forge GCM tags due to missing length validation, potentially leaking keys or bypassing integrity checks in applications using python-cryptography.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ubuntu_linux","vendor":"canonical"},{"product":"python-cryptography","vendor":"cryptography"},{"product":"openstack","vendor":"redhat"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"A flaw was found in python-cryptography versions between \u003e=1.9.0 and \u003c2.3. The finalize_with_tag API did not enforce a minimum tag length. If a user did not validate the input length prior to passing it to finalize_with_tag an attacker could craft an invalid payload with a shortened tag (e.g. 1 byte) such that they would have a 1 in 256 chance of passing the MAC check. GCM tag forgeries can cause key leakage.","ecosystems":["PyPI","Red Hat:openstack:13::el7","SUSE:Enterprise Storage 5","SUSE:Enterprise Storage 7","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Module for Basesystem 15","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Python 2 15 SP3","SUSE:Linux Enterprise Server 12 SP1-LTSS","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP2-LTSS","SUSE:Linux Enterprise Server 12 SP3-BCL","SUSE:Linux Enterprise Server 12 SP3-LTSS","SUSE:Linux Enterprise Server 12 SP4","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP2-BCL","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP1","SUSE:Linux Enterprise Server for SAP Applications 12 SP2","SUSE:Linux Enterprise Server for SAP Applications 12 SP3","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Manager Proxy 4.1","SUSE:Manager Retail Branch Server 4.1","SUSE:Manager Server 4.1","SUSE:OpenStack Cloud 6-LTSS","SUSE:OpenStack Cloud 7","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud Crowbar 8","openSUSE:Leap 15.3","openSUSE:Leap Micro 5.2"],"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":"PyCA Cryptography vulnerable to GCM tag forgery","id":"CVE-2018-10903","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","redhat:openstack"],"type":"weak_cryptography","year":"2018"},"n_packages":78,"n_references":4,"next":{"headline":"Path traversal in glusterfs","id":"CVE-2018-10904"},"packages":[{"ecosystem":"PyPI","fixed":["2.3"],"introduced":["1.9"],"last_affected":[],"package":"cryptography","purl":"pkg:pypi/cryptography","source":"PYSEC-2018-52"},{"ecosystem":"PyPI","fixed":["2.3"],"introduced":["1.9.0"],"last_affected":[],"package":"cryptography","purl":null,"source":"GHSA-fcf9-3qw3-gxmj"},{"ecosystem":"PyPI","fixed":["2.3"],"introduced":["1.9.0"],"last_affected":[],"package":"cryptography","purl":"pkg:pypi/cryptography","source":"GHSA-fcf9-3qw3-gxmj"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["0:2.1.4-3.el7ost"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/redhat/python-cryptography","source":"RHSA-2018:3600"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["0:2.1.4-3.el7ost"],"introduced":["0"],"last_affected":[],"package":"python-cryptography-debuginfo","purl":"pkg:rpm/redhat/python-cryptography-debuginfo","source":"RHSA-2018:3600"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["0:2.1.4-3.el7ost"],"introduced":["0"],"last_affected":[],"package":"python2-cryptography","purl":"pkg:rpm/redhat/python2-cryptography","source":"RHSA-2018:3600"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["1.11.2-5.11.1"],"introduced":["0"],"last_affected":[],"package":"python-cffi","purl":"pkg:rpm/suse/python-cffi\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["2.1.4-7.28.2"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["0.7.5-6.3.2"],"introduced":["0"],"last_affected":[],"package":"python-xattr","purl":"pkg:rpm/suse/python-xattr\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["2.9.2-150200.13.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2022:4044-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["1.11.2-5.11.1"],"introduced":["0"],"last_affected":[],"package":"python-cffi","purl":"pkg:rpm/suse/python-cffi\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["2.0.3-3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2018:3553-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["2.1.4-7.28.2"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["0.7.5-6.3.2"],"introduced":["0"],"last_affected":[],"package":"python-xattr","purl":"pkg:rpm/suse/python-xattr\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","fixed":["2.9.2-150200.13.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOS","source":"SUSE-SU-2022:4044-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["2.9.2-150200.13.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2022:4044-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["2.9.2-150200.13.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2022:4044-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["2.9.2-150200.13.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2022:4044-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15","fixed":["2.1.4-4.3.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015","source":"SUSE-SU-2018:3392-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["2.9.2-150200.13.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2022:4044-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 2 15 SP3","fixed":["2.9.2-150200.13.1"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%202%2015%20SP3","source":"SUSE-SU-2022:4044-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP1-LTSS","fixed":["1.11.2-2.19.2"],"introduced":["0"],"last_affected":[],"package":"python-cffi","purl":"pkg:rpm/suse/python-cffi\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1-LTSS","source":"SUSE-SU-2020:0790-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP1-LTSS","fixed":["2.1.4-3.15.5"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1-LTSS","source":"SUSE-SU-2020:0790-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP1-LTSS","fixed":["0.7.5-3.2.1"],"introduced":["0"],"last_affected":[],"package":"python-xattr","purl":"pkg:rpm/suse/python-xattr\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1-LTSS","source":"SUSE-SU-2020:0790-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP2-BCL","fixed":["1.11.2-5.11.1"],"introduced":["0"],"last_affected":[],"package":"python-cffi","purl":"pkg:rpm/suse/python-cffi\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCL","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP2-BCL","fixed":["2.1.4-7.28.2"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCL","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP2-BCL","fixed":["0.7.5-6.3.2"],"introduced":["0"],"last_affected":[],"package":"python-xattr","purl":"pkg:rpm/suse/python-xattr\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCL","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP2-LTSS","fixed":["1.11.2-5.11.1"],"introduced":["0"],"last_affected":[],"package":"python-cffi","purl":"pkg:rpm/suse/python-cffi\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSS","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP2-LTSS","fixed":["2.1.4-7.28.2"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSS","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP2-LTSS","fixed":["0.7.5-6.3.2"],"introduced":["0"],"last_affected":[],"package":"python-xattr","purl":"pkg:rpm/suse/python-xattr\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSS","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP3-BCL","fixed":["1.11.2-5.11.1"],"introduced":["0"],"last_affected":[],"package":"python-cffi","purl":"pkg:rpm/suse/python-cffi\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCL","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP3-BCL","fixed":["2.1.4-7.28.2"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCL","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP3-BCL","fixed":["0.7.5-6.3.2"],"introduced":["0"],"last_affected":[],"package":"python-xattr","purl":"pkg:rpm/suse/python-xattr\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCL","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP3-LTSS","fixed":["1.11.2-5.11.1"],"introduced":["0"],"last_affected":[],"package":"python-cffi","purl":"pkg:rpm/suse/python-cffi\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSS","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP3-LTSS","fixed":["2.1.4-7.28.2"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSS","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP3-LTSS","fixed":["0.7.5-6.3.2"],"introduced":["0"],"last_affected":[],"package":"python-xattr","purl":"pkg:rpm/suse/python-xattr\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSS","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP4","fixed":["1.11.2-5.11.1"],"introduced":["0"],"last_affected":[],"package":"python-cffi","purl":"pkg:rpm/suse/python-cffi\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP4","fixed":["2.1.4-7.28.2"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/suse/python-cryptography\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP4","fixed":["0.7.5-6.3.2"],"introduced":["0"],"last_affected":[],"package":"python-xattr","purl":"pkg:rpm/suse/python-xattr\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4","source":"SUSE-SU-2020:0792-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["1.11.2-5.11.1"],"introduced":["0"],"last_affected":[],"package":"python-cffi","purl":"pkg:rpm/suse/python-cffi\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2020:0792-1"}],"prev":{"headline":"Use after free in Linux","id":"CVE-2018-10902"},"products":["python-cryptography"],"published":"2018-07-30","related":[{"cvss_score":9.8,"headline":"SaltStack Salt Authentication Bypass","id":"CVE-2020-11651","kev_date_added":"2021-11-03","published":"2020-04-30"},{"cvss_score":9.8,"headline":"OpenSMTPD Remote Code Execution","id":"CVE-2020-7247","kev_date_added":"2022-03-25","published":"2020-01-29"},{"cvss_score":9.8,"headline":"Exim Out-of-bounds Write","id":"CVE-2019-16928","kev_date_added":"2022-03-03","published":"2019-09-27"},{"cvss_score":9.8,"headline":"Exim Buffer Overflow","id":"CVE-2018-6789","kev_date_added":"2021-11-03","published":"2018-02-08"},{"cvss_score":9.8,"headline":"Oracle Java SE and Java SE Embedded Remote Code Execution","id":"CVE-2015-2590","kev_date_added":"2022-03-03","published":"2015-07-16"},{"cvss_score":9.8,"headline":"Oracle JRE Remote Code Execution","id":"CVE-2013-0422","kev_date_added":"2022-05-25","published":"2013-01-10"},{"cvss_score":9.8,"headline":"Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution","id":"CVE-2011-3544","kev_date_added":"2022-03-03","published":"2011-10-19"}],"sources":[{"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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["[UNKNOWN]"]},"summary":"Attackers can forge GCM tags due to missing length validation, potentially leaking keys or bypassing integrity checks in applications using python-cryptography.","url":"https://insights.sbomify.com/CVE-2018-10903/"}