CVE-2020-24359: Improper Input Validation in vault-ssh-helper

Summary

15/02/2022
Yes i
High
7.5

CVE-2020-24359: Improper Input Validation in vault-ssh-helper. Affects github.com/hashicorp/vault-ssh-helper versions < 0.2.0. Fixed in 0.2.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The vault-ssh-helper package is a component of HashiCorp Vault, a tool for securely accessing secrets. The vault-ssh-helper is responsible for generating and validating SSH OTPs (One-Time Passwords) issued by Vault. These OTPs are used for authentication and authorization purposes when accessing SSH servers. The package is written in Go and is an essential part of the Vault ecosystem.

Vulnerability Detail

The vulnerability (CVE-2020-24359) in vault-ssh-helper up to and including version 0.1.6 arises from improper input validation. Specifically, the package incorrectly accepts Vault-issued SSH OTPs for the subnet in which a host's network interface is located, rather than the specific IP address assigned to that interface. This flaw can lead to unauthorized access to SSH servers and potential privilege escalation. The vulnerability has a CVSS score of 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

0.2.0

This is the first release that contains the fix.

go get github.com/hashicorp/vault-ssh-helper@v0.2.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of the package to ensure proper input validation and mitigate the risk of unauthorized access.

Conclusion

The vulnerability (CVE-2020-24359) in the vault-ssh-helper package allows for unauthorized access to SSH servers and potential privilege escalation. It is crucial to upgrade to version 0.2.0 or later of the package to fix this vulnerability. No known workarounds exist, and it is recommended to use the Vulert Playground to check if your application is affected. For additional support, reach out to DevNack.com.

See every vulnerability recorded for github.com/hashicorp/vault-ssh-helper →

Share this vulnerability

FAQ

The vulnerability allows for unauthorized access to SSH servers and potential privilege escalation.

Versions up to and including 0.1.6 are affected.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your Gopkg.lock file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

There are no known public exploits for this vulnerability at the time of this report. However, it is crucial to patch the vulnerability to prevent any potential exploitation.

For further support on vulnerability remediation, you can contact info@devnack.com. They can provide guidance and assistance in addressing this vulnerability.

How To Fix

Minimum fixed version

0.2.0

This is the first release that contains the fix.

go get github.com/hashicorp/vault-ssh-helper@v0.2.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback