VDB
Sign up
MEDIUM5.3

GHSA-5pr6-crvp-2j9f

Open Chinese Convert has Out-of-bounds Write

Quick fix

GHSA-5pr6-crvp-2j9f — opencc: upgrade to the fixed version with the command below.

npm install opencc@1.2.0

Details

A weakness has been identified in BYVoid OpenCC up to 1.1.9. This vulnerability affects the function opencc::MaxMatchSegmentation of the file src/MaxMatchSegmentation.cpp. This manipulation causes heap-based buffer overflow. The attack is restricted to local execution. The exploit has been made available to the public and could be used for attacks. Patch name: 345c9a50ab07018f1b4439776bad78a0d40778ec. To fix this issue, it is recommended to deploy a patch.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/opencc
Introduced in: 0Fixed in: 1.2.0
Fixnpm install opencc@1.2.0

References