CVE-2023-43809: Github.com/charmbracelet/soft serve Authentication Bypass Vulnerability
HIGHCVE-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
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).
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.
Upgrade github.com/charmbracelet/soft-serve to 0.6.2
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
CVE-2023-43809 Affected Github.com/charmbracelet/soft serve Versions
1 component(s)| 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?
Which Github.com/charmbracelet/soft serve versions are affected?
What version fixes CVE-2023-43809?
Is github.com/charmbracelet/soft-serve affected?
What is the CVSS score of CVE-2023-43809?
What CWE is associated with CVE-2023-43809?
How can I check Go dependencies for CVE-2023-43809?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}