CVE-2023-53158: OS Command Injection

Published Sep 25, 2023
·
Updated

The gix-transport crate prior to the patched version 0.36.1 would allow attackers to use malicious ssh clone URLs to pass arbitrary arguments to the ssh program, leading to arbitrary code execution.

PoC: gix clone 'ssh://-oProxyCommand=open$IFS-aCalculator/foo'

This will launch a calculator on OSX.

See https://secure.phabricator.com/T12961 for more details on similar vulnerabilities in git.

Thanks for vin01 for disclosing this issue.

Other sources

The gix-transport crate before 0.36.1 for Rust allows command execution via the "gix clone 'ssh://-oProxyCommand=open$IFS" substring. NOTE: this was discovered before CVE-2024-32884, a similar vulnerability (involving a username field) that is more difficult to exploit.

MITRE

Affected Software

4 affected componentsFixes available
Rust gix-transport<0.36.1
rust/gix-transport<0.36.1
0.36.1
Microsoft cbl2 rust 1.72.0-10
Microsoft cbl2 rust 1.72.0-10

Event History

Sep 25, 2023
Advisory Published
via GitHub·08:21 PM
Data Sourced
via GitHub·08:21 PM
DescriptionSeverityWeaknessAffected Software
Jul 28, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 AM
DescriptionSeverityWeakness
Sep 4, 2025
Data Sourced
via Microsoft·10:13 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·10:13 AM
Affected Software
Updated
via Microsoft·10:13 AM
Description
Updated
via Microsoft·10:13 AM
DescriptionSeverity
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 the severity of CVE-2023-53158?

CVE-2023-53158 has a high severity as it allows for command execution via specially crafted SSH commands.

2

How do I fix CVE-2023-53158?

To fix CVE-2023-53158, update the gix-transport crate to version 0.36.1 or later.

3

What versions of gix-transport are affected by CVE-2023-53158?

CVE-2023-53158 affects gix-transport versions prior to 0.36.1.

4

Can CVE-2023-53158 be exploited remotely?

Yes, CVE-2023-53158 can potentially be exploited remotely through malicious SSH commands.

5

Is CVE-2023-53158 similar to other vulnerabilities?

Yes, CVE-2023-53158 is similar to CVE-2024-32884, but it is less complex to exploit.

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