See how videolan compares to other vendors in security performance
VideoLAN libaacs 0.7.0 through 0.12.0 on non-macOS, non-Windows builds contains stack-based buffer overflows in aacsresolvepath() in src/file/path.c from length checks against the wrong buffer. Local attackers can place a symlink with a long target on a disc path a user opens to overflow resolvedpath[] and link[], crashing the process or potentially executing code if mitigations are bypassed.
(A memory corruption vulnerability exists in VideoLAN VLC 3.0.23. A spe ...)
(An out-of-bounds read vulnerability exists in VideoLAN VLC 3.0.23. By ...)
Following up on the scale-factor OOB read -- there's a second out-of-bounds read in the same decoder, in the bitstream reader.
bitstreamfillcurrent() in bitstream.c reads a word and advances the pointer with no end-of-buffer check:
static inline void bitstreamfillcurrent (dcastatet state) { uint32t tmp; tmp = (state->bufferstart++); / no bounds check / ... }
The decoder state (dcainternal.h) has no bufferend field at all, so the reader trusts the frame to be well-formed. A crafted frame whose header fields ask for more bits than the frame holds walks bufferstart past the end of the input buffer. Confirmed with AddressSanitizer on a 96-byte crafted frame decoded through the normal dcasyncinfo / dcaframe / dcablock path:
heap-buffer-overflow READ of size 4 #0 bitstreamfillcurrent bitstream.c:55 #1 dcabitstreamgetbh bitstream.c:95 #2 bitstreamget bitstream.h:69 #3 dcasubframeheader parse.c:494 #4 dcablock parse.c:1083 0 bytes after 96-byte region
Same class as the first: crash / bounded over-read on untrusted DTS input, read-only. The fix is to track the end of the input buffer in dcastatet and stop before reading past it.
Crafted sample available on request. Verified against https://www.google.com/url?q=http://code.videolan.org/videolan/libdca&source=gmail&ust=1794790717387000&sa=E HEAD 95c4bd8.
Osvaldo
On Sat, Nov 14, 2026 06:12 PM, "Osvaldo J. Filho" <janeri () gmail com> wrote: Hi,
libdca is VideoLAN's DTS Coherent Acoustics decoder. It's effectively unmaintained (VideoLAN confirmed to me it's abandoned and it was dropped from VLC 4.0), but several distros still ship it as a library, so I'm reporting here.
There's an out-of-bounds read in the scale-factor parser, reachable from a crafted DTS frame. I verified it against the current tree at https://www.google.com/url?q=https://code.videolan.org/ videolan/libdca&source=gmail&ust=1794777156181000&sa=E (HEAD 95c4bd8).
In parse.c, dcasubframeheader() decodes scale factors like this:
if (state->scalefactorhuffman[j] == 6) scaletable = scalefactorquant7; / 128 entries / else scaletable = scalefactorquant6; / 64 entries, indices 0..63 /
scalesum = 0; for (k = 0; k < state->subbandactivity[j]; k++) { if (k >= state->vqstartsubband[j] || state->bitalloc[j][k] > 0) { if (state->scalefactorhuffman[j] < 5) scalesum += InverseQ(state, scales129[state->scalefactorhuffman[j]]); else if (state->scalefactorhuffman[j] == 5) scalesum = bitstreamget(state, 6); else if (state->scalefactorhuffman[j] == 6) scalesum = bitstreamget(state, 7);
state->scalefactor[j][k][0] = scaletable[scalesum]; / <-- / } / the transitionmode branch repeats the same accumulation / }
For scalefactorhuffman modes 0..4, scalesum is a running total of InverseQ() deltas and scaletable is scalefactorquant6 (64 entries). Nothing clamps scalesum before it indexes the table.
InverseQ() returns the Huffman entry's value field, and for mode 0 (scalesa129) that value goes from -64 to +64, for example:
{ 16, 57173, 64 }, { 16, 57172, -64 },
So a single scale-factor delta of +64 makes scalesum == 64 and reads scalefactorquant6[64], one past the end. A single negative delta gives a negative index. subbandactivity is up to 32, and the transitionmode branch accumulates again, so scalesum can reach a few thousand either side of the valid range.
The modes that use absolute values are fine: mode 5 reads bitstreamget(6) (0..63 into the 64-entry table) and mode 6 reads bitstreamget(7) (0..127 into the 128-entry table). Only the differential modes 0..4 are affected.
Impact is an out-of-bounds int read whose result is used as an audio scale factor: a crash if the index lands on an unmapped page, otherwise a limited info leak into the decoded output. It's a decoder-side parser bug, so any caller that decodes untrusted DTS data is exposed. Not memory-corrupting beyond the read.
A fix is a bounds check before the table lookup, e.g. reject the frame if scalesum is outside [0, 63] (or [0, 127] for quant7).
I've requested a CVE for this from MITRE's CNA-LR (pending assignment). Happy to provide a crafted sample that triggers it under AddressSanitizer if that's useful.
Osvaldo
Hi,
libdca is VideoLAN's DTS Coherent Acoustics decoder. It's effectively unmaintained (VideoLAN confirmed to me it's abandoned and it was dropped from VLC 4.0), but several distros still ship it as a library, so I'm reporting here.
There's an out-of-bounds read in the scale-factor parser, reachable from a crafted DTS frame. I verified it against the current tree at https://www.google.com/url?q=https://code.videolan.org/videolan/libdca&source=gmail&ust=1794777156181000&sa=E (HEAD 95c4bd8).
In parse.c, dcasubframeheader() decodes scale factors like this:
if (state->scalefactorhuffman[j] == 6) scaletable = scalefactorquant7; / 128 entries / else scaletable = scalefactorquant6; / 64 entries, indices 0..63 /
scalesum = 0; for (k = 0; k < state->subbandactivity[j]; k++) { if (k >= state->vqstartsubband[j] || state->bitalloc[j][k] > 0) { if (state->scalefactorhuffman[j] < 5) scalesum += InverseQ(state, scales129[state->scalefactorhuffman[j]]); else if (state->scalefactorhuffman[j] == 5) scalesum = bitstreamget(state, 6); else if (state->scalefactorhuffman[j] == 6) scalesum = bitstreamget(state, 7);
state->scalefactor[j][k][0] = scaletable[scalesum]; / <-- / } / the transitionmode branch repeats the same accumulation / }
For scalefactorhuffman modes 0..4, scalesum is a running total of InverseQ() deltas and scaletable is scalefactorquant6 (64 entries). Nothing clamps scalesum before it indexes the table.
InverseQ() returns the Huffman entry's value field, and for mode 0 (scalesa129) that value goes from -64 to +64, for example:
{ 16, 57173, 64 }, { 16, 57172, -64 },
So a single scale-factor delta of +64 makes scalesum == 64 and reads scalefactorquant6[64], one past the end. A single negative delta gives a negative index. subbandactivity is up to 32, and the transitionmode branch accumulates again, so scalesum can reach a few thousand either side of the valid range.
The modes that use absolute values are fine: mode 5 reads bitstreamget(6) (0..63 into the 64-entry table) and mode 6 reads bitstreamget(7) (0..127 into the 128-entry table). Only the differential modes 0..4 are affected.
Impact is an out-of-bounds int read whose result is used as an audio scale factor: a crash if the index lands on an unmapped page, otherwise a limited info leak into the decoded output. It's a decoder-side parser bug, so any caller that decodes untrusted DTS data is exposed. Not memory-corrupting beyond the read.
A fix is a bounds check before the table lookup, e.g. reject the frame if scalesum is outside [0, 63] (or [0, 127] for quant7).
I've requested a CVE for this from MITRE's CNA-LR (pending assignment). Happy to provide a crafted sample that triggers it under AddressSanitizer if that's useful.
Osvaldo
VLC for Android before 3.7.2 contains a confused-deputy file overwrite vulnerability in FileUtils.getUri() that trusts content URIs based only on the com.fsck.k9.attachmentprovider or gmail-ls authority. A co-installed app without permissions can declare these authorities and send a crafted VIEW intent to the exported StartActivity, making VLC write attacker-chosen content under an attacker-chosen name in the shared Download directory, overwriting other apps' files when VLC holds All files access.
VideoLAN libbluray through 1.5.1 contains an out-of-bounds read vulnerability in clpiaccesspoint() that allows attackers to crash applications by supplying a ClipInfo file with an empty EP-map fine table. Attackers can place a crafted .clpi file in BDMV/CLIPINF with numepfine set to zero and an unclamped refepfineid, triggering reads during seeking for denial of service.
VideoLAN libbluray through 1.5.1 contains an uncontrolled memory allocation vulnerability in parseextentstartpoints() in clpiparse.c that trusts the numpoint field without bounds checking. Attackers can supply a crafted .clpi file on a disc, image, or directory with a huge numpoint to exhaust memory and CPU, causing denial of service.
VideoLAN libdvdnav through 7.0.0 contains an out-of-bounds read vulnerability in setPTT that allows attackers to crash applications by supplying an invalid JumpTT title number checked only by an assert. Attackers can craft a DVD or disc image whose First Play program chain issues JumpTT with title 0 or an oversized number, reading past the heap title table and crashing the player.
VLC media player before 3.0.24 contains a path traversal vulnerability in the skins2 ThemeLoader that fails to validate member names in .vlt skin archives. Attackers can craft malicious skin files with path traversal sequences to write arbitrary files with VLC user privileges, enabling code execution through Lua script injection.
Certain VLC media player builds in versions 3.0.0 through 3.0.23 contain a memory-safety vulnerability reachable when processing media from an attacker-controlled network source. Exploitation requires user interaction and may disclose a limited, layout-dependent amount of VLC process memory. Exposure depends on build configuration.
VLC media player versions 3.0.0 through 3.0.23 contain a memory-safety vulnerability reachable when processing crafted media. Exploitation requires user interaction and may result in application termination or code execution with the privileges of the VLC process.
VideoLAN VLC for Android prior to version 3.7.0 contains an authentication bypass in the Remote Access Server feature due to missing or insufficient rate limiting on one-time password (OTP) verification. The Remote Access Server uses a 4-digit OTP and does not enforce effective throttling or lockout within the OTP validity window, allowing an attacker with network reachability to the server to repeatedly attempt OTP verification until a valid usersession cookie is issued. Successful exploitation results in unauthorized access to the Remote Access interface, limited to media files explicitly shared by the VLC for Android user.
VideoLAN VLC for Android prior to version 3.7.0 contains a path traversal vulnerability in the Remote Access Server routing for the authenticated endpoint GET /download. The file query parameter is concatenated into a filesystem path under the configured download directory without canonicalization or directory containment checks, allowing an authenticated attacker with network reachability to the Remote Access Server to request files outside the intended directory. The impact is bounded by the Android application sandbox and storage restrictions, typically limiting exposure to app-internal and app-specific external storage.
mmstu.c in VideoLAN VLC media player before 3.0.22 allows an out-of-bounds read and denial of service via a crafted 0x01 response from an MMS server.
Last updated 30 January 2025
An integer overflow in dav1d AV1 decoder that can occur when decoding videos with large frame size. This can lead to memory corruption within the AV1 decoder. We recommend upgrading past version 1.4.0 of dav1d.
A binary hijacking vulnerability exists within the VideoLAN VLC media player before 3.0.19 on Windows. The uninstaller attempts to execute code with elevated privileges out of a standard user writable location. Standard users may use this to gain arbitrary code execution as SYSTEM.
Last updated 24 July 2024
Last updated 24 July 2024
A race condition during dav1d decoding could have led to an out-of-bounds memory access, potentially leading to memory corruption and execution of malicious code.
An integer overflow in the VNC module in VideoLAN VLC Media Player through 3.0.17.4 allows attackers, by tricking a user into opening a crafted playlist or connecting to a rogue VNC server, to crash VLC or execute code under some conditions.
A NULL-pointer dereference in "Open" in avi.c of VideoLAN VLC Media Player 3.0.11 can a denial of service (DOS) in the application.
A buffer overflow vulnerability in the vlcinputattachmentNew component of VideoLAN VLC Media Player 3.0.11 allows attackers to cause an out-of-bounds read via a crafted .avi file.
A buffer overflow vulnerability in the AVIExtractSubtitle component of VideoLAN VLC Media Player 3.0.11 allows attackers to cause an out-of-bounds read via a crafted .avi file.
A buffer overflow vulnerability in the Parseindx component of VideoLAN VLC Media Player 3.0.11 allows attackers to cause an out-of-bounds read via a crafted .avi file.
A vulnerability in EbmlTypeDispatcher::send in VideoLAN VLC media player 3.0.11 allows attackers to trigger a heap-based buffer overflow via a crafted .mkv file.
A heap-based buffer overflow in the hxxxAnnexBtoxVC function in modules/packetizer/hxxxnal.c in VideoLAN VLC media player before 3.0.11 for macOS/iOS allows remote attackers to cause a denial of service (application crash) or execute arbitrary code via a crafted H.264 Annex-B video (.avi for example) file.
An off-by-one error in the DecodeBlock function in codec/sdlimage.c in VideoLAN VLC media player before 3.0.9 allows remote attackers to cause a denial of service (memory corruption) via a crafted image file. NOTE: this may be related to the SDLImage product.
The web interface in VideoLAN VLC media player before 2.0.7 has no access control which allows remote attackers to view directory listings via the 'dir' command or issue other commands without authenticating.