OESA-2021-1343

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1343
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2021-1343.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2021-1343
Upstream
Published
2021-09-18T11:03:11Z
Modified
2025-08-12T05:09:12.204520Z
Summary
libssh security update
Details

The ssh library was designed to be used by programmers needing a working SSH implementation by the mean of a library. The complete control of the client is made by the programmer. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel for your remote programs. With its Secure FTP implementation, you can play with remote files easily, without third-party programs others than libcrypto (from openssl).

Security Fix(es):

A flaw has been found in libssh in versions prior to 0.9.6. The SSH protocol keeps track of two shared secrets during the lifetime of the session. One of them is called secrethash and the other sessionid. Initially, both of them are the same, but after key re-exchange, previous sessionid is kept and used as an input to new secrethash. Historically, both of these buffers had shared length variable, which worked as long as these buffers were same. But the key re-exchange operation can also change the key exchange method, which can be based on hash of different size, eventually creating "secrethash" of different size than the sessionid has. This becomes an issue when the session_id memory is zeroed or when it is used again during second key re-exchange.(CVE-2021-3634)

Database specific
{
    "severity": "Medium"
}
References

Affected packages

openEuler:20.03-LTS-SP1 / libssh

Package

Name
libssh
Purl
pkg:rpm/openEuler/libssh&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.9.4-5.oe1

Ecosystem specific

{
    "src": [
        "libssh-0.9.4-5.oe1.src.rpm"
    ],
    "x86_64": [
        "libssh-debugsource-0.9.4-5.oe1.x86_64.rpm",
        "libssh-devel-0.9.4-5.oe1.x86_64.rpm",
        "libssh-debuginfo-0.9.4-5.oe1.x86_64.rpm",
        "libssh-0.9.4-5.oe1.x86_64.rpm"
    ],
    "aarch64": [
        "libssh-0.9.4-5.oe1.aarch64.rpm",
        "libssh-devel-0.9.4-5.oe1.aarch64.rpm",
        "libssh-debugsource-0.9.4-5.oe1.aarch64.rpm",
        "libssh-debuginfo-0.9.4-5.oe1.aarch64.rpm"
    ],
    "noarch": [
        "libssh-help-0.9.4-5.oe1.noarch.rpm"
    ]
}

openEuler:20.03-LTS-SP2 / libssh

Package

Name
libssh
Purl
pkg:rpm/openEuler/libssh&distro=openEuler-20.03-LTS-SP2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.9.4-5.oe1

Ecosystem specific

{
    "src": [
        "libssh-0.9.4-5.oe1.src.rpm"
    ],
    "x86_64": [
        "libssh-debugsource-0.9.4-5.oe1.x86_64.rpm",
        "libssh-debuginfo-0.9.4-5.oe1.x86_64.rpm",
        "libssh-0.9.4-5.oe1.x86_64.rpm",
        "libssh-devel-0.9.4-5.oe1.x86_64.rpm"
    ],
    "aarch64": [
        "libssh-0.9.4-5.oe1.aarch64.rpm",
        "libssh-debugsource-0.9.4-5.oe1.aarch64.rpm",
        "libssh-devel-0.9.4-5.oe1.aarch64.rpm",
        "libssh-debuginfo-0.9.4-5.oe1.aarch64.rpm"
    ],
    "noarch": [
        "libssh-help-0.9.4-5.oe1.noarch.rpm"
    ]
}