CVE-2021-24002
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-24002 is a security vulnerability discovered in Mozilla Firefox browsers that affects Firefox ESR < 78.10, Thunderbird < 78.10, and Firefox < 88. The vulnerability was discovered by Daniel Santos and disclosed on April 19, 2021. The issue allows arbitrary command execution on FTP servers through specially crafted FTP URLs containing encoded newline characters (Mozilla Advisory, CVE Details).

Technical details

The vulnerability occurs when a user clicks on an FTP URL containing encoded newline characters (%0A and %0D). These special characters are interpreted as actual newlines, allowing arbitrary commands to be sent to the FTP server. The vulnerability was introduced when a previous security check for special characters was accidentally removed during code changes (Mozilla Bug). The issue is rated as moderate severity, with a CVSS 3.1 score of 5.5 (AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L) (Mozilla Bug).

Impact

The vulnerability allows attackers to execute arbitrary FTP commands on servers that the victim has access to. This could lead to unauthorized file deletion or remote file downloads. More significantly, attackers could use PORT commands to download files from internal FTP servers to attacker-controlled servers, potentially exposing sensitive data from corporate networks that are not directly accessible from the internet (Mozilla Bug).

Mitigation and workarounds

The vulnerability was fixed in Firefox 88, Firefox ESR 78.10, and Thunderbird 78.10. The fix involves rejecting URLs that contain embedded \r\n\0 characters. Additionally, FTP support was disabled by default in Firefox 88, though it could still be enabled via preference settings or web extensions (Mozilla Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management