LiveActive security incident?Get immediate response
CVE Record

CVE-2021-47901: dirsearch 0.4.1 - CSV Injection

Dirsearch 0.4.1 contains a CSV injection vulnerability when using the --csv-report flag that allows attackers to inject formulas through redirected endpoints. Attackers can craft malicious server redirects with comma-separated paths containing Excel formulas to manipulate the generated CSV report.

CriticalCVSS 9.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2021-47901 affects dirsearch 0.4.1 when CSV reports are generated. A malicious website can cause crafted redirect data to be written into the report as spreadsheet formulas. If that report is later opened in spreadsheet software, the formulas may execute or manipulate report data.

Executive priority

Prioritize for security teams and automation that scan untrusted sites and share CSV reports. This is not a typical server takeover bug, but it can turn reporting workflows into a data integrity or endpoint compromise risk if spreadsheet handling is unsafe.

Technical view

The issue is CSV formula injection, categorized as CWE-1236, in dirsearch 0.4.1 with the --csv-report flag. Attacker-controlled redirects can place comma-separated paths containing formulas into generated CSV output. The provided record rates it CVSS 9.8, but practical impact depends on use of CSV reporting and downstream spreadsheet handling.

Likely exposure

Exposure is limited to environments using maurosoria dirsearch version 0.4.1 and generating CSV reports against attacker-controlled or untrusted web targets. Systems that do not use CSV output, do not scan untrusted targets, or do not open reports in spreadsheet tools have lower practical exposure.

Exploitation context

Public exploit information is referenced by ExploitDB, but the source bundle does not show CISA KEV listing or confirmed active exploitation. Exploitation requires influencing HTTP redirects encountered by dirsearch and depends on how the generated CSV report is consumed afterward.

Researcher notes

The record names dirsearch 0.4.1 only. Available sources identify public exploit material and a VulnCheck advisory, but no KEV status. Validate behavior in a controlled lab without weaponizing payloads, and distinguish scanner-side report injection from direct compromise of the scanned host.

Mitigation direction

  • Identify whether dirsearch 0.4.1 is installed or packaged in security tooling environments.
  • Avoid using CSV report output against untrusted targets until vendor guidance is confirmed.
  • Treat generated CSV reports from untrusted scans as unsafe spreadsheet input.
  • Check the upstream dirsearch repository and advisories for fixed versions or official guidance.

Validation and detection

  • Inventory dirsearch versions in analyst workstations, CI jobs, and scanning containers.
  • Review automation for use of CSV report generation.
  • Check whether reports are opened in Excel, LibreOffice, or similar spreadsheet software.
  • Confirm remediation status against vendor repository or advisory updates.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-1236: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-47901 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.8CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H3.95.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.8Critical
CVSS 3.1 vector shape for CVE-2021-47901Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
maurosoriadirsearch0.4.1Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-1236 · source CWE mapping

Improper Neutralization of Formula Elements in a CSV File

Improper Neutralization of Formula Elements in a CSV File represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.