===========================================================================
             AUSCERT External Security Bulletin Redistribution             
                                                                           
                               ESB-2024.1107                               
                        Security update for libssh                         
                             22 February 2024                              
                                                                           
===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           libssh                                                  
Publisher:         SUSE                                                    
Operating System:  SUSE                                                    
Resolution:        Patch/Upgrade                                           
CVE Names:         CVE-2023-48795 CVE-2020-16135 CVE-2023-6918             
                   CVE-2023-6004 CVE-2021-3634 CVE-2020-1730               
                   CVE-2019-14889 CVE-2023-2283 CVE-2023-1667              

Original Bulletin:
   https://www.suse.com/support/update/announcement/2024/suse-su-20240539-1

Comment: CVSS (Max):  7.1 CVE-2019-14889 (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H)
         CVSS Source: SUSE                                                 
         Calculator:  https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H


- --------------------------BEGIN INCLUDED TEXT--------------------

Security update for libssh

Announcement ID:  SUSE-SU-2024:0539-1
     Rating:      important
                    o bsc#1158095
                    o bsc#1168699
                    o bsc#1174713
                    o bsc#1189608
                    o bsc#1211188
   References:      o bsc#1211190
                    o bsc#1218126
                    o bsc#1218186
                    o bsc#1218209
                    o jsc#PED-7719

                    o CVE-2019-14889
                    o CVE-2020-16135
                    o CVE-2020-1730
                    o CVE-2021-3634
Cross-References:   o CVE-2023-1667
                    o CVE-2023-2283
                    o CVE-2023-48795
                    o CVE-2023-6004
                    o CVE-2023-6918

                    o CVE-2019-14889 ( SUSE ): 7.1 CVSS:3.1/AV:N/AC:H/PR:L/UI:R
                      /S:U/C:H/I:H/A:H
                    o CVE-2019-14889 ( NVD ): 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/
                      S:U/C:H/I:H/A:H
                    o CVE-2019-14889 ( NVD ): 7.1 CVSS:3.0/AV:N/AC:H/PR:L/UI:R/
                      S:U/C:H/I:H/A:H
                    o CVE-2020-16135 ( SUSE ): 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N
                      /S:U/C:N/I:N/A:H
                    o CVE-2020-16135 ( NVD ): 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/
                      S:U/C:N/I:N/A:H
                    o CVE-2020-1730 ( SUSE ): 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/
                      S:U/C:N/I:N/A:L
                    o CVE-2020-1730 ( NVD ): 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/
                      S:U/C:N/I:N/A:L
                    o CVE-2021-3634 ( SUSE ): 3.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/
                      S:U/C:N/I:N/A:L
                    o CVE-2021-3634 ( NVD ): 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/
                      S:U/C:N/I:N/A:H
                    o CVE-2023-1667 ( SUSE ): 4.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/
  CVSS scores:        S:U/C:N/I:N/A:L
                    o CVE-2023-1667 ( NVD ): 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/
                      S:U/C:N/I:N/A:H
                    o CVE-2023-2283 ( SUSE ): 4.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/
                      S:U/C:L/I:L/A:N
                    o CVE-2023-2283 ( NVD ): 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/
                      S:U/C:L/I:L/A:N
                    o CVE-2023-48795 ( SUSE ): 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N
                      /S:U/C:N/I:H/A:N
                    o CVE-2023-48795 ( NVD ): 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/
                      S:U/C:N/I:H/A:N
                    o CVE-2023-6004 ( SUSE ): 4.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/
                      S:U/C:L/I:L/A:L
                    o CVE-2023-6004 ( NVD ): 4.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/
                      S:U/C:L/I:L/A:L
                    o CVE-2023-6918 ( SUSE ): 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/
                      S:U/C:N/I:N/A:L
                    o CVE-2023-6918 ( NVD ): 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/
                      S:U/C:N/I:N/A:L

                    o SUSE Linux Enterprise High Performance Computing 12 SP5
    Affected        o SUSE Linux Enterprise Server 12 SP5
    Products:       o SUSE Linux Enterprise Server for SAP Applications 12 SP5
                    o SUSE Linux Enterprise Software Development Kit 12 SP5

An update that solves nine vulnerabilities and contains one feature can now be
installed.

Description:

This update for libssh fixes the following issues:

Update to version 0.9.8 (jsc#PED-7719):

  o Fix CVE-2023-6004: Command injection using proxycommand (bsc#1218209)
  o Fix CVE-2023-48795: Potential downgrade attack using strict kex (bsc#
    1218126)
  o Fix CVE-2023-6918: Missing checks for return values of MD functions (bsc#
    1218186)
  o Allow @ in usernames when parsing from URI composes

Update to version 0.9.7

  o Fix CVE-2023-1667: a NULL dereference during rekeying with algorithm
    guessing (bsc#1211188)
  o Fix CVE-2023-2283: a possible authorization bypass in
    pki_verify_data_signature under low-memory conditions (bsc#1211190)
  o Fix several memory leaks in GSSAPI handling code

Update to version 0.9.6 (bsc#1189608, CVE-2021-3634)

  o https://git.libssh.org/projects/libssh.git/tag/h=libssh-0.9.6

Update to version 0.9.5 (bsc#1174713, CVE-2020-16135):

  o CVE-2020-16135: Avoid null pointer dereference in sftpserver (T232)
  o Improve handling of library initialization (T222)
  o Fix parsing of subsecond times in SFTP (T219)
  o Make the documentation reproducible
  o Remove deprecated API usage in OpenSSL
  o Fix regression of ssh_channel_poll_timeout() returning SSH_AGAIN
  o Define version in one place (T226)
  o Prevent invalid free when using different C runtimes than OpenSSL (T229)
  o Compatibility improvements to testsuite

Update to version 0.9.4:

  o https://www.libssh.org/2020/04/09/
    libssh-0-9-4-and-libssh-0-8-9-security-release/
  o Fix possible Denial of Service attack when using AES-CTR-ciphers
    CVE-2020-1730 (bsc#1168699)

Update to version 0.9.3:

  o Fixed CVE-2019-14889 - SCP: Unsanitized location leads to command execution
    (bsc#1158095)
  o SSH-01-003 Client: Missing NULL check leads to crash in erroneous state
  o SSH-01-006 General: Various unchecked Null-derefs cause DOS
  o SSH-01-007 PKI Gcrypt: Potential UAF/double free with RSA pubkeys
  o SSH-01-010 SSH: Deprecated hash function in fingerprinting
  o SSH-01-013 Conf-Parsing: Recursive wildcards in hostnames lead to DOS
  o SSH-01-014 Conf-Parsing: Integer underflow leads to OOB array access
  o SSH-01-001 State Machine: Initial machine states should be set explicitly
  o SSH-01-002 Kex: Differently bound macros used to iterate same array
  o SSH-01-005 Code-Quality: Integer sign confusion during assignments
  o SSH-01-008 SCP: Protocol Injection via unescaped File Names
  o SSH-01-009 SSH: Update documentation which RFCs are implemented
  o SSH-01-012 PKI: Information leak via uninitialized stack buffer

Update to version 0.9.2:

  o Fixed libssh-config.cmake
  o Fixed issues with rsa algorithm negotiation (T191)
  o Fixed detection of OpenSSL ed25519 support (T197)

Update to version 0.9.1:

  o Added support for Ed25519 via OpenSSL
  o Added support for X25519 via OpenSSL
  o Added support for localuser in Match keyword
  o Fixed Match keyword to be case sensitive
  o Fixed compilation with LibreSSL
  o Fixed error report of channel open (T75)
  o Fixed sftp documentation (T137)
  o Fixed known_hosts parsing (T156)
  o Fixed build issue with MinGW (T157)
  o Fixed build with gcc 9 (T164)
  o Fixed deprecation issues (T165)
  o Fixed known_hosts directory creation (T166)

Update to verion 0.9.0:

  o Added support for AES-GCM
  o Added improved rekeying support
  o Added performance improvements
  o Disabled blowfish support by default
  o Fixed several ssh config parsing issues
  o Added support for DH Group Exchange KEX
  o Added support for Encrypt-then-MAC mode
  o Added support for parsing server side configuration file
  o Added support for ECDSA/Ed25519 certificates
  o Added FIPS 140-2 compatibility
  o Improved known_hosts parsing
  o Improved documentation
  o Improved OpenSSL API usage for KEX, DH, and signatures

  o Add libssh client and server config files

Patch Instructions:

To install this SUSE update use the SUSE recommended installation methods like
YaST online_update or "zypper patch".
Alternatively you can run the command listed for your product:

  o SUSE Linux Enterprise Software Development Kit 12 SP5
    zypper in -t patch SUSE-SLE-SDK-12-SP5-2024-539=1
  o SUSE Linux Enterprise High Performance Computing 12 SP5
    zypper in -t patch SUSE-SLE-SERVER-12-SP5-2024-539=1
  o SUSE Linux Enterprise Server 12 SP5
    zypper in -t patch SUSE-SLE-SERVER-12-SP5-2024-539=1
  o SUSE Linux Enterprise Server for SAP Applications 12 SP5
    zypper in -t patch SUSE-SLE-SERVER-12-SP5-2024-539=1

Package List:

  o SUSE Linux Enterprise Software Development Kit 12 SP5 (aarch64 ppc64le
    s390x x86_64)
       libssh-devel-0.9.8-3.12.2
       libssh4-debuginfo-0.9.8-3.12.2
       libssh4-0.9.8-3.12.2
       libssh-debugsource-0.9.8-3.12.2
  o SUSE Linux Enterprise High Performance Computing 12 SP5 (aarch64 x86_64)
       libssh4-debuginfo-0.9.8-3.12.2
       libssh-config-0.9.8-3.12.2
       libssh4-0.9.8-3.12.2
       libssh-debugsource-0.9.8-3.12.2
  o SUSE Linux Enterprise High Performance Computing 12 SP5 (x86_64)
       libssh4-32bit-0.9.8-3.12.2
       libssh4-debuginfo-32bit-0.9.8-3.12.2
  o SUSE Linux Enterprise Server 12 SP5 (aarch64 ppc64le s390x x86_64)
       libssh4-debuginfo-0.9.8-3.12.2
       libssh-config-0.9.8-3.12.2
       libssh4-0.9.8-3.12.2
       libssh-debugsource-0.9.8-3.12.2
  o SUSE Linux Enterprise Server 12 SP5 (s390x x86_64)
       libssh4-32bit-0.9.8-3.12.2
       libssh4-debuginfo-32bit-0.9.8-3.12.2
  o SUSE Linux Enterprise Server for SAP Applications 12 SP5 (ppc64le x86_64)
       libssh4-debuginfo-0.9.8-3.12.2
       libssh-config-0.9.8-3.12.2
       libssh4-0.9.8-3.12.2
       libssh-debugsource-0.9.8-3.12.2
  o SUSE Linux Enterprise Server for SAP Applications 12 SP5 (x86_64)
       libssh4-32bit-0.9.8-3.12.2
       libssh4-debuginfo-32bit-0.9.8-3.12.2

References:

  o https://www.suse.com/security/cve/CVE-2019-14889.html
  o https://www.suse.com/security/cve/CVE-2020-16135.html
  o https://www.suse.com/security/cve/CVE-2020-1730.html
  o https://www.suse.com/security/cve/CVE-2021-3634.html
  o https://www.suse.com/security/cve/CVE-2023-1667.html
  o https://www.suse.com/security/cve/CVE-2023-2283.html
  o https://www.suse.com/security/cve/CVE-2023-48795.html
  o https://www.suse.com/security/cve/CVE-2023-6004.html
  o https://www.suse.com/security/cve/CVE-2023-6918.html
  o https://bugzilla.suse.com/show_bug.cgi?id=1158095
  o https://bugzilla.suse.com/show_bug.cgi?id=1168699
  o https://bugzilla.suse.com/show_bug.cgi?id=1174713
  o https://bugzilla.suse.com/show_bug.cgi?id=1189608
  o https://bugzilla.suse.com/show_bug.cgi?id=1211188
  o https://bugzilla.suse.com/show_bug.cgi?id=1211190
  o https://bugzilla.suse.com/show_bug.cgi?id=1218126
  o https://bugzilla.suse.com/show_bug.cgi?id=1218186
  o https://bugzilla.suse.com/show_bug.cgi?id=1218209
  o https://jira.suse.com/browse/PED-7719

- --------------------------END INCLUDED TEXT----------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================