Cloudanix VulnDB

CVE-2023-52159

None

CVSS

—

EPSS

1.1%

Published

Mar 18, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in email filtering software can let attackers crash the service or take over the machine by sending specially crafted messages.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Moderate
Impact
Denial Of Service
Component
Application
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

A stack-based buffer overflow occurs in grossd when crafted SMTP transaction parameters trigger an incorrect strncat operation during log entry construction, enabling daemon crashes or arbitrary code execution.

Why it matters to the business

Email greylisting services may experience sudden outages or full server compromise, interrupting mail flow and requiring emergency recovery efforts.

How an attack unfolds

An attacker connects to the gross daemon and supplies malformed SMTP parameters that exceed expected lengths, causing the flawed strncat to overflow the stack buffer and either crash the process or redirect execution to attacker-controlled code.

How to fix it

Upgrade gross to version 1.0.4 or later; apply the exact fixed package versions listed for any affected distributions or dependencies.

How to confirm the fix worked

Confirm gross version is at least 1.0.4; review daemon logs for prior crashes around SMTP processing and test connectivity with non-malicious traffic.

Typical attack path

  1. Establish an SMTP connection to the exposed grossd service
  2. Transmit crafted transaction parameters containing excessive data
  3. Trigger the logging path that performs the unsafe strncat
  4. Overwrite adjacent stack memory to achieve crash or code execution

How to detect it

Inspect grossd and system logs for repeated crashes coinciding with SMTP sessions; search for anomalous log entries containing unusually long parameter strings.

What your security team should do

  • Prioritize upgrade of gross installations to the fixed release
  • Restrict exposure of grossd to trusted networks only
  • Enable enhanced logging and monitoring around SMTP parameter handling
  • Review downstream dependents for similar exposure given ecosystem prevalence

The record

A stack-based buffer overflow vulnerability in gross 0.9.3 through 1.x before 1.0.4 allows remote attackers to trigger a denial of service (grossd daemon crash) or potentially execute arbitrary code in grossd via crafted SMTP transaction parameters that cause an incorrect strncat for a log entry.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 gross 0 1.0.2-4.1~deb10u1
Debian:11 gross 0 1.0.2-4.1~deb11u1
Debian:12 gross 0 1.0.2-4.1~deb12u1
Debian:13 gross 0 1.0.2-4.1
Ubuntu:20.04:LTS gross 0 No fix
Ubuntu:20.04:LTS gross 0 1.0.2-4ubuntu0.20.04.1
Ubuntu:22.04:LTS gross 0 No fix
Ubuntu:22.04:LTS gross 0 1.0.2-4ubuntu0.22.04.1
Ubuntu:24.04:LTS gross 0 No fix
Ubuntu:24.04:LTS gross 0 1.0.2-4ubuntu0.24.04.1
Ubuntu:Pro:16.04:LTS gross 0 No fix
Ubuntu:Pro:16.04:LTS gross 0 1.0.2-4ubuntu0.16.04.1~esm1
Ubuntu:Pro:18.04:LTS gross 0 No fix
Ubuntu:Pro:18.04:LTS gross 0 1.0.2-4ubuntu0.18.04.1~esm1