{"answers":{"affected":"It affects 4 products.","exploited":"There is no known exploitation of CVE-2016-6313 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2016-6313 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 13 Dec 2016. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2016-6313 and fix it if it is affected.\n\nWhat it is: CVE-2016-6313 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 13 Dec 2016. 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-2016-6313 in the wild and no public exploit code.\n\nAffected product: Canonical Ubuntu Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2016-6313/ (Markdown: https://insights.sbomify.com/CVE-2016-6313/index.md)","id":"CVE-2016-6313","markdown":"https://insights.sbomify.com/CVE-2016-6313/index.md","name":"CVE-2016-6313","record":{"aliases":["ALPINE-CVE-2016-6313","DEBIAN-CVE-2016-6313","DLA-600-1","DLA-602-1","DSA-3649-1","DSA-3650-1","GHSA-44wq-cf78-w397","MGASA-2016-0292","RHSA-2016:2674","SUSE-SU-2016:2345-1","SUSE-SU-2016:2346-1","UBUNTU-CVE-2016-6313","USN-3064-1","USN-3065-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Libgcrypt random number generator","requires_auth":"none","summary":"Weakness in Libgcrypt and GnuPG random number generator allows attackers to predict 160 bits of output based on previous bits.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"gnupg","vendor":"gnupg"},{"product":"libgcrypt","vendor":"gnupg"}],"cvss":{"score":5.3,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"The mixing functions in the random number generator in Libgcrypt before 1.5.6, 1.6.x before 1.6.6, and 1.7.x before 1.7.3 and GnuPG before 1.4.21 make it easier for attackers to obtain the values of 160 bits by leveraging knowledge of the previous 4640 bits.","ecosystems":["Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","SUSE:Linux Enterprise Desktop 12 SP1","SUSE:Linux Enterprise Server 11 SP4","SUSE:Linux Enterprise Server 12 SP1","SUSE:Linux Enterprise Server for SAP Applications 11 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP1","SUSE:Linux Enterprise Software Development Kit 11 SP4","SUSE:Linux Enterprise Software Development Kit 12 SP1"],"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":"Weak cryptography in n/a","id":"CVE-2016-6313","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux"],"type":"weak_cryptography","year":"2016"},"n_packages":31,"n_references":11,"next":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2016-6314"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.4.5-12.el6_8"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/redhat/libgcrypt","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.4.5-12.el6_8"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-debuginfo","purl":"pkg:rpm/redhat/libgcrypt-debuginfo","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.4.5-12.el6_8"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-devel","purl":"pkg:rpm/redhat/libgcrypt-devel","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.4.5-12.el6_8"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/redhat/libgcrypt","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.4.5-12.el6_8"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-debuginfo","purl":"pkg:rpm/redhat/libgcrypt-debuginfo","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.4.5-12.el6_8"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-devel","purl":"pkg:rpm/redhat/libgcrypt-devel","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.4.5-12.el6_8"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/redhat/libgcrypt","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.4.5-12.el6_8"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-debuginfo","purl":"pkg:rpm/redhat/libgcrypt-debuginfo","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.4.5-12.el6_8"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-devel","purl":"pkg:rpm/redhat/libgcrypt-devel","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:1.4.5-12.el6_8"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/redhat/libgcrypt","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:1.4.5-12.el6_8"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-debuginfo","purl":"pkg:rpm/redhat/libgcrypt-debuginfo","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:1.4.5-12.el6_8"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-devel","purl":"pkg:rpm/redhat/libgcrypt-devel","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.3-13.el7_3.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/redhat/libgcrypt","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.3-13.el7_3.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-debuginfo","purl":"pkg:rpm/redhat/libgcrypt-debuginfo","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.3-13.el7_3.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-devel","purl":"pkg:rpm/redhat/libgcrypt-devel","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.3-13.el7_3.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/redhat/libgcrypt","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.3-13.el7_3.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-debuginfo","purl":"pkg:rpm/redhat/libgcrypt-debuginfo","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.3-13.el7_3.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-devel","purl":"pkg:rpm/redhat/libgcrypt-devel","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.5.3-13.el7_3.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/redhat/libgcrypt","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.5.3-13.el7_3.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-debuginfo","purl":"pkg:rpm/redhat/libgcrypt-debuginfo","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.5.3-13.el7_3.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-devel","purl":"pkg:rpm/redhat/libgcrypt-devel","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.5.3-13.el7_3.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/redhat/libgcrypt","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.5.3-13.el7_3.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-debuginfo","purl":"pkg:rpm/redhat/libgcrypt-debuginfo","source":"RHSA-2016:2674"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.5.3-13.el7_3.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt-devel","purl":"pkg:rpm/redhat/libgcrypt-devel","source":"RHSA-2016:2674"},{"ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","fixed":["1.6.1-16.33.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/suse/libgcrypt\u0026distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP1","source":"SUSE-SU-2016:2345-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP4","fixed":["1.5.0-0.22.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/suse/libgcrypt\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4","source":"SUSE-SU-2016:2346-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP1","fixed":["1.6.1-16.33.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/suse/libgcrypt\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1","source":"SUSE-SU-2016:2345-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 11 SP4","fixed":["1.5.0-0.22.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/suse/libgcrypt\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4","source":"SUSE-SU-2016:2346-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP1","fixed":["1.6.1-16.33.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/suse/libgcrypt\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1","source":"SUSE-SU-2016:2345-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 11 SP4","fixed":["1.5.0-0.22.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/suse/libgcrypt\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4","source":"SUSE-SU-2016:2346-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","fixed":["1.6.1-16.33.1"],"introduced":["0"],"last_affected":[],"package":"libgcrypt","purl":"pkg:rpm/suse/libgcrypt\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP1","source":"SUSE-SU-2016:2345-1"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2016-6312"},"products":["n/a"],"published":"2016-12-13","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":"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-06","vendors":["n/a"]},"summary":"Weakness in Libgcrypt and GnuPG random number generator allows attackers to predict 160 bits of output based on previous bits.","url":"https://insights.sbomify.com/CVE-2016-6313/"}