Submit #654059: Open Babel 3.1.1 / master commit 889c3501 Memory Corruptioninfo

TitleOpen Babel 3.1.1 / master commit 889c3501 Memory Corruption
DescriptionOpen Babel 3.1.1 (and the current master branch at commit 889c350) contains a vulnerability in the ZIP stream handling code (zipstreamimpl.h). When parsing certain compressed input files, the function zlib_stream::basic_unzip_streambuf<char>::underflow() invokes memcpy with overlapping source and destination buffers. Since memcpy is undefined for overlapping memory regions, this results in undefined behavior and can lead to memory corruption or a crash. A crafted input file can reliably trigger this condition, leading to denial-of-service and potentially opening the door for more severe memory corruption exploits.
Source⚠️ https://github.com/openbabel/openbabel/issues/2832
User ahuo (UID 90189)
Submission09/14/2025 10:01 (10 months ago)
Moderation09/25/2025 20:05 (11 days later)
StatusAccepted
VulDB entry325923 [Open Babel up to 3.1.1 /src/zipstreamimpl.h underflow memory corruption]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!