CVE-2022-38862
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Sep 15, 2022
CISA due date
—
Cloudanix analysis
A flaw in certain media playback tools lets attackers run harmful code on a computer if a user opens a specially crafted file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in play() function of libaf/af.c:639 leading to memory corruption in affected media processing components.
Why it matters to the business
Local attackers can achieve arbitrary code execution on systems running vulnerable versions, risking full host compromise; high ecosystem prevalence increases exposure across dependent installations.
How an attack unfolds
An attacker crafts a malicious input file or media stream that triggers the buffer overflow when processed via the play() function, requiring user interaction to open the content in the vulnerable player or encoder on a local system.
How to fix it
Upgrade all instances to the fixed commit f8469de7724a9449b43b514a99acefaf02430ad9 in the mattermost/mattermost (GIT) repository; rebuild and redeploy affected binaries from the patched source.
How to confirm the fix worked
Verify the installed version or source commit matches or exceeds f8469de7724a9449b43b514a99acefaf02430ad9; recompile from the fixed source and confirm the vulnerable play() path no longer exhibits overflow behavior under test inputs.
Typical attack path
- Identify or prepare a malicious media file designed to overflow the buffer in libaf/af.c
- Deliver the file to the target user or system
- User opens the file with the vulnerable mplayer or mencoder binary
- play() function processes the input triggering memory corruption
- Attacker gains arbitrary code execution on the local host
How to detect it
Review local process execution logs and file access records for invocations of mplayer or mencoder on untrusted media; look for crashes or abnormal memory behavior in libaf/af.c paths around the play() function.
What your security team should do
- Immediately upgrade to the fixed commit f8469de7724a9449b43b514a99acefaf02430ad9 across all affected GIT-based deployments
- Prioritize patching due to public exploit availability and 1493 days of exposure since 2022-09-15
- Scan build pipelines and dependency graphs for any references to the vulnerable SVN-r38374-13.0.1 revisions
- Implement application allow-listing for media processing tools to limit local execution surfaces
The record
Certain The MPlayer Project products are vulnerable to Buffer Overflow via function play() of libaf/af.c:639. This affects mplayer SVN-r38374-13.0.1 and mencoder SVN-r38374-13.0.1.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | mplayer | 0 | No fix |
| Ubuntu:20.04:LTS | mplayer | 0 | No fix |
| Ubuntu:22.04:LTS | mplayer | 0 | No fix |
| Ubuntu:24.04:LTS | mplayer | 0 | No fix |
| Ubuntu:24.10 | mplayer | 0 | No fix |
| Ubuntu:25.04 | mplayer | 0 | No fix |
| Ubuntu:25.10 | mplayer | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | mplayer | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mplayer | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mplayer | 0 | No fix |
Related vulnerabilities
- CVE-2022-38861 The MPlayer Project mplayer SVN-r38374-13.0.1 is vulnerable to memory corruption via… Also affects mplayer
- CVE-2022-38864 Certain The MPlayer Project products are vulnerable to Buffer Overflow via the function… Also affects mplayer
- CVE-2026-111497 A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli… CWE-787
- CVE-2026-112397 Pillow is a Python imaging library. CWE-787
- CVE-2026-112059 libLAS through 1.8.1 contains a heap out-of-bounds write vulnerability in the point… CWE-787
- CVE-2026-89088 A flaw was found in parted. CWE-787
- CVE-2026-89085 A flaw was found in parted. CWE-787
- CVE-2026-85746 MariaDB server is a community developed fork of MySQL server. CWE-787