# CVE-2023-2618: OpenCV wechat\_qrcode Module decoded\_bit\_stream\_parser.cpp decodeHanziSegment memory leak

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-05-10 · Modified: 2024-08-02
- Aliases: UBUNTU-CVE-2023-2618, DEBIAN-CVE-2023-2618
- Record: https://cvemate.com/vulnerability/CVE-2023-2618 · JSON: https://cvemate.com/vulnerability/CVE-2023-2618/json

## Description

```text
A vulnerability, which was classified as problematic, has been found in OpenCV wechat_qrcode Module up to 4.7.0. Affected by this issue is the function DecodedBitStreamParser::decodeHanziSegment of the file qrcode/decoder/decoded_bit_stream_parser.cpp. The manipulation leads to memory leak. The attack may be launched remotely. The name of the patch is 2b62ff6181163eea029ed1cab11363b4996e9cd6. It is recommended to apply a patch to fix this issue. The identifier of this vulnerability is VDB-228548.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.303%, percentile 71.475%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian opencv (Debian): \< 4.6.0+dfsg-12
- ubuntu opencv (Ubuntu): \< 4.5.4+dfsg-9ubuntu4+esm1
- opencv opencv: ≥ 4.5.2, \< 4.8.0
- opencv wechat\_qrcode module: 4.0 \| 4.1 \| 4.2 \| 4.3 \| 4.4 \| 4.5 \| 4.6 \| 4.7

## References

- <https://vuldb.com/?id.228548>
- <https://vuldb.com/?ctiid.228548>
- <https://github.com/opencv/opencv_contrib/pull/3484>
- <https://github.com/opencv/opencv_contrib/pull/3484/commits/2b62ff6181163eea029ed1cab11363b4996e9cd6>
- <https://ubuntu.com/security/CVE-2023-2618>
- <https://www.cve.org/CVERecord?id=CVE-2023-2618>
- <https://ubuntu.com/security/notices/USN-7247-1>
- <https://security-tracker.debian.org/tracker/CVE-2023-2618>

---

Data as of 2026-12-05T06:48:55.860Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
