CVE-2023-53161: Buffered reader Buffered-reader Vulnerable To Out-of-bounds Array Vulnerability

LOW
Advisory Identifier: GHSA-29mf-62xx-28jq
CVSS 2.9
Published
Advisory Summary

CVE-2023-53161 is a LOW (CVSS 2.9) buffered-reader vulnerable to out-of-bounds array vulnerability (General Security Weakness) affecting Buffered reader libraries in the crates.io ecosystem. The issue involves buffered-reader vulnerable to out-of-bounds array access leading to panic. Remediation is available by upgrading affected packages to version 1.0.2, 1.1.5.

CVE-2023-53161 at a Glance

CVE Identifier CVE-2023-53161
GHSA Identifier GHSA-29mf-62xx-28jq
Severity LOW
CVSS v3.1 Base Score 2.9
CWE Classification General Security Weakness
Affected Product Buffered reader
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 2.9

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

Attack Vector Local (AV:L)
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 Low (A:L)

How to Fix CVE-2023-53161

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

buffered-reader fixed: 1.0.2
Upgrade buffered-reader to 1.0.2
buffered-reader fixed: 1.1.5
Upgrade buffered-reader to 1.1.5
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 buffered-reader

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-53161, inspect your project dependencies for Buffered reader:

inspect dependencies for buffered-reader

Analyze the terminal output to locate any version of Buffered reader 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 General Security Weakness. In Buffered reader, 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

Affected versions of the crate have a bug where attacker-controlled input can result in the use of an out-of-bound array index. Rust detects the use of the out-of-bound index and causes the application to panic. An attacker may be able to use this to cause a denial-of-service. However, it is not possible for an attacker to read from or write to the application's address space.

CVE-2023-53161 Affected Buffered reader Versions

2 component(s)
Fixed Versions:
1.0.21.1.5
Product / Package Ecosystem Affected Versions Fixed Version
buffered-reader
crates.io
< 1.0.2
1.0.2
buffered-reader
crates.io
≥ 1.1.0
< 1.1.5
1.1.5

References

Frequently Asked Questions

What is CVE-2023-53161?
CVE-2023-53161 is a security vulnerability in Buffered reader involving buffered-reader vulnerable to out-of-bounds array access leading to panic under General Security Weakness.
Which Buffered reader versions are affected?
Affected versions include releases prior to 1.0.2, 1.1.5 across affected packages: buffered-reader.
What version fixes CVE-2023-53161?
Upgrading to 1.0.2, 1.1.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is buffered-reader affected?
Yes, buffered-reader is affected in releases prior to 1.0.2, 1.1.5. Upgrade your dependency to 1.0.2, 1.1.5 or later.
What is the CVSS score of CVE-2023-53161?
CVE-2023-53161 has a CVSS v3.1 base score of 2.9 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2023-53161?
CVE-2023-53161 is classified under General Security Weakness.
How can I check crates.io dependencies for CVE-2023-53161?
Run the dependency tree command: 'inspect dependencies for buffered-reader'. 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-29mf-62xx-28jq",
  "modified" : "2025-07-28T16:00:34Z",
  "published" : "2023-06-06T01:58:41Z",
  "aliases" : [ "CVE-2023-53161" ],
  "summary" : "buffered-reader vulnerable to out-of-bounds array access leading to panic",
  "details" : "Affected versions of the crate have a bug where attacker-controlled input can result in the use of an out-of-bound array index. Rust\ndetects the use of the out-of-bound index and causes the application to panic.  An attacker may be able to use this to cause a denial-of-service.  However, it is not possible for an attacker to read from or write to the application's address space.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "buffered-reader"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "buffered-reader"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.0"
      }, {
        "fixed" : "1.1.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-53161"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-25mx-8f3v-8wh7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://gitlab.com/sequoia-pgp/sequoia"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.com/sequoia-pgp/sequoia/-/blob/main/buffered-reader/NEWS"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.com/sequoia-pgp/sequoia/-/tags/buffered-reader%2Fv1.0.2"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.com/sequoia-pgp/sequoia/-/tags/buffered-reader%2Fv1.1.5"
  }, {
    "type" : "WEB",
    "url" : "https://lists.sequoia-pgp.org/hyperkitty/list/announce@lists.sequoia-pgp.org/thread/SN2E3QRT4DMQ5JNEK6VIN6DJ5SH766DI"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2023-0039.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-06-06T01:58:41Z",
    "nvd_published_at" : null
  }
}