Heap Buffer Overflow Vulnerability in Hobbes Package

hobbes Updated 25 Aug 2026

Summary

25/08/2026
HIGH
Yes i
High
Not published

OSV-2026-1196: Heap-buffer-overflow in yylex. Affects hobbes versions >= bd8cb86615562113ae09e837b8447d22dd945e80, < 3d08bc2cd3474bb3c41bfb21dc3c7b0b1109e5e7. Fixed in 3d08bc2cd3474bb3c41bfb21dc3c7b0b1109e5e7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Hobbes is an open-source parser library designed for efficient parsing of structured data. It is widely used in various applications for its ability to handle complex data formats. However, like many software libraries, it can be susceptible to vulnerabilities that may compromise its functionality and security. This specific vulnerability relates to a heap buffer overflow, which can lead to unexpected behavior or crashes in applications that utilize the library.

Vulnerability Detail

The vulnerability identified as a heap buffer overflow occurs in the yylex function of the Hobbes package. This issue was reported by OSS-Fuzz and is characterized by a crash type of 'Heap-buffer-overflow WRITE 4'. The crash state indicates that the overflow can occur during the parsing process, specifically in the functions yylex and yyparse. If exploited, this vulnerability could allow an attacker to manipulate the memory of the application, potentially leading to arbitrary code execution or denial of service.

How To Fix

Minimum fixed version

3d08bc2cd3474bb3c41bfb21dc3c7b0b1109e5e7

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can avoid using the affected functions (yylex and yyparse) until the package is updated. Additionally, ensure that your application has proper input validation to mitigate the risk of exploiting this vulnerability.

Conclusion

The heap buffer overflow vulnerability in the Hobbes package poses significant risks to applications that utilize it. It is crucial to update to the fixed version to ensure the security and stability of your software. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for hobbes →

Share this vulnerability

FAQ

A heap buffer overflow occurs when a program writes more data to a buffer located on the heap than it can hold, potentially overwriting adjacent memory and leading to unpredictable behavior.

You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can use the Vulert playground to analyze your manifest file.

Exploiting this vulnerability could lead to application crashes, data corruption, or even arbitrary code execution, which poses significant security risks.

Yes, a patch is available in the fixed version of the Hobbes package. It is recommended to update to this version to mitigate the vulnerability.

If immediate updating is not possible, implement input validation and avoid using the affected functions as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for hobbes.

How To Fix

Minimum fixed version

3d08bc2cd3474bb3c41bfb21dc3c7b0b1109e5e7

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback