Critical Vulnerability in libtheora: Invalid Negative Left Shift in Huffman Decoder

libtheora Updated 03 Oct 2025

Summary

25/12/2024
N/A
Yes i
Critical
9.8

UBUNTU-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 < 1.2.0~alpha1+dfsg-6. Fixed in 1.2.0~alpha1+dfsg-6. 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

libtheora is a library for encoding and decoding Theora video streams, widely used in multimedia applications. It provides essential functionalities for video compression and playback, making it a critical component in various software packages. The library has been identified to have a vulnerability that could potentially affect its stability and security.

Vulnerability Detail

The vulnerability, identified as CVE-2024-56431, is located in the oc_huff_tree_unpack function within huffdec.c of libtheora versions up to 1.0 7180717. It involves an invalid negative left shift, which could lead to unexpected behavior. Although this issue is disputed by some parties due to a lack of evidence indicating a security impact, it is essential to address it to ensure the integrity of applications relying on this library.

How To Fix

Minimum fixed version

1.2.0~alpha1+dfsg-6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libtheora

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

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. However, users are advised to monitor their applications for any unusual behavior and apply the patch as soon as it is available.

Conclusion

The CVE-2024-56431 vulnerability in libtheora presents a potential risk to applications utilizing this library. It is crucial for users to update to the patched version to ensure the security and stability of their software. Monitoring tools like Vulert can assist in identifying vulnerabilities in real-time.

See every vulnerability recorded for libtheora →

Share this vulnerability

FAQ

CVE-2024-56431 is a vulnerability in the libtheora library that involves an invalid negative left shift in the Huffman decoder.

While the vulnerability is disputed regarding its impact, it could potentially lead to unexpected behavior in applications that utilize the libtheora library.

Yes, a patched version of the libtheora library (1.2.0~alpha1+dfsg-6) is available. Users should update to this version to mitigate the risk.

If an immediate update is not possible, monitor your applications for any unusual behavior and consider using alternative libraries until the update can be applied.

You can use Vulert, which allows you to monitor and alert for open-source vulnerabilities in your software using just a manifest file like package-lock.json. You can check your application at the Vulert playground without any signup.

Related vulnerabilities

Recent vulnerabilities recorded for libtheora.

How To Fix

Minimum fixed version

1.2.0~alpha1+dfsg-6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libtheora

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