CVE-2023-38408: Remote Code Execution in OpenSSH's forwarded ssh-agent

Published Jul 19, 2023
·
Updated

Airport. A permissions issue was addressed with improved redaction of sensitive information.

Other sources

AMD. A buffer overflow issue was addressed with improved memory handling.

Apple

AMD. The issue was addressed with improved memory handling.

Apple

App Store. The issue was addressed with improved handling of protocols.

Apple

Apple Neural Engine. An out-of-bounds read was addressed with improved input validation.

Apple

Apple Neural Engine. The issue was addressed with improved handling of caches.

Apple

Credit

baba yaga, an anonymous researcher, Murray Mike, Csaba Fitzl@@theevilbit(Offensive Security), Mikko Kenttälä )@@Turmio_(SensorFu), Mickey Jin@@patch1t, Yiğit Can YILMAZ@@yilmazcanyigit, Certik Skyfall Team, Certik Skyfall Team(Ant Security Light), (Ant Security Light), pattern-f@@pattern_F_(Ant Security Light), Zweig(Kunlun Lab), Linus Henze(Pinauten GmbH), Pan ZhenPeng@@Peterpan0927(STAR Labs SG Pte), Michael (Biscuit) Thomas, 张师傅(@京东蓝军), Joseph Ravichandran@@0xjprx(MIT CSAIL), Ferdous Saljooki@@malwarezoo(Jamf Software), Sei K., Zhipeng Huo@@R3dF09(Tencent Security Xuanwu Lab), Dohyun Lee@@l33d0hyun(PK Security), Adam M.(SecuRing), (SecuRing), Wojciech Regula(SecuRing), Adam M.(BreakPoint Security Research), (BreakPoint Security Research), Ron Masas(BreakPoint Security Research), Meng Zhang (鲸落)(NorthSea), Brian McNulty(Texts), (Texts), Kishan Bagaria(Texts), Michael DePlante@@izobashi(Trend Micro Zero Day Initiative), Gergely Kalman@@gergely_kalman, Kirin@@Pwnrin, weize she, Berke Kırbaş, Harsh Jaiswal, Serkan Erayabakan(George Mason University), David Kotval(George Mason University), Akincibor(George Mason University), Sina Ahmadi(George Mason University), Billy Tabrizi, Kirin@@Pwnrin(SecuRing), Tomi Tokics@@tomitokics(iTomsn0w), Luan Herrera@@lbherrera_, Adriatik Raci(Sentry Cybersecurity), Narendra Bhati (twitter.com/imnarendrabhati)(Suma Soft Pvt), Pune (India), Noah Roskin-Frazee (ZeroClicks.ai Lab), James Duffy (mangoSecure), Ron Masas(BreakPoint), James Hutchins, Thijs Alkemade@@xnyhps(Computest Sector 7), Andrew Haggard, Brian McNulty(Offensive Security), Arsenii Kostromin (0x3c3e)(Offensive Security), Joshua Jewett@@JoshJewett33(Offensive Security), (Offensive Security), Francisco Alonso@@revskills(PK Security), (PK Security), Francisco Alonso@@revskills, 이준성(Junsung Lee)(Cross Republic), Jie Ding@@Lime(HKUS3 Lab), Dong Jun Kim@@smlijun(AbyssLab), Jong Seong Kim@@nevul37(AbyssLab), zhunki, 이준성(Junsung Lee), Bill Marczak(The Citizen Lab at The University of Toronto's Munk School), Maddie Stone(Google's Threat Analysis Group), Claire Houston, Anonymous, (AbyssLab), Wang Yu(Cyberserval), An anonymous researcher(MacEnhance), Jeremy Legendre(MacEnhance), Felix Kratz, Koh M. Nakagawa@@tsunek0h, Noah Roskin-Frazee, Professor Jason Lau (ZeroClicks.ai Lab), Noah Roskin-Frazee(Offensive Security), Pr(Offensive Security), Antonio Zekic@@antoniozekic(Dataflow Security), Ron Masas(Imperva), Yishu Wang, Will Brattain at Trail(Bits), Cristian Dinca(Computer Science), Romania, JeongOhKyea(Theori), Kirin@@Pwnrin(NorthSea), Halle Winkler, Politepix@@hallewinkler, Wojciech Reguła@@_r3ggi, Chris Ross (Zoom), zer0k, Adam M., ABC Research s.r.o., w0wbox, Mohamed GHANNAM@@_simo36, Tim Michaud@@TimGMichaud(Moveworks)

Affected Software

17 affected componentsFixes available
ubuntu/openssh<9.3
9.3
ubuntu/openssh<1:8.2
1:8.2
ubuntu/openssh<1:8.9
1:8.9
ubuntu/openssh<1:9.0
1:9.0
ubuntu/openssh<1:7.6
1:7.6
ubuntu/openssh<1:6.6
1:6.6
ubuntu/openssh<1:7.2
1:7.2
ubuntu/openssh<1:9.3
1:9.3
debian/openssh<=1:7.9p1-10+deb10u2
1:7.9p1-10+deb10u41:8.4p1-5+deb11u31:9.2p1-2+deb12u21:9.6p1-41:9.6p1-5
Apple macOS Sonoma<14
14
OpenBSD OpenSSH<9.3
OpenBSD OpenSSH=9.3
OpenBSD OpenSSH=9.3-p1
Fedoraproject Fedora=37
Fedoraproject Fedora=38
IBM Security Verify Governance, Identity Manager software component<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager virtual appliance component<=ISVG 10.0.2

Event History

Jul 19, 2023
CVE Published
via Ubuntu·12:00 AM
Jul 20, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
03:15 AM
Description
Data Sourced
via Red Hat·06:12 AM
DescriptionSeverityAffected Software
Sep 26, 2023
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
DescriptionWeakness
Updated
via Apple·12:00 AM
Weakness
Updated
via Apple·12:00 AM
Description
Jan 12, 2024
Data Sourced
via Launchpad·12:22 AM
Description
Nov 26, 2024
News Published
via The Register·10:29 AM
News Published
via The Register·10:32 AM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-38408?

CVE-2023-38408 is a vulnerability in OpenSSH that allows for remote code execution if an agent is forwarded to an attacker-controlled system.

2

What is the severity of CVE-2023-38408?

CVE-2023-38408 has a severity rating of 9.8, which is considered critical.

3

How does CVE-2023-38408 affect OpenSSH versions?

CVE-2023-38408 affects OpenSSH versions before 9.3p2.

4

How can I fix CVE-2023-38408?

To fix CVE-2023-38408, update OpenSSH to version 9.3p2 or later.

5

Where can I find more information about CVE-2023-38408?

You can find more information about CVE-2023-38408 in the references provided: [link1](https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8), [link2](https://www.openssh.com/txt/release-9.3p2), [link3](https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203