Critical Negative Left Shift Vulnerability in libtheora Package

libtheora Updated 02 Oct 2025

Summary

25/12/2024
N/A
No i
Unrated
Not published

CVE-2024-56431: oc_huff_tree_unpack in huffdec.c in libtheora in Theora through 1.0 7180717 has an invalid negative left shift. Affects libtheora versions < 8e4808736e9c181b971306cc3f05df9e61354004. No fix is published. 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

libtheora is an open-source implementation of the Theora video compression format, widely used for streaming and storing video content. It is designed to provide high-quality video at low bitrates, making it a popular choice for web applications and multimedia projects. However, the package is susceptible to a critical vulnerability that can lead to unexpected behavior during video decoding.

Vulnerability Detail

The vulnerability, identified as CVE-2024-56431, arises from an invalid negative left shift in the oc_huff_tree_unpack function located in huffdec.c of libtheora. This flaw can potentially lead to undefined behavior, crashes, or even arbitrary code execution, depending on how the affected function is utilized in applications that rely on libtheora for video processing. The issue affects versions of libtheora up to 1.0 7180717.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there are no specific workarounds provided for this vulnerability. It is strongly recommended to update the package to mitigate the risk associated with this flaw.

Conclusion

The CVE-2024-56431 vulnerability in the libtheora package poses significant risks to applications that utilize this library for video processing. It is crucial for users to update their packages to the latest version to ensure their systems remain secure and functional.

See every vulnerability recorded for libtheora →

Share this vulnerability

FAQ

CVE-2024-56431 is a vulnerability in the libtheora package that involves an invalid negative left shift, potentially leading to undefined behavior or crashes.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json to Vulert, you can check for vulnerabilities without needing to access the code.

Yes, a patched version of libtheora is available. Users should update to the latest version to mitigate the vulnerability.

Failing to address this vulnerability may lead to application crashes, unexpected behavior, or potential exploitation by malicious actors.

Detailed information about CVE-2024-56431 can be found on the official CVE database and through security advisories related to libtheora.

Related vulnerabilities

Recent vulnerabilities recorded for libtheora.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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