Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 3781913

Browse files
committed
Merge commit '10e09e273f69e149389b3e0e5d44b8c221c2e7f6'
2 parents 89aa8bc + 10e09e2 commit 3781913

51 files changed

Lines changed: 1710 additions & 533 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ fedora/ninja:
152152
extends: .fedora
153153
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
154154
script:
155-
- cmake -G Ninja $CMAKE_OPTIONS ../ && ninja && ninja test
155+
- cmake -G Ninja $CMAKE_OPTIONS ../ && ninja && CTEST_OUTPUT_ON_FAILURE=1 ninja test
156156

157157
fedora/openssl_3.0.x/x86_64:
158158
extends: .fedora

CHANGELOG

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
CHANGELOG
22
=========
3+
version 0.10.6 (released 2023-12-18)
4+
* Fix CVE-2023-6004: Command injection using proxycommand
5+
* Fix CVE-2023-48795: Potential downgrade attack using strict kex
6+
* Fix CVE-2023-6918: Missing checks for return values of MD functions
7+
* Fix ssh_send_issue_banner() for CMD(PowerShell)
8+
* Avoid passing other events to callbacks when poll is called recursively (#202)
9+
* Allow @ in usernames when parsing from URI composes
310

411
version 0.10.5 (released 2023-05-04)
512
* Fix CVE-2023-1667: a NULL dereference during rekeying with algorithm guessing

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
1010
include(DefineCMakeDefaults)
1111
include(DefineCompilerFlags)
1212

13-
project(libssh VERSION 0.10.5 LANGUAGES C)
13+
project(libssh VERSION 0.10.6 LANGUAGES C)
1414

1515
# global needed variable
1616
set(APPLICATION_NAME ${PROJECT_NAME})
@@ -22,7 +22,7 @@ set(APPLICATION_NAME ${PROJECT_NAME})
2222
# Increment AGE. Set REVISION to 0
2323
# If the source code was changed, but there were no interface changes:
2424
# Increment REVISION.
25-
set(LIBRARY_VERSION "4.9.5")
25+
set(LIBRARY_VERSION "4.9.6")
2626
set(LIBRARY_SOVERSION "4")
2727

2828
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked

INSTALL

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ optional:
1919
- [nss_wrapper](https://cwrap.org/) >= 1.1.2
2020
- [uid_wrapper](https://cwrap.org/) >= 1.2.0
2121
- [pam_wrapper](https://cwrap.org/) >= 1.0.1
22+
- [priv_wrapper](https://cwrap.org/) >= 1.0.0
2223

2324
Note that these version numbers are version we know works correctly. If you
2425
build and run libssh successfully with an older version, please let us know.

doc/mainpage.dox

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,15 @@ It was later modified and expanded by the following RFCs.
213213
Use of RSA Keys with SHA-256 and SHA-512 in the Secure Shell (SSH) Protocol
214214
- <a href="https://tools.ietf.org/html/rfc8709" target="_blank">RFC 8709</a>,
215215
Ed25519 and Ed448 Public Key Algorithms for the Secure Shell (SSH) Protocol
216+
- <a href="https://tools.ietf.org/html/rfc8709" target="_blank">RFC 8731</a>,
217+
Secure Shell (SSH) Key Exchange Method Using Curve25519 and Curve448
218+
- <a href="https://tools.ietf.org/html/rfc9142" target="_blank">RFC 9142</a>,
219+
Key Exchange (KEX) Method Updates and Recommendations for Secure Shell (SSH)
216220

217221
There are also drafts that are being currently developed and followed.
218222

219-
- <a href="https://tools.ietf.org/html/draft-ietf-curdle-ssh-kex-sha2-10" target="_blank">draft-ietf-curdle-ssh-kex-sha2-10</a>
220-
Key Exchange (KEX) Method Updates and Recommendations for Secure Shell (SSH)
221-
- <a href="https://tools.ietf.org/html/draft-miller-ssh-agent-03" target="_blank">draft-miller-ssh-agent-03</a>
223+
- <a href="https://tools.ietf.org/html/draft-miller-ssh-agent-03" target="_blank">draft-miller-ssh-agent-08</a>
222224
SSH Agent Protocol
223-
- <a href="https://tools.ietf.org/html/draft-ietf-curdle-ssh-curves-12" target="_blank">draft-ietf-curdle-ssh-curves-12</a>
224-
Secure Shell (SSH) Key Exchange Method using Curve25519 and Curve448
225225

226226
Interesting cryptography documents:
227227

include/libssh/kex.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ SSH_PACKET_CALLBACK(ssh_packet_kexinit);
4040
int ssh_send_kex(ssh_session session);
4141
void ssh_list_kex(struct ssh_kex_struct *kex);
4242
int ssh_set_client_kex(ssh_session session);
43+
int ssh_kex_append_extensions(ssh_session session, struct ssh_kex_struct *pkex);
4344
int ssh_kex_select_methods(ssh_session session);
4445
int ssh_verify_existing_algo(enum ssh_kex_types_e algo, const char *name);
4546
char *ssh_keep_known_algos(enum ssh_kex_types_e algo, const char *list);

include/libssh/libcrypto.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ typedef EVP_MD_CTX* SHA384CTX;
3939
typedef EVP_MD_CTX* SHA512CTX;
4040
typedef EVP_MD_CTX* MD5CTX;
4141
typedef EVP_MD_CTX* HMACCTX;
42-
#ifdef HAVE_ECC
43-
typedef EVP_MD_CTX *EVPCTX;
44-
#else
45-
typedef void *EVPCTX;
46-
#endif
4742

4843
#define SHA_DIGEST_LEN SHA_DIGEST_LENGTH
4944
#define SHA256_DIGEST_LEN SHA256_DIGEST_LENGTH

include/libssh/libgcrypt.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ typedef gcry_md_hd_t SHA384CTX;
3232
typedef gcry_md_hd_t SHA512CTX;
3333
typedef gcry_md_hd_t MD5CTX;
3434
typedef gcry_md_hd_t HMACCTX;
35-
typedef gcry_md_hd_t EVPCTX;
3635
#define SHA_DIGEST_LENGTH 20
3736
#define SHA_DIGEST_LEN SHA_DIGEST_LENGTH
3837
#define MD5_DIGEST_LEN 16

include/libssh/libmbedcrypto.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ typedef mbedtls_md_context_t *SHA384CTX;
4141
typedef mbedtls_md_context_t *SHA512CTX;
4242
typedef mbedtls_md_context_t *MD5CTX;
4343
typedef mbedtls_md_context_t *HMACCTX;
44-
typedef mbedtls_md_context_t *EVPCTX;
4544

4645
#define SHA_DIGEST_LENGTH 20
4746
#define SHA_DIGEST_LEN SHA_DIGEST_LENGTH

include/libssh/misc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ int ssh_newline_vis(const char *string, char *buf, size_t buf_len);
103103
int ssh_tmpname(char *name);
104104

105105
char *ssh_strreplace(const char *src, const char *pattern, const char *repl);
106+
107+
int ssh_check_hostname_syntax(const char *hostname);
108+
106109
#ifdef __cplusplus
107110
}
108111
#endif

0 commit comments

Comments
 (0)