{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Moderate"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright © Red Hat, Inc. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-1000657.json"
      }
    ],
    "title": "rust: Buffer Overflow vulnerability in std::collections::vec_deque::VecDeque::reserve() function",
    "tracking": {
      "current_release_date": "2026-11-23T16:46:15+00:00",
      "generator": {
        "date": "2026-11-23T16:46:15+00:00",
        "engine": {
          "name": "Red Hat SDEngine",
          "version": "5.4.8"
        }
      },
      "id": "CVE-2018-1000657",
      "initial_release_date": "2018-08-24T00:00:00+00:00",
      "revision_history": [
        {
          "date": "2018-08-24T00:00:00+00:00",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2026-03-18T11:18:19+00:00",
          "number": "2",
          "summary": "Current version"
        },
        {
          "date": "2026-11-23T16:46:15+00:00",
          "number": "3",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "3"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 8",
                "product": {
                  "name": "Red Hat Enterprise Linux 8",
                  "product_id": "red_hat_enterprise_linux_8",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:8"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 8"
          },
          {
            "category": "product_version",
            "name": "rust-lldb",
            "product": {
              "name": "rust-lldb",
              "product_id": "rust-lldb",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust-lldb"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust-toolset",
            "product": {
              "name": "rust-toolset",
              "product_id": "rust-toolset",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust-toolset"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust-toolset.src",
            "product": {
              "name": "rust-toolset.src",
              "product_id": "rust-toolset.src",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust-toolset?arch=src"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust-analyzer",
            "product": {
              "name": "rust-analyzer",
              "product_id": "rust-analyzer",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust-analyzer"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust-analysis",
            "product": {
              "name": "rust-analysis",
              "product_id": "rust-analysis",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust-analysis"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust-std-static-wasm32-wasi",
            "product": {
              "name": "rust-std-static-wasm32-wasi",
              "product_id": "rust-std-static-wasm32-wasi",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust-std-static-wasm32-wasi"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust-doc",
            "product": {
              "name": "rust-doc",
              "product_id": "rust-doc",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust-doc"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust-std-static",
            "product": {
              "name": "rust-std-static",
              "product_id": "rust-std-static",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust-std-static"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust-debugger-common",
            "product": {
              "name": "rust-debugger-common",
              "product_id": "rust-debugger-common",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust-debugger-common"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust-src",
            "product": {
              "name": "rust-src",
              "product_id": "rust-src",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust-src"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust-gdb",
            "product": {
              "name": "rust-gdb",
              "product_id": "rust-gdb",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust-gdb"
              }
            }
          },
          {
            "category": "product_version",
            "name": "cargo-doc",
            "product": {
              "name": "cargo-doc",
              "product_id": "cargo-doc",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/cargo-doc"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rls",
            "product": {
              "name": "rls",
              "product_id": "rls",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rls"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust-std-static-wasm32-unknown-unknown",
            "product": {
              "name": "rust-std-static-wasm32-unknown-unknown",
              "product_id": "rust-std-static-wasm32-unknown-unknown",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust-std-static-wasm32-unknown-unknown"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust",
            "product": {
              "name": "rust",
              "product_id": "rust",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust"
              }
            }
          },
          {
            "category": "product_version",
            "name": "clippy",
            "product": {
              "name": "clippy",
              "product_id": "clippy",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/clippy"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rust.src",
            "product": {
              "name": "rust.src",
              "product_id": "rust.src",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rust?arch=src"
              }
            }
          },
          {
            "category": "product_version",
            "name": "cargo",
            "product": {
              "name": "cargo",
              "product_id": "cargo",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/cargo"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rustfmt",
            "product": {
              "name": "rustfmt",
              "product_id": "rustfmt",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/rustfmt"
              }
            }
          }
        ],
        "category": "vendor",
        "name": "Red Hat"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cargo as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:cargo"
        },
        "product_reference": "cargo",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cargo-doc as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:cargo-doc"
        },
        "product_reference": "cargo-doc",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "clippy as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:clippy"
        },
        "product_reference": "clippy",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rls as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rls"
        },
        "product_reference": "rls",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust"
        },
        "product_reference": "rust",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust-analysis as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust-analysis"
        },
        "product_reference": "rust-analysis",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust-analyzer as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust-analyzer"
        },
        "product_reference": "rust-analyzer",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust-debugger-common as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust-debugger-common"
        },
        "product_reference": "rust-debugger-common",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust-doc as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust-doc"
        },
        "product_reference": "rust-doc",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust-gdb as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust-gdb"
        },
        "product_reference": "rust-gdb",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust-lldb as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust-lldb"
        },
        "product_reference": "rust-lldb",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust-src as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust-src"
        },
        "product_reference": "rust-src",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust-std-static as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust-std-static"
        },
        "product_reference": "rust-std-static",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust-std-static-wasm32-unknown-unknown as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust-std-static-wasm32-unknown-unknown"
        },
        "product_reference": "rust-std-static-wasm32-unknown-unknown",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust-std-static-wasm32-wasi as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust-std-static-wasm32-wasi"
        },
        "product_reference": "rust-std-static-wasm32-wasi",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust-toolset as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust-toolset"
        },
        "product_reference": "rust-toolset",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust-toolset.src as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust-toolset.src"
        },
        "product_reference": "rust-toolset.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust.src as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rust.src"
        },
        "product_reference": "rust.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rustfmt as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:rustfmt"
        },
        "product_reference": "rustfmt",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2018-1000657",
      "cwe": {
        "id": "CWE-119",
        "name": "Improper Restriction of Operations within the Bounds of a Memory Buffer"
      },
      "discovery_date": "2018-08-24T00:00:00+00:00",
      "flags": [
        {
          "label": "vulnerable_code_not_present",
          "product_ids": [
            "red_hat_enterprise_linux_8:cargo",
            "red_hat_enterprise_linux_8:cargo-doc",
            "red_hat_enterprise_linux_8:clippy",
            "red_hat_enterprise_linux_8:rls",
            "red_hat_enterprise_linux_8:rust",
            "red_hat_enterprise_linux_8:rust-analysis",
            "red_hat_enterprise_linux_8:rust-analyzer",
            "red_hat_enterprise_linux_8:rust-debugger-common",
            "red_hat_enterprise_linux_8:rust-doc",
            "red_hat_enterprise_linux_8:rust-gdb",
            "red_hat_enterprise_linux_8:rust-lldb",
            "red_hat_enterprise_linux_8:rust-src",
            "red_hat_enterprise_linux_8:rust-std-static",
            "red_hat_enterprise_linux_8:rust-std-static-wasm32-unknown-unknown",
            "red_hat_enterprise_linux_8:rust-std-static-wasm32-wasi",
            "red_hat_enterprise_linux_8:rust-toolset",
            "red_hat_enterprise_linux_8:rust-toolset.src",
            "red_hat_enterprise_linux_8:rust.src",
            "red_hat_enterprise_linux_8:rustfmt"
          ]
        }
      ],
      "ids": [
        {
          "system_name": "Red Hat Bugzilla ID",
          "text": "1622249"
        }
      ],
      "notes": [
        {
          "category": "description",
          "text": "Rust Programming Language Rust standard library version Commit bfa0e1f58acf1c28d500c34ed258f09ae021893e and later; stable release 1.3.0 and later contains a Buffer Overflow vulnerability in std::collections::vec_deque::VecDeque::reserve() function that can result in Arbitrary code execution, but no proof-of-concept exploit is currently published.. This vulnerability appears to have been fixed in after commit fdfafb510b1a38f727e920dccbeeb638d39a8e60; stable release 1.22.0 and later.",
          "title": "Vulnerability description"
        },
        {
          "category": "summary",
          "text": "rust: Buffer Overflow vulnerability in std::collections::vec_deque::VecDeque::reserve() function",
          "title": "Vulnerability summary"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "known_not_affected": [
          "red_hat_enterprise_linux_8:cargo",
          "red_hat_enterprise_linux_8:cargo-doc",
          "red_hat_enterprise_linux_8:clippy",
          "red_hat_enterprise_linux_8:rls",
          "red_hat_enterprise_linux_8:rust",
          "red_hat_enterprise_linux_8:rust-analysis",
          "red_hat_enterprise_linux_8:rust-analyzer",
          "red_hat_enterprise_linux_8:rust-debugger-common",
          "red_hat_enterprise_linux_8:rust-doc",
          "red_hat_enterprise_linux_8:rust-gdb",
          "red_hat_enterprise_linux_8:rust-lldb",
          "red_hat_enterprise_linux_8:rust-src",
          "red_hat_enterprise_linux_8:rust-std-static",
          "red_hat_enterprise_linux_8:rust-std-static-wasm32-unknown-unknown",
          "red_hat_enterprise_linux_8:rust-std-static-wasm32-wasi",
          "red_hat_enterprise_linux_8:rust-toolset",
          "red_hat_enterprise_linux_8:rust-toolset.src",
          "red_hat_enterprise_linux_8:rust.src",
          "red_hat_enterprise_linux_8:rustfmt"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2018-1000657"
        },
        {
          "category": "external",
          "summary": "RHBZ#1622249",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1622249"
        },
        {
          "category": "external",
          "summary": "https://www.cve.org/CVERecord?id=CVE-2018-1000657",
          "url": "https://www.cve.org/CVERecord?id=CVE-2018-1000657"
        },
        {
          "category": "external",
          "summary": "https://nvd.nist.gov/vuln/detail/CVE-2018-1000657",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-1000657"
        }
      ],
      "release_date": "2018-08-24T00:00:00+00:00",
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "HIGH",
            "attackVector": "LOCAL",
            "availabilityImpact": "HIGH",
            "baseScore": 7.4,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.0"
          },
          "products": [
            "red_hat_enterprise_linux_8:cargo",
            "red_hat_enterprise_linux_8:cargo-doc",
            "red_hat_enterprise_linux_8:clippy",
            "red_hat_enterprise_linux_8:rls",
            "red_hat_enterprise_linux_8:rust",
            "red_hat_enterprise_linux_8:rust-analysis",
            "red_hat_enterprise_linux_8:rust-analyzer",
            "red_hat_enterprise_linux_8:rust-debugger-common",
            "red_hat_enterprise_linux_8:rust-doc",
            "red_hat_enterprise_linux_8:rust-gdb",
            "red_hat_enterprise_linux_8:rust-lldb",
            "red_hat_enterprise_linux_8:rust-src",
            "red_hat_enterprise_linux_8:rust-std-static",
            "red_hat_enterprise_linux_8:rust-std-static-wasm32-unknown-unknown",
            "red_hat_enterprise_linux_8:rust-std-static-wasm32-wasi",
            "red_hat_enterprise_linux_8:rust-toolset",
            "red_hat_enterprise_linux_8:rust-toolset.src",
            "red_hat_enterprise_linux_8:rust.src",
            "red_hat_enterprise_linux_8:rustfmt"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate",
          "product_ids": [
            "red_hat_enterprise_linux_8:cargo",
            "red_hat_enterprise_linux_8:cargo-doc",
            "red_hat_enterprise_linux_8:clippy",
            "red_hat_enterprise_linux_8:rls",
            "red_hat_enterprise_linux_8:rust",
            "red_hat_enterprise_linux_8:rust-analysis",
            "red_hat_enterprise_linux_8:rust-analyzer",
            "red_hat_enterprise_linux_8:rust-debugger-common",
            "red_hat_enterprise_linux_8:rust-doc",
            "red_hat_enterprise_linux_8:rust-gdb",
            "red_hat_enterprise_linux_8:rust-lldb",
            "red_hat_enterprise_linux_8:rust-src",
            "red_hat_enterprise_linux_8:rust-std-static",
            "red_hat_enterprise_linux_8:rust-std-static-wasm32-unknown-unknown",
            "red_hat_enterprise_linux_8:rust-std-static-wasm32-wasi",
            "red_hat_enterprise_linux_8:rust-toolset",
            "red_hat_enterprise_linux_8:rust-toolset.src",
            "red_hat_enterprise_linux_8:rust.src",
            "red_hat_enterprise_linux_8:rustfmt"
          ]
        }
      ],
      "title": "rust: Buffer Overflow vulnerability in std::collections::vec_deque::VecDeque::reserve() function"
    }
  ]
}