Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-7982

CVE-2020-7982: OpenWrt LEDE RCE Vulnerability

CVE-2020-7982 is a remote code execution flaw in OpenWrt LEDE that allows man-in-the-middle attackers to inject malicious packages. This post covers technical details, affected versions, impact, and mitigation.

Published: March 11, 2026

CVE-2020-7982 Overview

A critical vulnerability was discovered in OpenWrt's fork of the opkg package manager that affects versions 18.06.0 through 18.06.6, 19.07.0, and LEDE 17.01.0 through 17.01.7. The vulnerability stems from a bug that prevents correct parsing of embedded checksums in the signed repository index. This flaw allows a man-in-the-middle attacker to inject arbitrary package payloads that are installed on the target device without any verification, effectively bypassing the package signing mechanism entirely.

Critical Impact

Attackers positioned in a man-in-the-middle scenario can inject malicious packages during firmware updates or package installations, achieving arbitrary code execution on vulnerable OpenWrt/LEDE devices including routers, access points, and IoT gateways.

Affected Products

  • OpenWrt versions 18.06.0 to 18.06.6
  • OpenWrt version 19.07.0
  • LEDE versions 17.01.0 to 17.01.7

Discovery Timeline

  • 2020-01-25 - opkg package manager patched
  • 2020-01-31 - OpenWrt releases security advisory
  • 2020-03-16 - CVE-2020-7982 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-7982

Vulnerability Analysis

This vulnerability (CWE-345: Insufficient Verification of Data Authenticity) exists due to improper parsing logic in the opkg package manager when processing checksums from signed package repository indexes. While OpenWrt implements cryptographic signing for its package repositories, the opkg fork contained a parsing bug that caused it to incorrectly handle embedded SHA256 checksums within the signed Packages.gz index file.

The issue lies in how opkg parsed lines containing both package metadata and checksum information. When a checksum field contained leading whitespace or specific formatting, the parser would fail to correctly extract and verify the checksum value. This meant that even though the repository index was cryptographically signed and authentic, the individual package checksums were not being properly validated against downloaded package files.

Root Cause

The root cause is a parsing error in the opkg package manager's checksum extraction routine. The code responsible for reading the SHA256sum field from signed package indexes failed to properly handle certain valid formatting variations. When the checksum field was present but improperly parsed, opkg would proceed with package installation without actually verifying the package integrity against the expected hash value. This effectively nullified the checksum verification security control.

Attack Vector

The attack requires a network-based man-in-the-middle position between the victim OpenWrt device and the package repository servers. An attacker who can intercept and modify network traffic can exploit this vulnerability through the following mechanism:

  1. The attacker intercepts the legitimate Packages.gz signed index file, which passes signature verification
  2. When the target device requests a specific package file (.ipk), the attacker substitutes a malicious package
  3. Due to the checksum parsing bug, opkg fails to detect that the downloaded package does not match the expected checksum
  4. The malicious package is installed with root privileges on the OpenWrt device

This attack is particularly dangerous because it targets the software update mechanism itself. Routers and network devices running OpenWrt are high-value targets as they control network traffic and often have access to all connected devices. Successful exploitation grants the attacker persistent root-level access to the compromised device.

Detection Methods for CVE-2020-7982

Indicators of Compromise

  • Unexpected packages installed on OpenWrt devices that were not explicitly requested by administrators
  • Modified system configuration files or startup scripts that persist after device reboots
  • Unusual outbound network connections from the router to unknown IP addresses or command-and-control infrastructure
  • Unexpected processes running on the device, particularly those with network access or persistence mechanisms

Detection Strategies

  • Monitor network traffic from OpenWrt devices for connections to non-standard package repositories or suspicious download patterns
  • Implement network segmentation to detect potential MITM attacks targeting router update traffic
  • Compare installed package lists and checksums against known-good baselines from official OpenWrt releases
  • Review system logs for opkg installation events that coincide with network anomalies

Monitoring Recommendations

  • Deploy network intrusion detection systems (IDS) to monitor for traffic interception attempts on router management networks
  • Establish out-of-band management channels for critical network infrastructure to reduce MITM attack surface
  • Regularly audit OpenWrt device configurations and installed packages against documented change management records

How to Mitigate CVE-2020-7982

Immediate Actions Required

  • Upgrade all OpenWrt devices to version 18.06.7, 19.07.1, or later immediately
  • Upgrade LEDE devices to a supported OpenWrt release as LEDE has been merged into OpenWrt
  • Verify the integrity of currently installed packages by comparing against official repository checksums
  • Consider re-flashing devices with a clean firmware image if compromise is suspected

Patch Information

OpenWrt addressed this vulnerability in opkg commits prior to 2020-01-25 and released patched firmware versions. The fix corrects the checksum parsing logic to properly extract and verify SHA256 checksums from the signed package index. Users should update to OpenWrt 18.06.7+ or 19.07.1+ which contain the corrected opkg package manager. Detailed information is available in the OpenWRT Security Advisory and the GitHub OpenWRT Commits.

Workarounds

  • Avoid performing package updates over untrusted networks where MITM attacks are possible
  • Use VPN connections to trusted networks when performing firmware or package updates on OpenWrt devices
  • Manually verify package checksums by downloading packages through a trusted system and comparing against official SHA256 hashes before installation
  • Disable automatic package updates until devices can be upgraded to patched firmware versions
bash
# Verify current OpenWrt version
cat /etc/openwrt_release

# Check for available updates (only on trusted networks)
opkg update
opkg list-upgradable

# Manual checksum verification example
sha256sum /tmp/package.ipk
# Compare output against official repository checksum

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechOpenwrt

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability4.37%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-345
  • Technical References
  • Ars Technica Article

  • ForAllSecure Blog Post
  • Vendor Resources
  • GitHub OpenWRT Commits

  • OpenWRT Security Advisory
  • Related CVEs
  • CVE-2024-54143: OpenWrt ASU Hash Collision RCE Vulnerability

  • CVE-2025-20674: OpenWrt Privilege Escalation Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English