Memory Leak Vulnerability in yajl Package Leading to Server Crashes

yajl Updated 02 Oct 2025

Summary

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

ALPINE-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 versions < 2.1.0-r9. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The yajl (Yet Another JSON Library) package is a C library designed for parsing JSON data. It is known for its efficiency and ease of use, making it a popular choice among developers for handling JSON in various applications. However, a critical vulnerability has been identified in versions prior to 2.1.0-r9, which can lead to memory leaks when using the yajl_tree_parse function, potentially causing servers to run out of memory and crash.

Vulnerability Detail

The vulnerability identified as ALPINE-CVE-2023-33460 arises from a memory leak in the yajl library, specifically when the yajl_tree_parse function is utilized. This flaw can lead to excessive memory consumption, resulting in out-of-memory errors that can crash the server. The issue is present in versions of the yajl package before 2.1.0-r9 across multiple Alpine Linux versions (v3.19, v3.20, v3.21, and v3.22). The CVSS score for this vulnerability is 6.5, indicating a moderate level of risk.

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

If immediate updating is not feasible, consider limiting the usage of the yajl_tree_parse function or monitoring memory usage closely to mitigate the impact of the memory leak until a proper update can be applied.

Conclusion

The memory leak vulnerability in the yajl package poses a significant risk to applications using this library, particularly in server environments. It is crucial to update to the patched version to mitigate the risk of crashes due to memory exhaustion. Utilizing tools like Vulert can further enhance your security posture by providing real-time vulnerability monitoring.

See every vulnerability recorded for yajl →

Share this vulnerability

FAQ

The memory leak can lead to increased memory consumption, potentially causing the server to run out of memory and crash.

Versions of yajl prior to 2.1.0-r9 are affected across Alpine Linux versions v3.19, v3.20, v3.21, and v3.22.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Update the yajl package to version 2.1.0-r9 or later using the command 'apk add --update yajl=2.1.0-r9'.

Vulert monitors and alerts for open-source vulnerabilities in your software using just a manifest file like package-lock.json, providing real-time insights into potential risks.

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