Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. opencc
  4. ›
  5. CVE-2018-16982

CVE-2018-16982: Open Chinese Convert subject to Denial of Service via Out-of-bounds Read

May 14, 2022 (updated November 22, 2024)

Open Chinese Convert (OpenCC) 1.0.5 allows attackers to cause a denial of service (segmentation fault) because BinaryDict::NewFromFile in BinaryDict.cpp may have out-of-bounds keyOffset and valueOffset values via a crafted .ocd file.

References

  • github.com/BYVoid/OpenCC
  • github.com/BYVoid/OpenCC/commit/4a4f9e58e505fca93605f22363c133df66a91a5e
  • github.com/BYVoid/OpenCC/issues/303
  • github.com/BYVoid/OpenCC/pull/309
  • github.com/BYVoid/OpenCC/pull/560
  • github.com/BYVoid/OpenCC/pull/560/commits/e1b8c7949738100e4747dd4109ef1f16e1bd99c4
  • github.com/advisories/GHSA-9qh2-6fxg-9m4g
  • github.com/pypa/advisory-database/tree/main/vulns/opencc-py/PYSEC-2018-153.yaml
  • nvd.nist.gov/vuln/detail/CVE-2018-16982

Code Behaviors & Features

Detect and mitigate CVE-2018-16982 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.1.2

Fixed versions

  • 1.1.2

Solution

Upgrade to version 1.1.2 or above.

Impact 5.5 MEDIUM

CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read

Source file

npm/opencc/CVE-2018-16982.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:12 +0000.