CVE-2023-43809: Github.com/charmbracelet/soft serve Authentication Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-mc97-99j4-vm2v
CVSS 7.5
CWE-287
Published
Advisory Summary

CVE-2023-43809 is a HIGH (CVSS 7.5) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Github.com/charmbracelet/soft serve libraries in the Go ecosystem. The issue involves soft serve public key authentication bypass vulnerability when keyboard-interactive ssh authentication is enabled. Remediation is available by upgrading affected packages to version 0.6.2.

CVE-2023-43809 at a Glance

CVE Identifier CVE-2023-43809
GHSA Identifier GHSA-mc97-99j4-vm2v
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-287: Improper Authentication
Affected Product Github.com/charmbracelet/soft serve
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2023-43809

To remediate this vulnerability, upgrade all affected Github.com/charmbracelet/soft serve dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/charmbracelet/soft-serve fixed: 0.6.2
Upgrade github.com/charmbracelet/soft-serve to 0.6.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/charmbracelet/soft-serve

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-43809, inspect your project dependencies for Github.com/charmbracelet/soft serve:

inspect dependencies for github.com/charmbracelet/soft-serve

Analyze the terminal output to locate any version of Github.com/charmbracelet/soft serve in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Github.com/charmbracelet/soft serve, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A security vulnerability in Soft Serve could allow an unauthenticated, remote attacker to bypass public key authentication when keyboard-interactive SSH authentication is active, through the `allow-keyless` setting, and the public key requires additional client-side verification for example using FIDO2 or GPG. This is due to insufficient validation procedures of the public key step during SSH request handshake, granting unauthorized access if the keyboard-interaction mode is utilized. An attacker could exploit this vulnerability by presenting manipulated SSH requests using keyboard-interactive authentication mode. This could potentially result in unauthorized access to the Soft Serve. ### Patches Users should upgrade to the latest Soft Serve version `v0.6.2` to receive the patch for this issue. ### Workarounds To workaround this vulnerability without upgrading, users can _temporarily_ disable Keyboard-Interactive SSH Authentication using the `allow-keyless` setting. ### References https://github.com/charmbracelet/soft-serve/issues/389

CVE-2023-43809 Affected Github.com/charmbracelet/soft serve Versions

1 component(s)
Fixed Versions:
0.6.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/charmbracelet/soft-serve
Go
< 0.6.2
0.6.2

References

Frequently Asked Questions

What is CVE-2023-43809?
CVE-2023-43809 is a security vulnerability in Github.com/charmbracelet/soft serve involving Soft Serve Public Key Authentication Bypass Vulnerability when Keyboard-Interactive SSH Authentication is Enabled under CWE-287: Improper Authentication.
Which Github.com/charmbracelet/soft serve versions are affected?
Affected versions include releases prior to 0.6.2 across affected packages: github.com/charmbracelet/soft-serve.
What version fixes CVE-2023-43809?
Upgrading to 0.6.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/charmbracelet/soft-serve affected?
Yes, github.com/charmbracelet/soft-serve is affected in releases prior to 0.6.2. Upgrade your dependency to 0.6.2 or later.
What is the CVSS score of CVE-2023-43809?
CVE-2023-43809 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2023-43809?
CVE-2023-43809 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Go dependencies for CVE-2023-43809?
Run the dependency tree command: 'inspect dependencies for github.com/charmbracelet/soft-serve'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mc97-99j4-vm2v",
  "modified" : "2023-10-04T22:13:08Z",
  "published" : "2023-10-02T23:30:39Z",
  "aliases" : [ "CVE-2023-43809" ],
  "summary" : "Soft Serve Public Key Authentication Bypass Vulnerability when Keyboard-Interactive SSH Authentication is Enabled",
  "details" : "### Impact\n\nA security vulnerability in Soft Serve could allow an unauthenticated, remote attacker to bypass public key authentication when keyboard-interactive SSH authentication is active, through the `allow-keyless` setting, and the public key requires additional client-side verification for example using FIDO2 or GPG. This is due to insufficient validation procedures of the public key step during SSH request handshake, granting unauthorized access if the keyboard-interaction mode is utilized. An attacker could exploit this vulnerability by presenting manipulated SSH requests using keyboard-interactive authentication mode. This could potentially result in unauthorized access to the Soft Serve.\n\n### Patches\n\nUsers should upgrade to the latest Soft Serve version `v0.6.2` to receive the patch for this issue. \n\n### Workarounds\n\nTo workaround this vulnerability without upgrading, users can _temporarily_ disable Keyboard-Interactive SSH Authentication using the `allow-keyless` setting.\n\n### References\n\nhttps://github.com/charmbracelet/soft-serve/issues/389",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/charmbracelet/soft-serve"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/charmbracelet/soft-serve/security/advisories/GHSA-mc97-99j4-vm2v"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-43809"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/charmbracelet/soft-serve/issues/389"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/charmbracelet/soft-serve/commit/407c4ec72d1006cee1ff8c1775e5bcc091c2bc89"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/charmbracelet/soft-serve"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/charmbracelet/soft-serve/releases/tag/v0.6.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-02T23:30:39Z",
    "nvd_published_at" : "2023-10-04T21:15:10Z"
  }
}