CVE-2025-15536BYVoid OpenCC MaxMatchSegmentation.cpp MaxMatchSegmentation heap-based overflow
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.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu, npm: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | opencc | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | opencc | Fixed | 1.1.9+ds1-2ubuntu0.1 | UBUNTU-CVE-2025-15536 |
| Ubuntu 24.04 | opencc | Fixed | 1.1.7+ds1-1ubuntu0.1 | UBUNTU-CVE-2025-15536 |
| Ubuntu 22.04 | opencc | Fixed | 1.1.3+ds1-3ubuntu3.1 | UBUNTU-CVE-2025-15536 |
| Ubuntu 20.04 | opencc | Fix pending | 1.0.5+git20190530-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-15536 |
| Ubuntu 18.04 | opencc | Fix pending | 1.0.4-5ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-15536 |
| Ubuntu 16.04 | opencc | Fix pending | UBUNTU-CVE-2025-15536 | |
| Debian 14 | opencc | Fixed | 1.1.9+ds1-4 | DEBIAN-CVE-2025-15536 |
| Debian 13 | opencc | Fixed | 1.1.9+ds1-1+deb13u1 | DEBIAN-CVE-2025-15536 |
| Debian 12 | opencc | Fix pending | DEBIAN-CVE-2025-15536 | |
| Red Hat Enterprise Linux 7 | opencc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | opencc-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | opencc-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | opencc-tools | Fix pending Fix deferred | ||
| Alpine Linux 3.24 | opencc | Fixed | 1.2.0-r0 | ALPINE-CVE-2025-15536 |
| npm library | opencc | Fixed | 1.2.0 | GHSA-5pr6-crvp-2j9f |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- BYVoid OpenCC: affected: 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5
Vendor advisories:
References
- https://vuldb.com/?id.341708
- https://vuldb.com/?ctiid.341708
- https://vuldb.com/?submit.733347
- https://github.com/BYVoid/OpenCC/issues/997
- https://github.com/BYVoid/OpenCC/pull/1005
- https://github.com/oneafter/1222/blob/main/repro
- https://github.com/BYVoid/OpenCC/commit/345c9a50ab07018f1b4439776bad78a0d40778ec
- https://github.com/BYVoid/OpenCC/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.