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-2026-46474

CVE-2026-46474: Trog::TOTP Perl Weak Secret Vulnerability

CVE-2026-46474 is an information disclosure vulnerability in Trog::TOTP for Perl caused by weak secret generation using predictable rand function. This article covers technical details, affected versions, and mitigation.

Published: May 21, 2026

CVE-2026-46474 Overview

CVE-2026-46474 affects Trog::TOTP versions before 1.006 for Perl. The module generates Time-based One-Time Password (TOTP) secrets using Perl's built-in rand function. This function is not cryptographically secure and produces predictable output. Attackers who can predict the pseudo-random sequence can reconstruct TOTP secrets and bypass two-factor authentication. The flaw maps to [CWE-331: Insufficient Entropy]. The Exploit Prediction Scoring System (EPSS) rates this issue at 0.038% with a percentile of 11.4.

Critical Impact

Predictable secret generation allows attackers to derive TOTP secrets and defeat the second authentication factor for accounts protected by the affected library.

Affected Products

  • Trog::TOTP Perl module versions prior to 1.006
  • Applications that depend on Trog::TOTP for two-factor authentication secret provisioning
  • Distributions published through CPAN under author TEODESIAN

Discovery Timeline

  • 2026-05-15 - CVE-2026-46474 published to the National Vulnerability Database (NVD)
  • 2026-05-15 - Disclosure posted to the Openwall OSS Security list
  • 2026-05-18 - Last updated in the NVD database

Technical Details for CVE-2026-46474

Vulnerability Analysis

Trog::TOTP implements TOTP secret generation in lib/Trog/TOTP.pm. Versions before 1.006 call Perl's built-in rand function to produce the bytes that become the shared secret. Perl's rand is a non-cryptographic pseudo-random number generator (PRNG) seeded from limited entropy sources. Its output stream is deterministic once the seed is known or recovered.

An attacker who observes a small amount of generator output, or who can constrain the seed space, can replay the PRNG and derive the secret material issued to a user. With the secret recovered, the attacker can compute valid TOTP codes at any time. This converts the second authentication factor into a single point of failure rather than an independent control.

The weakness is classified as Insecure Random Number Generation under [CWE-331]. Network exploitability is possible because TOTP secrets enrolled remotely or transmitted through enrollment workflows can be targeted without local access. Refer to the MetaCPAN release diff for the patched function.

Root Cause

The root cause is the use of rand to generate cryptographic material. rand is documented as unsuitable for security purposes. The library should source secrets from a cryptographically secure PRNG such as Crypt::URandom or /dev/urandom.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker who can predict the PRNG state derives the TOTP secret and produces valid one-time codes. This enables account takeover when combined with valid primary credentials.

No verified public exploit code is available. The vulnerability mechanism is described in the MetaCPAN release changes.

Detection Methods for CVE-2026-46474

Indicators of Compromise

  • Repeated successful TOTP validations from new geographies or devices immediately after enrollment
  • Authentication events where the same TOTP code is reused or where codes succeed outside expected time skew windows
  • Presence of Trog::TOTP versions earlier than 1.006 in CPAN dependency manifests such as cpanfile, Makefile.PL, or META.json

Detection Strategies

  • Inventory all Perl applications and scan installed module versions with cpan -l or corelist style tooling to flag Trog::TOTP < 1.006
  • Audit application source for direct calls to rand in any authentication or secret-generation path
  • Correlate multi-factor authentication (MFA) success events with primary credential failures or password spraying patterns

Monitoring Recommendations

  • Log every TOTP enrollment and validation event with user, source IP, and timestamp
  • Alert on TOTP successes that follow primary authentication failures from unrelated source addresses
  • Track CPAN dependency drift in CI/CD pipelines and fail builds on vulnerable Trog::TOTP versions

How to Mitigate CVE-2026-46474

Immediate Actions Required

  • Upgrade Trog::TOTP to version 1.006 or later across all production and development environments
  • Invalidate and re-enroll all TOTP secrets generated by vulnerable versions, as existing secrets remain predictable after the upgrade
  • Review authentication logs since the deployment of any vulnerable version for signs of unauthorized MFA success

Patch Information

The maintainer released Trog::TOTP 1.006, which replaces the use of rand with a cryptographically secure source. Review the patched code in the MetaCPAN release diff and the release changes.

Workarounds

  • If immediate upgrade is not possible, replace the secret generation call with a wrapper that reads from Crypt::URandom::urandom or /dev/urandom
  • Temporarily disable TOTP enrollment for new users until the patched version is deployed
  • Enforce additional authentication signals such as device binding or conditional access to reduce reliance on the TOTP factor
bash
# Upgrade Trog::TOTP to the patched release
cpanm Trog::TOTP@1.006

# Verify installed version
perl -MTrog::TOTP -E 'say $Trog::TOTP::VERSION'

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechPerl

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-331
  • Technical References
  • MetaCPAN Release Changes

  • MetaCPAN Release Diff

  • Openwall OSS Security Post
  • Related CVEs
  • CVE-2026-47373: Perl Crypt::SaltedHash Timing Attack Flaw

  • CVE-2026-8700: Crypt::DSA Perl Information Disclosure Flaw

  • CVE-2026-8368: Perl LWP::UserAgent Header Leak Vulnerability

  • CVE-2026-45179: Plack Middleware Statsd IP Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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