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

Medium 5.3 Published Updated

A memory leak in OpenCV's wechat_qrcode module allows remote attackers to cause denial of service via crafted QR codes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-2618?

CVE-2023-2618 is a medium-severity denial of service vulnerability in OpenCV wechat_qrcode Module, published on 10 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-401

Which versions are affected by CVE-2023-2618?

It affects 1 product.

Products include Opencv Opencv.

How do I fix CVE-2023-2618?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-2618 being exploited?

There is no known exploitation of CVE-2023-2618 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2023-2618, GHSA-v2pm-rv6h-9g9p, JLSEC-2026-568, UBUNTU-CVE-2023-2618.

Is CVE-2023-2618 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free