Moderate Security Vulnerability in libfastjson: Integer Overflow and Out-of-Bounds Write

libfastjson Updated 27 Jun 2026

Summary

27/06/2026
N/A
Yes i
High
7.8

RLSA-2023:6976: Moderate: libfastjson security update. Affects libfastjson versions < 0:0.99.9-2.el8. Fixed in 0:0.99.9-2.el8. 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

libfastjson is a library that provides essential functions for handling JavaScript Object Notation (JSON) in C. It allows users to construct JSON objects, output them as JSON-formatted strings, and convert JSON-formatted strings back to C representations. This library is widely used in applications that require efficient JSON processing. However, it has been found vulnerable to specific security issues that could lead to severe consequences if not addressed.

Vulnerability Detail

The vulnerability identified as CVE-2020-12762 in libfastjson is an integer overflow and out-of-bounds write that can occur when processing large JSON files. This flaw can allow attackers to exploit the library by crafting malicious JSON input, potentially leading to memory corruption, application crashes, or arbitrary code execution. The severity of this vulnerability is reflected in its CVSS score of 7.8, indicating a significant risk to applications utilizing this library.

How To Fix

Minimum fixed version

0:0.99.9-2.el8

This is the first release that contains the fix.

sudo dnf update libfastjson

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

Workaround

As a temporary workaround, users can limit the size of JSON files processed by libfastjson to mitigate the risk of exploitation until the package is updated. This can be done by implementing input validation checks in the application code to reject excessively large JSON inputs.

Conclusion

The libfastjson library has a moderate security vulnerability that can lead to serious consequences if exploited. It is crucial for users to update to the patched version to mitigate risks. Implementing input validation can serve as a temporary measure until the update is applied. Monitoring tools like Vulert can assist in identifying vulnerabilities in your applications.

See every vulnerability recorded for libfastjson →

Share this vulnerability

FAQ

CVE-2020-12762 is a security vulnerability in the libfastjson library that allows for integer overflow and out-of-bounds write when processing large JSON files.

The vulnerability can lead to memory corruption, application crashes, or even arbitrary code execution, posing a significant risk to applications using libfastjson.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By utilizing the Vulert playground, you can check if your application is affected without needing to sign up.

If an immediate update is not possible, implement input validation checks to limit the size of JSON files processed by the library as a temporary workaround.

The CVSS score of the vulnerability CVE-2020-12762 is 7.8, indicating a moderate to high severity risk.

Related vulnerabilities

Recent vulnerabilities recorded for libfastjson.

How To Fix

Minimum fixed version

0:0.99.9-2.el8

This is the first release that contains the fix.

sudo dnf update 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