The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-36941

CVE-2020-36941: Knockpy CSV Injection Vulnerability

CVE-2020-36941 is a CSV injection vulnerability in Knockpy 4.1.1 that allows attackers to inject malicious formulas into CSV reports through server headers. This article covers technical details, affected versions, and mitigation.

Published: January 30, 2026

CVE-2020-36941 Overview

Knockpy 4.1.1 contains a CSV injection vulnerability (CWE-1236) that allows attackers to inject malicious formulas into CSV reports through unfiltered server headers. Attackers can manipulate server response headers to include spreadsheet formulas that will execute when the CSV is opened in spreadsheet applications such as Microsoft Excel, LibreOffice Calc, or Google Sheets.

Critical Impact

Attackers can achieve code execution on victim systems when malicious CSV files are opened in spreadsheet applications, potentially leading to data theft, malware installation, or further network compromise.

Affected Products

  • Knockpy version 4.1.1

Discovery Timeline

  • 2026-01-27 - CVE-2020-36941 published to NVD
  • 2026-01-29 - Last updated in NVD database

Technical Details for CVE-2020-36941

Vulnerability Analysis

This vulnerability falls under CWE-1236: Improper Neutralization of Formula Elements in a CSV File. Knockpy is a Python-based subdomain enumeration tool that generates CSV reports containing discovered subdomains and associated metadata. The application fails to properly sanitize server response headers before including them in CSV output files.

When Knockpy retrieves information from target servers, it captures HTTP response headers and writes them directly to CSV reports without filtering dangerous characters. Spreadsheet applications interpret certain character sequences (such as those beginning with =, +, -, @, or |) as formulas and execute them automatically upon opening the file.

Root Cause

The root cause of this vulnerability is the lack of input validation and output encoding when writing server-provided data to CSV files. Knockpy version 4.1.1 does not sanitize or escape formula-triggering characters in HTTP response headers before including them in generated reports. This allows a malicious server controlled by an attacker to inject arbitrary formulas that execute in the context of the user's spreadsheet application.

Attack Vector

The attack requires network access and user interaction. An attacker controlling a server that Knockpy enumerates can craft malicious HTTP response headers containing spreadsheet formulas. When a security researcher or penetration tester runs Knockpy against the attacker's domain and subsequently opens the generated CSV report, the embedded formula executes automatically.

Common payload patterns include Dynamic Data Exchange (DDE) commands that can launch external applications, exfiltrate data from the spreadsheet, or download and execute malware. For example, a malicious Server header containing =cmd|'/C calc'!A0 would attempt to launch the Windows calculator when opened in vulnerable spreadsheet applications.

Technical details and proof-of-concept information are available at the Exploit-DB #49342 entry and the VulnCheck Advisory.

Detection Methods for CVE-2020-36941

Indicators of Compromise

  • Presence of CSV files generated by Knockpy containing formula characters (=, +, -, @, |) at the beginning of cell values
  • Unusual HTTP response headers from enumerated servers containing spreadsheet formula syntax
  • Unexpected process execution originating from spreadsheet application processes (e.g., EXCEL.EXE, soffice.exe)

Detection Strategies

  • Monitor for spreadsheet applications spawning child processes, which may indicate formula injection exploitation
  • Implement file inspection rules to detect CSV files containing potential formula injection payloads
  • Review network traffic logs for HTTP responses containing formula-like patterns in headers from untrusted sources
  • Use endpoint detection rules to identify DDE or command execution attempts from document applications

Monitoring Recommendations

  • Enable process creation logging to capture unexpected child processes from spreadsheet applications
  • Configure email gateway and file transfer monitoring to flag CSV files with suspicious content patterns
  • Implement user behavior analytics to detect unusual file operations following Knockpy report generation
  • Monitor for outbound network connections initiated by spreadsheet applications

How to Mitigate CVE-2020-36941

Immediate Actions Required

  • Upgrade Knockpy to a version newer than 4.1.1 that includes proper CSV sanitization
  • Configure spreadsheet applications to disable automatic formula execution and DDE features
  • Open CSV files generated by Knockpy in text editors first to inspect for malicious content before opening in spreadsheet applications
  • Consider using CSV viewers or applications that do not interpret formula syntax

Patch Information

Users should check the Knockpy GitHub repository for updated versions that address this CSV injection vulnerability. Review the commit history and release notes for security fixes related to output sanitization.

Additional advisory information is available from VulnCheck.

Workarounds

  • Manually prefix cell values with a single quote (') character when reviewing CSV output to prevent formula interpretation
  • Use the --json output format if available instead of CSV to avoid spreadsheet formula injection risks
  • Process Knockpy output through a sanitization script that escapes formula-triggering characters before opening in spreadsheet applications
  • Configure Microsoft Excel to disable DDE by navigating to File → Options → Trust Center → Trust Center Settings → External Content
bash
# Example: Sanitize CSV output to prevent formula injection
# Prefix potentially dangerous characters with a single quote
sed -i "s/^\([=+\-@|]\)/'\1/g; s/,\([=+\-@|]\)/,'\1/g" knockpy_output.csv

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechN/A

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-1236
  • Technical References
  • GitHub PoC Repository

  • Exploit-DB #49342

  • VulnCheck Advisory
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2025-15620: HiOS Switch Platform DoS Vulnerability

  • CVE-2024-14033: Hirschmann HiLCOS DoS Vulnerability
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