CVE-2023-3766: Odoh rs Odoh-rs's Invalid Slice Split Results Vulnerability

MODERATE
Advisory Identifier: GHSA-gpcv-p28p-fv2p
CVSS 5.9
CWE-120
Published
Advisory Summary

CVE-2023-3766 is a MODERATE (CVSS 5.9) odoh-rs's invalid slice split results vulnerability (CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')) affecting Odoh rs libraries in the crates.io ecosystem. The issue involves odoh-rs's invalid slice split results in server panic. Remediation is available by upgrading affected packages to version 1.0.2.

CVE-2023-3766 at a Glance

CVE Identifier CVE-2023-3766
GHSA Identifier GHSA-gpcv-p28p-fv2p
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Affected Product Odoh rs
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 5.9

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

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

How to Fix CVE-2023-3766

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

odoh-rs fixed: 1.0.2
Upgrade odoh-rs to 1.0.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 odoh-rs

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-3766, inspect your project dependencies for Odoh rs:

inspect dependencies for odoh-rs

Analyze the terminal output to locate any version of Odoh rs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.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-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'), where the product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer. In Odoh rs, 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

A vulnerability was discovered in the odoh-rs rust crate that stems from faulty logic during the parsing of encrypted queries. This issue specifically occurs when processing encrypted query data received from remote clients. ### Impact An attacker with knowledge of this vulnerability could craft and send specially designed encrypted queries to targeted ODOH servers running with odoh-rs. Upon successful exploitation, the server will crash abruptly, disrupting its normal operation and rendering the service temporarily unavailable. ### Patches Users are encouraged to update their odoh-rs's rust crate to v1.0.2.

CVE-2023-3766 Affected Odoh rs Versions

1 component(s)
Fixed Versions:
1.0.2
Product / Package Ecosystem Affected Versions Fixed Version
odoh-rs
crates.io
< 1.0.2
1.0.2

References

Frequently Asked Questions

What is CVE-2023-3766?
CVE-2023-3766 is a security vulnerability in Odoh rs involving odoh-rs's Invalid Slice Split Results in Server Panic under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow').
Which Odoh rs versions are affected?
Affected versions include releases prior to 1.0.2 across affected packages: odoh-rs.
What version fixes CVE-2023-3766?
Upgrading to 1.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is odoh-rs affected?
Yes, odoh-rs is affected in releases prior to 1.0.2. Upgrade your dependency to 1.0.2 or later.
What is the CVSS score of CVE-2023-3766?
CVE-2023-3766 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2023-3766?
CVE-2023-3766 is classified under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') (The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.).
How can I check crates.io dependencies for CVE-2023-3766?
Run the dependency tree command: 'inspect dependencies for odoh-rs'. 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-gpcv-p28p-fv2p",
  "modified" : "2025-12-22T21:33:35Z",
  "published" : "2023-08-03T16:35:20Z",
  "aliases" : [ "CVE-2023-3766" ],
  "summary" : "odoh-rs's Invalid Slice Split Results in Server Panic",
  "details" : "A vulnerability was discovered in the odoh-rs rust crate that stems from faulty logic during the parsing of encrypted queries. This issue specifically occurs when processing encrypted query data received from remote clients.\n\n### Impact\nAn attacker with knowledge of this vulnerability could craft and send specially designed encrypted queries to targeted ODOH servers running with odoh-rs. Upon successful exploitation, the server will crash abruptly, disrupting its normal operation and rendering the service temporarily unavailable.\n\n### Patches\nUsers are encouraged to update their odoh-rs's rust crate to v1.0.2.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "odoh-rs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cloudflare/odoh-rs/security/advisories/GHSA-gpcv-p28p-fv2p"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-3766"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudflare/odoh-rs/pull/28"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudflare/odoh-rs/commit/c1bc4ed71dcc9842b7dc1ea26f278f105074bbaa"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cloudflare/odoh-rs"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2023-0095.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-120" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-03T16:35:20Z",
    "nvd_published_at" : "2023-08-03T15:15:32Z"
  }
}