Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-3120: A stack-buffer overflow vulnerability exists in all versions of sngrep since v1.4.1

56
This month
CRITICAL 9.0REMOTEUPGRADE

CVE-2024-3120 is a critical-severity flaw (CVSS 9.0) affecting sngrep. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

A stack-buffer overflow vulnerability exists in all versions of sngrep since v1.4.1. The flaw is due to inadequate bounds checking when copying 'Content-Length' and 'Warning' headers into fixed-size buffers in the sip_validate_packet and sip_parse_extra_headers functions within src/sip.c. This vulnerability allows remote attackers to execute arbitrary code or cause a denial of service (DoS) via crafted SIP messages.

Why this priority

  • Critical severity
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.0 (Critical)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededNone
User interactionNone
EPSS exploit chance1.8% (top 21%)
CISA exploited listNo
WeaknessCWE-120, CWE-787
Published2024-04-10
Last modified2026-06-17
Publisher (CNA): Pentraze · Vendor: irontec

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

irontec sngrep UPGRADE
Affected: >= 1.4.1 and < 1.8.1
Fixed in: 1.8.1
Safe to downgrade to: a release before 1.4.1
1. Check installed version
apt-cache policy sngrep || rpm -q sngrep || sngrep --version
2. UPGRADE to 1.8.1 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade sngrep
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade sngrep
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 1.4.1 (Debian / Ubuntu)
apt-cache madison sngrep sudo apt install sngrep=<VERSION_BEFORE_1.4.1> sudo apt-mark hold sngrep
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list sngrep sudo dnf downgrade sngrep-<VERSION_BEFORE_1.4.1> sudo dnf versionlock add sngrep
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2024-3120?

sngrep: upgrade to 1.8.1. Exact commands for each OS are on this page.

Is CVE-2024-3120 being exploited?

CVE-2024-3120 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2024-3120 affect?

CVE-2024-3120 affects sngrep. Severity is critical (CVSS 9.0). A stack-buffer overflow vulnerability exists in all versions of sngrep since v1.4.1. The flaw is due to inadequate bounds checking when copying 'Content-Length' and 'Warning' headers into fixed-size buffers in the sip_validate_packet and si

How urgent is CVE-2024-3120?

Priority 56/100. Critical severity; Remotely exploitable, no login, no user action

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.