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-2023-1326

CVE-2023-1326: Canonical Apport Privilege Escalation Flaw

CVE-2023-1326 is a privilege escalation vulnerability in Canonical Apport that allows local attackers to gain elevated privileges under specific sudo configurations. This article covers technical details, affected versions, and mitigations.

Published: February 4, 2026

CVE-2023-1326 Overview

A privilege escalation vulnerability was discovered in apport-cli version 2.26.0 and earlier. This vulnerability is similar to CVE-2023-26604 and allows a local attacker to escalate privileges under specific system configurations. The attack requires that unprivileged users are configured to run sudo apport-cli, that less is configured as the pager, and that the terminal size can be manipulated by the attacker.

Critical Impact

Local privilege escalation to root through pager command execution when apport-cli is run with elevated privileges via sudo. While the specific configuration requirements make exploitation unlikely in default deployments, systems with permissive sudo configurations for apport-cli are at risk.

Affected Products

  • Canonical Apport version 2.26.0 and earlier
  • Ubuntu Linux 18.04 LTS
  • Ubuntu Linux 20.04 LTS
  • Ubuntu Linux 22.04 LTS
  • Ubuntu Linux 22.10

Discovery Timeline

  • April 13, 2023 - CVE-2023-1326 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2023-1326

Vulnerability Analysis

This privilege escalation vulnerability stems from improper privilege management (CWE-269) in the apport-cli utility. When apport-cli is executed with elevated privileges through sudo or pkexec, and the system uses less as the default pager, the pager process inherits the elevated privileges. An attacker who can control the terminal size can trigger less to spawn a shell with root privileges.

The core issue is that the sensible-pager command was being executed with root privileges rather than dropping privileges to the original calling user. This creates a pathway for privilege escalation since less supports shell escape functionality that allows command execution.

Root Cause

The vulnerability exists because the apport-cli tool failed to properly drop privileges when invoking the system pager. When a user runs sudo apport-cli, the entire process, including any spawned subprocesses like the pager, runs with root privileges. The less pager supports various shell escape commands (such as !command syntax) that execute with the privileges of the parent process, enabling an attacker to spawn a root shell.

Attack Vector

This is a local attack vector requiring the attacker to have shell access to the target system. The exploitation chain requires:

  1. A sudo configuration that allows unprivileged users to run apport-cli with elevated privileges
  2. The less command configured as the system pager
  3. The ability to manipulate terminal size to trigger the pager display
  4. Knowledge of less shell escape sequences to spawn a privileged shell

The patch modifies the code to use run_as_real_user() when invoking the pager, ensuring the pager process runs with the original user's privileges rather than root:

python
     }
 
 
-def run_as_real_user(args: list[str]) -> None:
+def run_as_real_user(
+    args: list[str], *, get_user_env: bool = False, **kwargs
+) -> None:
     """Call subprocess.run as real user if called via sudo/pkexec.
 
     If we are called through pkexec/sudo, determine the real user ID and
     run the command with it to get the user's web browser settings.
+    If get_user_env is set to True, the D-BUS address and XDG_DATA_DIRS
+    is grabbed from a running gvfsd and added to the process environment.
     """
     uid = _get_env_int("SUDO_UID", _get_env_int("PKEXEC_UID"))
     if uid is None or not get_process_user_and_group().is_root():
-        subprocess.run(args, check=False)
+        subprocess.run(args, check=False, **kwargs)
         return
 
     pwuid = pwd.getpwuid(uid)

Source: GitHub Commit e5f78cc89f1f5888b6a56b785dddcb0364c48ecb

The corresponding change in bin/apport-cli replaces the direct subprocess call with the secure function:

text
         self.in_update_view = True
         report = self._get_details()
         try:
-            subprocess.run(
+            apport.ui.run_as_real_user(
                 ["/usr/bin/sensible-pager"],
-                check=False,
                 input=report.encode("UTF-8"),
                 stdout=stdout,
             )

Source: GitHub Commit e5f78cc89f1f5888b6a56b785dddcb0364c48ecb

Detection Methods for CVE-2023-1326

Indicators of Compromise

  • Unexpected shell processes spawned as child processes of less running under apport-cli
  • Unusual sudo apport-cli command executions by unprivileged users
  • Process trees showing privilege escalation patterns from pager to shell

Detection Strategies

  • Monitor for sudo apport-cli executions in system logs and audit trails
  • Implement auditd rules to track executions of /usr/bin/apport-cli with elevated privileges
  • Watch for shell escape patterns in process monitoring where less spawns /bin/sh or /bin/bash
  • Review sudoers configurations for overly permissive apport-cli entries

Monitoring Recommendations

  • Enable command-line auditing with auditd for apport-related binaries
  • Configure SIEM alerts for anomalous sudo usage patterns involving apport
  • Monitor process parent-child relationships for suspicious privilege transitions
  • Review and baseline normal apport-cli usage patterns in your environment

How to Mitigate CVE-2023-1326

Immediate Actions Required

  • Update Canonical Apport to the latest patched version immediately
  • Review and restrict sudoers configurations to remove unnecessary apport-cli permissions
  • Consider using an alternative pager that does not support shell escapes for system utilities
  • Audit systems for any evidence of exploitation attempts

Patch Information

Canonical has released security updates to address this vulnerability. The fix is documented in Ubuntu Security Notice USN-6018-1. The patch ensures that when apport-cli is run with elevated privileges via sudo or pkexec, the pager process is executed with the original user's privileges rather than root privileges. The specific commit implementing this fix is available at GitHub commit e5f78cc89f1f5888b6a56b785dddcb0364c48ecb.

Workarounds

  • Remove any sudoers entries that allow unprivileged users to run apport-cli with elevated privileges
  • Configure an alternative pager (e.g., cat or more) that does not support shell escape functionality
  • Restrict access to the apport-cli command entirely for non-administrative users
  • Implement mandatory access control policies (AppArmor/SELinux) to limit apport-cli process capabilities
bash
# Configuration example
# Review and remove overly permissive sudoers entries
sudo visudo -f /etc/sudoers.d/apport-cli

# Remove or comment out lines like:
# ALL ALL=(ALL) NOPASSWD: /usr/bin/apport-cli

# Alternative: Set a safer pager system-wide
echo 'export PAGER=/bin/cat' >> /etc/environment

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechCanonical

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability4.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-269
  • Vendor Resources
  • GitHub Commit Update

  • Ubuntu Security Notice USN-6018-1
  • Related CVEs
  • CVE-2025-5054: Canonical Apport Race Condition Vulnerability

  • CVE-2022-3328: Canonical Snapd Race Condition Flaw

  • CVE-2023-1523: Canonical Snapd RCE 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