Stack Exhaustion Vulnerability in jansson

jansson Updated 02 Oct 2025

Summary

13/05/2016
N/A
Yes i
Unrated
Not published

DLA-471-1: jansson - security update. Affects jansson versions < 2.3.1-2+deb7u1. Fixed in 2.3.1-2+deb7u1. 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

Jansson is a C library used for encoding, decoding, and manipulating JSON data. It provides functionality for working with JSON files and is commonly used in various applications. However, a vulnerability has been discovered in Jansson that could lead to a crash due to stack exhaustion while parsing a JSON file. This vulnerability arises from an unlimited parsing depth when handling JSON arrays.

Vulnerability Detail

The vulnerability in Jansson allows an attacker to craft a malicious JSON file that triggers a stack exhaustion issue during parsing. By exploiting this vulnerability, an attacker could cause a denial of service (DoS) condition in applications that rely on Jansson. The issue has been fixed by limiting the parsing depth to 2048, preventing stack exhaustion.

How To Fix

Minimum fixed version

2.3.1-2+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade jansson

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

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended solution is to apply the fix by upgrading the jansson package.

Conclusion

The stack exhaustion vulnerability in jansson can be mitigated by upgrading the package to the fixed version. It is important to promptly apply the fix to prevent potential crashes and denial of service conditions. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for jansson →

Share this vulnerability

FAQ

Jansson is a C library for working with JSON data. It provides functions for encoding, decoding, and manipulating JSON files.

The vulnerability could lead to a crash in applications that use Jansson, resulting in a denial of service (DoS) condition.

You can fix this vulnerability by upgrading the jansson package to version 2.3.1-2+deb7u1 or later.

There is no specific workaround mentioned for this vulnerability. It is recommended to apply the fix by upgrading the jansson package.

For more information about this vulnerability, you can refer to the Debian Security Advisory DLA-471-1.

Related vulnerabilities

Recent vulnerabilities recorded for jansson.

How To Fix

Minimum fixed version

2.3.1-2+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade jansson

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