Critical Security Update for libfastjson: Addressing CVE-2020-12762

libfastjson Updated 02 Oct 2025

Summary

28/07/2025
N/A
Yes i
Unrated
Not published

DLA-4258-1: libfastjson - security update. Affects libfastjson versions < 0.99.9-1+deb11u1. Fixed in 0.99.9-1+deb11u1. 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

libfastjson is a library designed for fast JSON parsing and serialization in C. It is widely used in various applications for its efficiency and performance. However, it has been identified to have a security vulnerability that could potentially allow for exploitation if not addressed promptly.

Vulnerability Detail

The vulnerability, identified as CVE-2020-12762, originates from improper handling of certain JSON input, which can lead to a denial of service or potentially allow an attacker to execute arbitrary code. This issue arises from the way libfastjson processes JSON strings, making it susceptible to crafted input that can exploit the library's parsing logic.

How To Fix

Minimum fixed version

0.99.9-1+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libfastjson

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

Workaround

As a temporary workaround, you can implement input validation to sanitize JSON data before processing it with libfastjson. This can help mitigate the risk of exploitation until the package is updated.

Conclusion

In summary, the libfastjson library has a critical vulnerability (CVE-2020-12762) that needs immediate attention. Users are advised to update to the latest patched version to secure their applications. Implementing input validation can serve as a temporary measure until the update is applied.

See every vulnerability recorded for libfastjson →

Share this vulnerability

FAQ

CVE-2020-12762 is a security vulnerability in the libfastjson library that can lead to denial of service or arbitrary code execution due to improper handling of JSON input.

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

Failing to address this vulnerability could expose your application to denial of service attacks or allow attackers to execute arbitrary code, compromising the security of your system.

Yes, a patch is available in the form of an updated package version 0.99.9-1+deb11u1, which addresses the vulnerability.

Vulert is a service that 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 libfastjson.

How To Fix

Minimum fixed version

0.99.9-1+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libfastjson

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