Memory Leak in yajl 2.1.0 with yajl_tree_parse Function

yajl Updated 02 Oct 2025

Summary

06/06/2023
N/A
Yes i
Medium
6.5

CVE-2023-33460: There's a memory leak in yajl 2.1.0 with use of yajl_tree_parse function. which will cause out-of-memory in server and cause crash. Affects yajl across 2 version ranges.

< 2.1.0-r9 < a0ecdde0c042b9256170f2f8890dd9451a4240aa

Fixed in 2.1.0-r9. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The yajl package is a JSON parsing and generation library written in C. It provides a simple and efficient API for working with JSON data. The package is widely used in various applications and frameworks. However, in version 2.1.0 of yajl, there is a memory leak issue when using the yajl_tree_parse function. This vulnerability can lead to an out-of-memory condition in the server, causing it to crash.

Vulnerability Detail

The memory leak vulnerability in yajl 2.1.0 arises from improper memory management in the yajl_tree_parse function. When this function is used, it fails to release allocated memory properly, resulting in a continuous accumulation of memory usage. As a consequence, the server's memory resources are exhausted, leading to a crash. This vulnerability can be exploited by an attacker to disrupt the availability of the affected server.

How To Fix

Minimum fixed version

2.1.0-r9

This is the first release that contains the fix.

sudo apk add --upgrade yajl

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

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by upgrading the yajl package to a patched version.

Conclusion

In conclusion, the yajl 2.1.0 version suffers from a memory leak vulnerability in the yajl_tree_parse function. This vulnerability can be exploited to cause a server crash due to an out-of-memory condition. Users are advised to upgrade their yajl installations to version 2.1.0-r9 or later to mitigate this issue. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for yajl →

Share this vulnerability

FAQ

yajl is a JSON parsing and generation library written in C. It provides a simple and efficient API for working with JSON data.

The vulnerability can cause a memory leak in the server, leading to an out-of-memory condition and eventual crash.

An attacker can exploit this vulnerability by sending specially crafted JSON data that triggers the memory leak, causing the server to crash.

Yes, upgrading the yajl package to version 2.1.0-r9 or later resolves this vulnerability.

No, there are no known workarounds. It is necessary to apply the recommended fix by upgrading the yajl package.

Related vulnerabilities

Recent vulnerabilities recorded for yajl.

How To Fix

Minimum fixed version

2.1.0-r9

This is the first release that contains the fix.

sudo apk add --upgrade yajl

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