# CVE-2023-2618: OpenCV wechat_qrcode Module decoded_bit_stream_parser.cpp decodeHanziSegment memory leak

- Severity: Medium 5.3 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.30%, higher than 71% of CVEs (2026-12-01)
- Published: 2023-05-10T05:31:04.406Z
- Modified: 2026-06-17T05:53:01.440Z
- Weaknesses: CWE-401
- Assigned by: VulDB

## Description

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.

(As written by CVE List.)

## Affected

- OpenCV wechat_qrcode Module: 4.0; 4.1; 4.2; 4.3; 4.4; 4.5; 4.6; 4.7
- opencv opencv: from 4.5.2 before 4.8.0

## Every score

- VulDB: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- VulDB: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- VulDB: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://vuldb.com/?id.228548> (technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.228548> (permissions-required, signature)
- <https://github.com/opencv/opencv_contrib/pull/3484> (issue-tracking, patch)
- <https://github.com/opencv/opencv_contrib/pull/3484/commits/2b62ff6181163eea029ed1cab11363b4996e9cd6> (issue-tracking, patch)

## Sources

- CVE List: [CVE-2023-2618](https://www.cve.org/CVERecord?id=CVE-2023-2618), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2023-2618](https://nvd.nist.gov/vuln/detail/CVE-2023-2618), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-2618 · Whole record: https://cve.day/CVE-2023-2618.json · Rebuilt by cve.day 2026-11-25T22:58:24.046Z
