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
    • 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-2021-31988

CVE-2021-31988: Axis OS SMTP Injection Vulnerability

CVE-2021-31988 is an SMTP injection flaw in Axis OS that allows attackers to inject arbitrary email headers via CRLF characters. This article covers the technical details, affected versions, security impact, and mitigation.

Updated: May 16, 2026

CVE-2021-31988 Overview

CVE-2021-31988 is a CRLF (Carriage Return Line Feed) injection vulnerability affecting Axis OS, the operating system used on Axis network cameras and related devices. The flaw resides in the SMTP test functionality, where a user-controlled parameter fails to validate input. Attackers can inject CRLF control characters to add arbitrary SMTP headers into generated test emails. The vulnerability is classified under [CWE-74] (Improper Neutralization of Special Elements in Output) and [CWE-1286] (Improper Validation of Syntactic Correctness of Input).

Critical Impact

Authenticated attackers can manipulate SMTP traffic, inject malicious headers, and potentially leverage the device to send crafted emails impacting confidentiality, integrity, and availability.

Affected Products

  • Axis OS (active track)
  • Axis OS 2016 LTS
  • Axis OS 2018 LTS
  • Axis OS 2020 LTS

Discovery Timeline

  • 2021-10-05 - CVE-2021-31988 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-31988

Vulnerability Analysis

The vulnerability exists in the SMTP test feature of Axis OS, which allows administrators to verify mail server configuration by sending a test email. The component accepts a user-supplied parameter that is concatenated directly into the SMTP message without sanitization. Because the parameter is not filtered for control characters, an attacker can embed CRLF sequences (\r\n) to terminate the current SMTP header line and inject additional headers or message body content.

The vulnerability requires user interaction and operates over the network, meaning an authenticated user with access to the SMTP test configuration interface can trigger the flaw. Successful exploitation impacts the integrity of outbound mail and may enable phishing, spoofed sender identities, or abuse of the device as a mail injection relay.

Root Cause

The root cause is missing input validation on a user-controlled SMTP test parameter. The application does not strip or reject CR (0x0D) and LF (0x0A) bytes before incorporating the value into SMTP protocol output, violating header separation rules defined in RFC 5322.

Attack Vector

An attacker submits a crafted value to the SMTP test endpoint containing embedded CRLF characters followed by attacker-controlled SMTP headers such as Bcc:, From:, or additional message content. When the device generates the test email, the injected headers are treated as legitimate, allowing the attacker to alter recipients, spoof sender fields, or append arbitrary message bodies. The exploitation mechanism is described in the Axis Technology Note CVE-2021-31988.

Detection Methods for CVE-2021-31988

Indicators of Compromise

  • Outbound SMTP traffic from Axis devices containing unexpected Bcc, Cc, or From headers not configured by administrators.
  • Test email log entries with parameter values containing raw %0D%0A or literal CR/LF byte sequences.
  • Unusual recipients receiving mail originating from Axis camera IP addresses.

Detection Strategies

  • Inspect Axis device configuration logs for SMTP test invocations with anomalous parameter lengths or non-printable characters.
  • Apply network IDS signatures that flag HTTP requests to Axis administration endpoints containing URL-encoded CRLF sequences (%0d%0a).
  • Correlate authentication events on Axis devices with subsequent outbound SMTP activity to identify abuse of the test feature.

Monitoring Recommendations

  • Forward Axis device syslog output to a centralized SIEM for retention and correlation with email gateway logs.
  • Monitor SMTP relay logs for messages originating from camera subnets, focusing on header anomalies.
  • Alert on administrative logins to Axis devices from non-management network segments.

How to Mitigate CVE-2021-31988

Immediate Actions Required

  • Update affected Axis devices to the firmware versions identified in the vendor advisory for each LTS track.
  • Restrict administrative access to Axis devices using network segmentation and ACLs limiting management interfaces to trusted hosts.
  • Enforce strong, unique credentials for all administrator accounts on Axis OS devices.
  • Audit existing SMTP configurations and recently sent test emails for signs of tampering.

Patch Information

Axis Communications has released patched firmware for the affected active and LTS tracks. Refer to the Axis Technology Note CVE-2021-31988 for the specific fixed versions corresponding to Axis OS, Axis OS 2016 LTS, Axis OS 2018 LTS, and Axis OS 2020 LTS.

Workarounds

  • Disable the SMTP notification and test functionality on devices that do not require email alerts.
  • Place Axis devices behind an outbound SMTP relay that strips or rejects messages with malformed headers.
  • Limit administrative interface exposure to a dedicated management VLAN with firewall enforcement.
bash
# Configuration example: restrict Axis management access via iptables
iptables -A FORWARD -s 10.10.50.0/24 -d <axis_device_ip> -p tcp --dport 443 -j ACCEPT
iptables -A FORWARD -d <axis_device_ip> -p tcp --dport 443 -j DROP

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechAxis Os

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.61%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-1286

  • CWE-74
  • Vendor Resources
  • Axis Technology Note CVE-2021-31988
  • Related CVEs
  • CVE-2024-0066: Axis OS O3C Information Disclosure Flaw

  • CVE-2021-31986: Axis OS Buffer Overflow Vulnerability

  • CVE-2024-7784: AXIS OS Secure Boot Bypass 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