{"answers":{"affected":"It affects 4 products.","exploited":"There is no known exploitation of CVE-2016-0787 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2016-0787 is a medium-severity vulnerability in Debian Debian Linux, published on 13 Apr 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-0787 and fix it if it is affected.\n\nWhat it is: CVE-2016-0787 is a medium-severity vulnerability in Debian Debian Linux, published on 13 Apr 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-0787 in the wild and no public exploit code.\n\nAffected product: Debian Debian 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-0787/ (Markdown: https://insights.sbomify.com/CVE-2016-0787/index.md)","id":"CVE-2016-0787","markdown":"https://insights.sbomify.com/CVE-2016-0787/index.md","name":"CVE-2016-0787","record":{"aliases":["ALPINE-CVE-2016-0787","DEBIAN-CVE-2016-0787","DLA-426-1","DSA-3487-1","GHSA-6wmj-27wm-wwx6","MGASA-2016-0392","RHSA-2016:0428","SUSE-SU-2016:0718-1","SUSE-SU-2016:0723-1","UBUNTU-CVE-2016-0787"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"libssh2 library","requires_auth":"none","summary":"Man-in-the-middle attackers can decrypt or intercept SSH sessions due to improper secret truncation in libssh2.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"libssh2","vendor":"libssh2"},{"product":"opensuse","vendor":"opensuse"}],"cvss":{"score":5.9,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"The diffie_hellman_sha256 function in kex.c in libssh2 before 1.7.0 improperly truncates secrets to 128 or 256 bits, which makes it easier for man-in-the-middle attackers to decrypt or intercept SSH sessions via unspecified vectors, aka a \"bits/bytes confusion bug.\"","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 11 SP4","SUSE:Linux Enterprise Desktop 12","SUSE:Linux Enterprise Desktop 12 SP1","SUSE:Linux Enterprise Server 11 SP4","SUSE:Linux Enterprise Server 12","SUSE:Linux Enterprise Server 12 SP1","SUSE:Linux Enterprise Server for SAP Applications 11 SP4","SUSE:Linux Enterprise Server for SAP Applications 12","SUSE:Linux Enterprise Server for SAP Applications 12 SP1","SUSE:Linux Enterprise Software Development Kit 11 SP4","SUSE:Linux Enterprise Software Development Kit 12","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-0787","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora","opensuse:opensuse"],"type":"weak_cryptography","year":"2016"},"n_packages":44,"n_references":12,"next":{"headline":"Jenkins allows Execution of Code by Opening a JRMP Listener","id":"CVE-2016-0788"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2","purl":"pkg:rpm/redhat/libssh2","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-debuginfo","purl":"pkg:rpm/redhat/libssh2-debuginfo","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-devel","purl":"pkg:rpm/redhat/libssh2-devel","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-docs","purl":"pkg:rpm/redhat/libssh2-docs","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2","purl":"pkg:rpm/redhat/libssh2","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-debuginfo","purl":"pkg:rpm/redhat/libssh2-debuginfo","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-devel","purl":"pkg:rpm/redhat/libssh2-devel","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-docs","purl":"pkg:rpm/redhat/libssh2-docs","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2","purl":"pkg:rpm/redhat/libssh2","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-debuginfo","purl":"pkg:rpm/redhat/libssh2-debuginfo","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-devel","purl":"pkg:rpm/redhat/libssh2-devel","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-docs","purl":"pkg:rpm/redhat/libssh2-docs","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2","purl":"pkg:rpm/redhat/libssh2","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-debuginfo","purl":"pkg:rpm/redhat/libssh2-debuginfo","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-devel","purl":"pkg:rpm/redhat/libssh2-devel","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:1.4.2-2.el6_7.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-docs","purl":"pkg:rpm/redhat/libssh2-docs","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2","purl":"pkg:rpm/redhat/libssh2","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-debuginfo","purl":"pkg:rpm/redhat/libssh2-debuginfo","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-devel","purl":"pkg:rpm/redhat/libssh2-devel","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-docs","purl":"pkg:rpm/redhat/libssh2-docs","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2","purl":"pkg:rpm/redhat/libssh2","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-debuginfo","purl":"pkg:rpm/redhat/libssh2-debuginfo","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-devel","purl":"pkg:rpm/redhat/libssh2-devel","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-docs","purl":"pkg:rpm/redhat/libssh2-docs","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2","purl":"pkg:rpm/redhat/libssh2","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-debuginfo","purl":"pkg:rpm/redhat/libssh2-debuginfo","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-devel","purl":"pkg:rpm/redhat/libssh2-devel","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-docs","purl":"pkg:rpm/redhat/libssh2-docs","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2","purl":"pkg:rpm/redhat/libssh2","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-debuginfo","purl":"pkg:rpm/redhat/libssh2-debuginfo","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-devel","purl":"pkg:rpm/redhat/libssh2-devel","source":"RHSA-2016:0428"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.4.3-10.el7_2.1"],"introduced":["0"],"last_affected":[],"package":"libssh2-docs","purl":"pkg:rpm/redhat/libssh2-docs","source":"RHSA-2016:0428"},{"ecosystem":"SUSE:Linux Enterprise Desktop 11 SP4","fixed":["1.2.9-4.2.6.1"],"introduced":["0"],"last_affected":[],"package":"libssh2_org","purl":"pkg:rpm/suse/libssh2_org\u0026distro=SUSE%20Linux%20Enterprise%20Desktop%2011%20SP4","source":"SUSE-SU-2016:0723-1"},{"ecosystem":"SUSE:Linux Enterprise Desktop 12","fixed":["1.4.3-16.1"],"introduced":["0"],"last_affected":[],"package":"libssh2_org","purl":"pkg:rpm/suse/libssh2_org\u0026distro=SUSE%20Linux%20Enterprise%20Desktop%2012","source":"SUSE-SU-2016:0718-1"},{"ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","fixed":["1.4.3-16.1"],"introduced":["0"],"last_affected":[],"package":"libssh2_org","purl":"pkg:rpm/suse/libssh2_org\u0026distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP1","source":"SUSE-SU-2016:0718-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP4","fixed":["1.2.9-4.2.6.1"],"introduced":["0"],"last_affected":[],"package":"libssh2_org","purl":"pkg:rpm/suse/libssh2_org\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4","source":"SUSE-SU-2016:0723-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12","fixed":["1.4.3-16.1"],"introduced":["0"],"last_affected":[],"package":"libssh2_org","purl":"pkg:rpm/suse/libssh2_org\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012","source":"SUSE-SU-2016:0718-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP1","fixed":["1.4.3-16.1"],"introduced":["0"],"last_affected":[],"package":"libssh2_org","purl":"pkg:rpm/suse/libssh2_org\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1","source":"SUSE-SU-2016:0718-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 11 SP4","fixed":["1.2.9-4.2.6.1"],"introduced":["0"],"last_affected":[],"package":"libssh2_org","purl":"pkg:rpm/suse/libssh2_org\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4","source":"SUSE-SU-2016:0723-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12","fixed":["1.4.3-16.1"],"introduced":["0"],"last_affected":[],"package":"libssh2_org","purl":"pkg:rpm/suse/libssh2_org\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012","source":"SUSE-SU-2016:0718-1"}],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2016-0786"},"products":["n/a"],"published":"2016-04-13","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-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-05","vendors":["n/a"]},"summary":"Man-in-the-middle attackers can decrypt or intercept SSH sessions due to improper secret truncation in libssh2.","url":"https://insights.sbomify.com/CVE-2016-0787/"}