CVE-2023-38688: Twitch tui Twitch-tui's Connection Is Not Encrypted Vulnerability

HIGH
Advisory Identifier: GHSA-779w-xvpm-78jx
CVSS 7.5
CWE-311
Published
Advisory Summary

CVE-2023-38688 is a HIGH (CVSS 7.5) twitch-tui's connection is not encrypted vulnerability (CWE-311: Missing Encryption of Sensitive Data) affecting Twitch tui libraries in the crates.io ecosystem. The issue involves twitch-tui's connection is not encrypted. Remediation is available by upgrading affected packages to version 2.4.1.

CVE-2023-38688 at a Glance

CVE Identifier CVE-2023-38688
GHSA Identifier GHSA-779w-xvpm-78jx
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-311: Missing Encryption of Sensitive Data
Affected Product Twitch tui
Package Ecosystem crates.io
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:H/I:N/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 High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-38688

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

twitch-tui fixed: 2.4.1
Upgrade twitch-tui to 2.4.1
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 twitch-tui

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-38688, inspect your project dependencies for Twitch tui:

inspect dependencies for twitch-tui

Analyze the terminal output to locate any version of Twitch tui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.1), 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-311: Missing Encryption of Sensitive Data, where the product does not encrypt sensitive or critical information before storage or transmission. In Twitch tui, 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

### Summary The connection is not using TLS for communication ### Details In the configuration of the irc connection, [you are disabling tls](https://github.com/Xithrius/twitch-tui/blob/340afc3c8c07a83289fe6ef614aa7563c8b70756/src/twitch/connection.rs#L23) which makes all communication to twitch irc servers unencrypted. ### PoC You can verify by using tcpdump/wireshark that traffic is unencrypted. ### Impact Communication can be sniffed, even auth tokens.

CVE-2023-38688 Affected Twitch tui Versions

1 component(s)
Fixed Versions:
2.4.1
Product / Package Ecosystem Affected Versions Fixed Version
twitch-tui
crates.io
< 2.4.1
2.4.1

References

Frequently Asked Questions

What is CVE-2023-38688?
CVE-2023-38688 is a security vulnerability in Twitch tui involving twitch-tui's connection is not encrypted under CWE-311: Missing Encryption of Sensitive Data.
Which Twitch tui versions are affected?
Affected versions include releases prior to 2.4.1 across affected packages: twitch-tui.
What version fixes CVE-2023-38688?
Upgrading to 2.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is twitch-tui affected?
Yes, twitch-tui is affected in releases prior to 2.4.1. Upgrade your dependency to 2.4.1 or later.
What is the CVSS score of CVE-2023-38688?
CVE-2023-38688 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:H/I:N/A:N.
What CWE is associated with CVE-2023-38688?
CVE-2023-38688 is classified under CWE-311: Missing Encryption of Sensitive Data (The product does not encrypt sensitive or critical information before storage or transmission.).
How can I check crates.io dependencies for CVE-2023-38688?
Run the dependency tree command: 'inspect dependencies for twitch-tui'. 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-779w-xvpm-78jx",
  "modified" : "2023-08-04T18:41:22Z",
  "published" : "2023-07-31T22:02:54Z",
  "aliases" : [ "CVE-2023-38688" ],
  "summary" : "twitch-tui's connection is not encrypted",
  "details" : "### Summary\nThe connection is not using TLS for communication\n\n### Details\nIn the configuration of the irc connection, [you are disabling tls](https://github.com/Xithrius/twitch-tui/blob/340afc3c8c07a83289fe6ef614aa7563c8b70756/src/twitch/connection.rs#L23) which makes all communication to twitch irc servers unencrypted.\n\n### PoC\nYou can verify by using tcpdump/wireshark that traffic is unencrypted.\n\n### Impact\nCommunication can be sniffed, even auth tokens.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "twitch-tui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Xithrius/twitch-tui/security/advisories/GHSA-779w-xvpm-78jx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-38688"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Xithrius/twitch-tui/commit/74d13ddca35f8f0816f4933c229da1fd95c0350a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Xithrius/twitch-tui"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Xithrius/twitch-tui/blob/340afc3c8c07a83289fe6ef614aa7563c8b70756/src/twitch/connection.rs#L23"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-311" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-31T22:02:54Z",
    "nvd_published_at" : "2023-08-04T17:15:10Z"
  }
}