OpenOCD - Cross-Protocol Scripting Vulnerability

openocd Updated 02 Oct 2025

Summary

21/01/2018
N/A
Yes i
Unrated
Not published

DLA-1253-1: openocd - security update. Affects openocd versions < 0.5.0-1+deb7u1. Fixed in 0.5.0-1+deb7u1. 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

OpenOCD is an on-chip JTAG debug solution designed for ARM and MIPS systems. It provides developers with the ability to debug and program microcontrollers and other embedded devices. OpenOCD allows for communication with the target device through various protocols, including JTAG, SWD, and others. However, a vulnerability has been discovered in OpenOCD that allows remote attackers to conduct cross-protocol scripting attacks.

Vulnerability Detail

The vulnerability in OpenOCD arises from its failure to block attempts to use HTTP POST requests for sending data to localhost. This oversight enables remote attackers to execute arbitrary commands by crafting a malicious website and tricking users into visiting it. By exploiting this vulnerability, an attacker can execute commands on the target system with the privileges of the user running OpenOCD. This can lead to unauthorized access, data theft, or further compromise of the affected system.

How To Fix

Minimum fixed version

0.5.0-1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade openocd

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

Workaround

There is no known workaround for this vulnerability. It is essential to apply the provided fix by upgrading to the patched version of OpenOCD.

Conclusion

The discovered vulnerability in OpenOCD allows remote attackers to execute arbitrary commands through cross-protocol scripting attacks. To mitigate this risk, it is crucial to upgrade to the patched version of OpenOCD. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for openocd →

Share this vulnerability

FAQ

OpenOCD is an on-chip JTAG debug solution used for debugging and programming microcontrollers and embedded devices.

A cross-protocol scripting attack occurs when an attacker leverages a vulnerability to execute malicious scripts across different protocols, such as using an HTTP POST request to exploit a JTAG debugging tool like OpenOCD.

An attacker can exploit this vulnerability by crafting a malicious website and tricking users into visiting it. The website would send specially crafted HTTP POST requests to localhost, which OpenOCD would process and execute arbitrary commands on the target system.

The consequences of this vulnerability include unauthorized access to the target system, data theft, and potential further compromise of the affected system.

Yes, a fix is available for this vulnerability. Users are advised to upgrade their OpenOCD package to version 0.5.0-1+deb7u1 or later.

Related vulnerabilities

Recent vulnerabilities recorded for openocd.

How To Fix

Minimum fixed version

0.5.0-1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade openocd

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