Vulnerability library
Security checkMarch 29, 2026

OpenCC has an Out-of-bounds read when processing truncated UTF-8 input

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmopencc

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

OpenCC versions before 1.2.0 contain two CWE-125: Out-of-bounds Read issues caused by length validation failures in UTF-8 processing. When handling malformed or truncated UTF-8 input, OpenCC trusted derived length values without enforcing the invariant that processed length must not exceed the remaining input buffer.

Recommendation

Update the opencc package to the latest compatible version. Followings are version details:

  • Affected version(s): < 1.2.0
  • Patched version(s): 1.2.0

References

Could your website be exposed too?

SmartScanner can check your website for OpenCC has an Out-of-bounds read when processing truncated UTF-8 input and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 29, 2026