CVE-2026-49127: Off-by-one Error in MusicPlayerDaemon MPD
Music Player Daemon (MPD) before version 0.24.11 contains a stack buffer overflow vulnerability in the pcm_unpack_24be function in src/pcm/Pack.cxx that allows unauthenticated attackers to corrupt stack memory by triggering an off-by-one write in the PCM decoder plugin. Attackers can issue two MPD commands referencing a malicious HTTP audio source to cause the unpack loop to write 1366 entries into a 1365-entry buffer, overwriting four bytes past the array boundary with three attacker-controlled bytes from an HTTP response body, resulting in daemon termination or potential code execution.
AI Analysis
Technical Summary
CVE-2026-49127 is a stack buffer overflow vulnerability in Music Player Daemon (MPD) prior to version 0.24.11. The flaw exists in the pcm_unpack_24be function within src/pcm/Pack.cxx, where an off-by-one write occurs during the unpacking loop. Specifically, the function writes 1366 entries into a buffer sized for 1365 entries, overwriting four bytes beyond the buffer with three attacker-controlled bytes from an HTTP response body. This can be triggered by unauthenticated attackers issuing two MPD commands referencing a malicious HTTP audio source. The overflow may lead to daemon termination or potentially arbitrary code execution.
Potential Impact
The vulnerability allows unauthenticated remote attackers to corrupt stack memory, which can cause the Music Player Daemon to crash or potentially enable code execution under the daemon's privileges. This poses a high risk to systems running vulnerable MPD versions, especially if exposed to untrusted networks.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no patch or official fix information is provided, users should monitor the Music Player Daemon project for updates and consider restricting access to MPD services from untrusted sources until a fix is available.
CVE-2026-49127: Off-by-one Error in MusicPlayerDaemon MPD
Description
Music Player Daemon (MPD) before version 0.24.11 contains a stack buffer overflow vulnerability in the pcm_unpack_24be function in src/pcm/Pack.cxx that allows unauthenticated attackers to corrupt stack memory by triggering an off-by-one write in the PCM decoder plugin. Attackers can issue two MPD commands referencing a malicious HTTP audio source to cause the unpack loop to write 1366 entries into a 1365-entry buffer, overwriting four bytes past the array boundary with three attacker-controlled bytes from an HTTP response body, resulting in daemon termination or potential code execution.
CVSS v4.0
Score 8.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-49127 is a stack buffer overflow vulnerability in Music Player Daemon (MPD) prior to version 0.24.11. The flaw exists in the pcm_unpack_24be function within src/pcm/Pack.cxx, where an off-by-one write occurs during the unpacking loop. Specifically, the function writes 1366 entries into a buffer sized for 1365 entries, overwriting four bytes beyond the buffer with three attacker-controlled bytes from an HTTP response body. This can be triggered by unauthenticated attackers issuing two MPD commands referencing a malicious HTTP audio source. The overflow may lead to daemon termination or potentially arbitrary code execution.
Potential Impact
The vulnerability allows unauthenticated remote attackers to corrupt stack memory, which can cause the Music Player Daemon to crash or potentially enable code execution under the daemon's privileges. This poses a high risk to systems running vulnerable MPD versions, especially if exposed to untrusted networks.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no patch or official fix information is provided, users should monitor the Music Player Daemon project for updates and consider restricting access to MPD services from untrusted sources until a fix is available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-27T17:40:12.738Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a189d28e29bf47b50227a4f
Added to database: 5/28/2026, 7:53:12 PM
Last enriched: 5/28/2026, 7:54:10 PM
Last updated: 5/29/2026, 1:32:14 PM
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.