Résumé
A security regression (CVE-2006-5051) was discovered in OpenSSH's server (sshd). There is a race condition which can lead sshd to handle some signals in an unsafe manner. An unauthenticated, remote attacker may be able to trigger it by failing to authenticate within a set time period.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Redhat (18 ligne(s))
Almalinux (1 ligne(s))
Almalinux
Produit Versions Corrigé dans Source
Almalinux
9.0
—
NVD
Amazon (1 ligne(s))
Amazon
Produit Versions Corrigé dans Source
Amazon linux
2023.0
—
NVD
Apple (3 ligne(s))
Apple
Produit Versions Corrigé dans Source
Macos
de 12.0 (inclus) à 12.7.6 (exclu)
—
NVD
Macos
de 13.0 (inclus) à 13.6.8 (exclu)
—
NVD
Macos
de 14.0 (inclus) à 14.6 (exclu)
—
NVD
Arista (1 ligne(s))
Arista
Produit Versions Corrigé dans Source
Eos
de 4.32.0 (inclus) à 4.32.1f (inclus)
—
NVD
Canonical (5 ligne(s))
Debian (1 ligne(s))
Debian
Produit Versions Corrigé dans Source
Debian linux
12.0
—
NVD
Freebsd (4 ligne(s))
Netapp (28 ligne(s))
Netbsd (1 ligne(s))
Netbsd
Produit Versions Corrigé dans Source
Netbsd
jusqu’à 10.0.0 (inclus)
—
NVD
Openbsd (5 ligne(s))
Sonicwall (6 ligne(s))
Suse (1 ligne(s))
Correctif
Non renseigné par l’éditeur.
Contournement
Contournementsource officielle
The below process can protect against a Remote Code Execution attack by disabling the LoginGraceTime parameter on Red Hat Enterprise Linux 9. However, the sshd server is still vulnerable to a Denial of Service if an attacker exhausts all the connections.
1) As root user, open the /etc/ssh/sshd_config
2) Add or edit the parameter configuration:
~~~
LoginGraceTime 0
~~~
3) Save and close the file
4) Restart the sshd daemon:
~~~
systemctl restart sshd.service
~~~
Setting LoginGraceTime to 0 disables the SSHD server's ability to drop connections if authentication is not completed within the specified timeout. If this mitigation is implemented, it is highly recommended to use a tool like 'fail2ban' alongside a firewall to monitor log files and manage connections appropriately.
If any of the mitigations mentioned above is used, please note that the removal of LoginGraceTime parameter from sshd_config is not automatic when the updated package is installed.
Source : CNA (éditeur ou attributeur)
Savoir si vous êtes touché
Exploit signalé par les sources
Ces liens sont étiquetés « exploit » par le NVD ou par CVE.org. Nous ne les avons pas vérifiés ni copiés ; ouvrez-les avec prudence.
Chronologie
1 juil. 2024 — Avis du CERT-FR (certfr:CERTFR-2024-ALE-009)
1 juil. 2024 — Publication de la CVE (cve)
22 avr. 2025 — Preuve de concept publique observée (exploitdb)
Références
http://www.openwall.com/lists/oss-security/2024/07/03/3 Mailing List, Patch https://github.com/openela-main/openssh/commit/e1f438970e5a337a17070a637c1b9e19697cad09 Patch https://lists.mindrot.org/pipermail/openssh-unix-dev/2024-July/041431.html Mailing List, Patch https://news.ycombinator.com/item?id=40843778 Issue Tracking, Patch https://access.redhat.com/errata/RHSA-2024:4312 Third Party Advisory https://access.redhat.com/errata/RHSA-2024:4340 Third Party Advisory https://access.redhat.com/errata/RHSA-2024:4389 Third Party Advisory https://access.redhat.com/errata/RHSA-2024:4469 Third Party Advisory https://access.redhat.com/errata/RHSA-2024:4474 Third Party Advisory https://access.redhat.com/errata/RHSA-2024:4479 Third Party Advisory https://access.redhat.com/errata/RHSA-2024:4484 Third Party Advisory https://access.redhat.com/security/cve/CVE-2024-6387 Third Party Advisory https://bugzilla.redhat.com/show_bug.cgi?id=2294604 Third Party Advisory https://santandersecurityresearch.github.io/blog/sshing_the_masses.html Exploit, Third Party Advisory https://www.openssh.com/txt/release-9.8 Release Notes, Third Party Advisory https://www.qualys.com/2024/07/01/cve-2024-6387/regresshion.txt Exploit, Third Party Advisory http://seclists.org/fulldisclosure/2024/Jul/18 Mailing List http://seclists.org/fulldisclosure/2024/Jul/19 Mailing List http://seclists.org/fulldisclosure/2024/Jul/20 Mailing List http://www.openwall.com/lists/oss-security/2024/07/01/12 Mailing List http://www.openwall.com/lists/oss-security/2024/07/01/13 Mailing List http://www.openwall.com/lists/oss-security/2024/07/02/1 Mailing List http://www.openwall.com/lists/oss-security/2024/07/03/1 Mailing List http://www.openwall.com/lists/oss-security/2024/07/03/11 Exploit, Mailing List http://www.openwall.com/lists/oss-security/2024/07/03/2 Mailing List http://www.openwall.com/lists/oss-security/2024/07/03/4 Mailing List http://www.openwall.com/lists/oss-security/2024/07/03/5 Mailing List http://www.openwall.com/lists/oss-security/2024/07/04/1 Mailing List http://www.openwall.com/lists/oss-security/2024/07/04/2 Exploit, Mailing List http://www.openwall.com/lists/oss-security/2024/07/08/2 Exploit, Mailing List http://www.openwall.com/lists/oss-security/2024/07/08/3 Mailing List http://www.openwall.com/lists/oss-security/2024/07/09/2 Mailing List http://www.openwall.com/lists/oss-security/2024/07/09/5 Exploit, Mailing List http://www.openwall.com/lists/oss-security/2024/07/10/1 Exploit, Mailing List http://www.openwall.com/lists/oss-security/2024/07/10/2 Mailing List http://www.openwall.com/lists/oss-security/2024/07/10/3 Mailing List http://www.openwall.com/lists/oss-security/2024/07/10/4 Mailing List http://www.openwall.com/lists/oss-security/2024/07/10/6 Mailing List http://www.openwall.com/lists/oss-security/2024/07/11/1 Mailing List http://www.openwall.com/lists/oss-security/2024/07/11/3 Mailing List http://www.openwall.com/lists/oss-security/2024/07/23/4 Mailing List http://www.openwall.com/lists/oss-security/2024/07/23/6 Mailing List http://www.openwall.com/lists/oss-security/2024/07/28/2 Mailing List http://www.openwall.com/lists/oss-security/2024/07/28/3 Mailing List https://archlinux.org/news/the-sshd-service-needs-to-be-restarted-after-upgrading-to-openssh-98p1/ Third Party Advisory https://arstechnica.com/security/2024/07/regresshion-vulnerability-in-openssh-gives-attackers-root-on-linux/ Press/Media Coverage, Third Party Advisory https://blog.qualys.com/vulnerabilities-threat-research/2024/07/01/regresshion-remote-unauthenticated-code-execution-vulnerability-in-openssh-server Press/Media Coverage, Third Party Advisory https://explore.alas.aws.amazon.com/CVE-2024-6387.html Third Party Advisory https://forum.vmssoftware.com/viewtopic.php?f=8&t=9132 Issue Tracking https://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2024-002.txt.asc Release Notes https://github.com/AlmaLinux/updates/issues/629 Issue Tracking https://github.com/Azure/AKS/issues/4379 Issue Tracking https://github.com/PowerShell/Win32-OpenSSH/discussions/2248 Issue Tracking https://github.com/PowerShell/Win32-OpenSSH/issues/2249 Issue Tracking https://github.com/microsoft/azurelinux/issues/9555 Issue Tracking https://github.com/oracle/oracle-linux/issues/149 Issue Tracking https://github.com/rapier1/hpn-ssh/issues/87 Issue Tracking https://github.com/zgzhang/cve-2024-6387-poc Third Party Advisory https://lists.almalinux.org/archives/list/announce@lists.almalinux.org/thread/23BF5BMGFVEVUI2WNVAGMLKT557EU7VY/ Third Party Advisory https://lists.mindrot.org/pipermail/openssh-unix-announce/2024-July/000158.html Mailing List, Release Notes https://packetstorm.news/files/id/190587/ Broken Link https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0010 Third Party Advisory https://security-tracker.debian.org/tracker/CVE-2024-6387 Third Party Advisory https://security.netapp.com/advisory/ntap-20240701-0001/ Third Party Advisory https://sig-security.rocky.page/issues/CVE-2024-6387/ Third Party Advisory https://stackdiary.com/openssh-race-condition-in-sshd-allows-remote-code-execution/ Press/Media Coverage, Third Party Advisory https://support.apple.com/kb/HT214118 Third Party Advisory https://support.apple.com/kb/HT214119 Third Party Advisory https://support.apple.com/kb/HT214120 Third Party Advisory https://ubuntu.com/security/CVE-2024-6387 Third Party Advisory https://ubuntu.com/security/notices/USN-6859-1 Third Party Advisory https://www.akamai.com/blog/security-research/2024-openssh-vulnerability-regression-what-to-know-and-do Third Party Advisory https://www.arista.com/en/support/advisories-notices/security-advisory/19904-security-advisory-0100 Third Party Advisory https://www.exploit-db.com/exploits/52269 Exploit https://www.freebsd.org/security/advisories/FreeBSD-SA-24:04.openssh.asc Third Party Advisory https://www.splunk.com/en_us/blog/security/cve-2024-6387-regresshion-vulnerability.html Third Party Advisory https://www.suse.com/security/cve/CVE-2024-6387.html Third Party Advisory https://www.theregister.com/2024/07/01/regresshion_openssh/ Press/Media Coverage, Third Party Advisory https://www.vicarius.io/vsociety/posts/regresshion-an-openssh-regression-error-cve-2024-6387 Exploit, Third Party Advisory https://cert-portal.siemens.com/productcert/html/ssa-082556.html https://cert-portal.siemens.com/productcert/html/ssa-446545.html
Provenance des données
Statut NVD Date de publication NVD Description CNA (éditeur ou attributeur) Score CVSS NVD Faiblesse (CWE) NVD Vecteur CVSS CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, NVD) Faiblesse CWE-362 · Autre (CWE-362)
Comment sont obtenues et calculées ces données