Heap-Based Buffer Overflow in FAAD2 Package - CVE-2018-19502

faad2 Updated 02 Oct 2025

Summary

23/11/2018
N/A
Yes i
High
7.8

ALPINE-CVE-2018-19502: An issue was discovered in Freeware Advanced Audio Decoder 2 (FAAD2) 2.8.1. Affects faad2 versions < 2.9.0-r0. Fixed in 2.9.0-r0. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

FAAD2 (Freeware Advanced Audio Decoder) is a widely used audio decoding library that supports various audio formats, including AAC. It is known for its efficiency and high-quality audio playback. However, versions prior to 2.9.0-r0 are vulnerable to a heap-based buffer overflow, which can lead to severe security risks.

Vulnerability Detail

The vulnerability identified as CVE-2018-19502 is a heap-based buffer overflow found in the function excluded_channels() within the libfaad/syntax.c file of FAAD2 version 2.8.1. This flaw allows an attacker to exploit the buffer overflow, potentially leading to arbitrary code execution, data corruption, or crashes. The vulnerability has a CVSS score of 7.8, indicating a high severity level.

How To Fix

Minimum fixed version

2.9.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade faad2

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

Workaround

If immediate updating is not feasible, consider disabling the use of the affected function or limiting the input size to prevent exploitation. However, this is not a permanent solution and should only be a temporary measure.

Conclusion

The CVE-2018-19502 vulnerability in the FAAD2 package poses significant risks due to a heap-based buffer overflow. It is crucial to update to the patched version 2.9.0-r0 to mitigate these risks. For real-time monitoring of open-source vulnerabilities, consider using Vulert, which can alert you to potential issues without requiring code access.

See every vulnerability recorded for faad2 →

Share this vulnerability

FAQ

CVE-2018-19502 is a vulnerability in the FAAD2 audio decoder that allows for a heap-based buffer overflow, potentially leading to arbitrary code execution.

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

Exploitation of this vulnerability can lead to arbitrary code execution, data corruption, or application crashes, posing significant security risks.

Yes, the patch is available in version 2.9.0-r0 of the FAAD2 package. Updating to this version will resolve the vulnerability.

If you cannot update the package, consider implementing temporary workarounds such as disabling the affected function or limiting input sizes.

Related vulnerabilities

Recent vulnerabilities recorded for faad2.

How To Fix

Minimum fixed version

2.9.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade faad2

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