Critical Off-by-One Vulnerability in Motion Package Allows Remote Code Execution

motion Updated 02 Oct 2025

Summary

13/06/2008
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2008-2654: Off-by-one error in the read_client function in webhttpd.c in Motion 3.2.10 and earlier might allow remote attackers to execute arbitrary code via a long request to a Motion HTTP Control interface, which triggers a stack... Affects motion versions < 3.2.9-3. Fixed in 3.2.9-3. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Motion is an open-source software that provides motion detection capabilities for video surveillance. It allows users to monitor video feeds and respond to detected motion events. The software is widely used in various applications, from home security to professional surveillance systems. However, versions 3.2.10 and earlier are vulnerable to a significant security flaw that can be exploited by remote attackers.

Vulnerability Detail

The vulnerability, identified as CVE-2008-2654, is an off-by-one error in the read_client function located in webhttpd.c of the Motion package. This flaw can be exploited by sending a specially crafted long request to the Motion HTTP Control interface, leading to a stack-based buffer overflow. Depending on the processor architecture and compiler used, this could allow attackers to execute arbitrary code on the affected system, posing a severe security risk.

How To Fix

Minimum fixed version

3.2.9-3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade motion

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

Workaround

As a temporary workaround, users can restrict access to the Motion HTTP Control interface by implementing firewall rules or by configuring the software to only accept requests from trusted IP addresses. This can help mitigate the risk of exploitation until the package is updated.

Conclusion

The CVE-2008-2654 vulnerability in the Motion package presents a serious risk of remote code execution due to an off-by-one error. Users are strongly advised to update to the patched version to mitigate this risk. Implementing temporary workarounds can help protect systems until an update can be applied.

See every vulnerability recorded for motion →

Share this vulnerability

FAQ

CVE-2008-2654 is a security vulnerability in the Motion package that allows remote code execution due to an off-by-one error in the handling of HTTP requests.

Versions of Motion prior to 3.2.9-3 are affected by this vulnerability.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json, you can check for vulnerabilities in real-time.

If immediate updates are not possible, consider implementing firewall rules to restrict access to the Motion HTTP Control interface as a temporary measure.

Detailed information about CVE-2008-2654 can be found in the Debian security advisories and on vulnerability databases such as Vulert.

Related vulnerabilities

Recent vulnerabilities recorded for motion.

How To Fix

Minimum fixed version

3.2.9-3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade motion

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