Patchfirst
CVE-2023-2868 KEVPublic exploit Critical · 9.8 EPSS 86.8%

Barracuda Networks ESG Appliance Improper Input Validation Vulnerability

Barracuda Networks · Email Security Gateway (ESG) Appliance

Summary

The Barracuda Email Security Gateway (ESG) Appliance contains an improper input validation flaw in its handling of .tar archives, where file names inside a supplied archive are not fully sanitized. An unauthenticated remote attacker with network access can craft a .tar file with specially formatted file names that causes a system command to be executed through Perl's qx operator, requiring no user interaction and running with the privileges of the Email Security Gateway product.

Official description · NVD

A remote command injection vulnerability exists in the Barracuda Email Security Gateway (appliance form factor only) product effecting versions 5.1.3.001-9.2.0.006. The vulnerability arises out of a failure to comprehensively sanitize the processing of .tar file (tape archives). The vulnerability stems from incomplete input validation of a user-supplied .tar file as it pertains to the names of the files contained within the archive. As a consequence, a remote attacker can specifically format these file names in a particular manner that will result in remotely executing a system command through Perl's qx operator with the privileges of the Email Security Gateway product. This issue was fixed as part of BNSF-36456 patch. This patch was automatically applied to all customer appliances.

Breakdown
69.8 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
4/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

  3. What can follow

First seen exploited 6 days before it was disclosed. Public exploit code (Metasploit) was available 1 day before disclosure.

  1. First seen exploitedVulnCheck KEV evidence6 days before
  2. Public exploit codeMetasploit1 day before
  3. Disclosedday 0
  4. Added to CISA KEVEU database agrees+2 days

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

4 , grouped by in kill-chain order 4

Initial AccessTA0001

MITRE CTID mapping of the KEV entry · how it is exploited

CVE-2023-2868 in the Barracuda Email Security Gateway (ESG) had been reportedly exploited for espionage and exfiltration efforts by UNC4841 attributed by Mandiant. Following the exploitation of CVE-2023-2868, malware SALTWATER, SEASPY, and SEASIDE were identified to be used in intrusions.

ExecutionTA0002

MITRE CTID mapping of the KEV entry · primary impact

Command and ControlTA0011

MITRE CTID mapping of the KEV entry · follow-on activity

ExfiltrationTA0010

MITRE CTID mapping of the KEV entry · follow-on activity

Detection

0 rules for this CVE · 211 general rules for its techniques

Rules for this CVE

0 that reference CVE-2023-2868 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Spearphishing AttachmentT1566.00124 general rules
Command and Scripting InterpreterT105995 general rules
Ingress Tool TransferT110587 general rules
Exfiltration Over C2 ChannelT10415 general rules

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

3 links, grouped by NVD tag (2 duplicates merged)
↑ ↓ chooseEnter openEsc close