Skip to content
Heist/ feed
Back to feed
Critical

sngrep — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2024-3120

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.

Products
sngrep
Affected versions
0.4.1-1, 1.0.0-1, 1.1.0-1, 1.2.0-1, 1.2.0-1build1, 1.4.10-1, 1.4.10-1ubuntu0.1, 1.4.3-1, 1.4.4-1, 1.4.4-2, 1.4.5-1, 1.4.6-1, 1.4.6-2, 1.4.9-1, 1.7.0-2, 1.8.0-1, 1.8.0-1build1, 1.8.0-1build2, 1.8.2-1, 1.8.3-1, 1.8.4-1
Fixed versions
Not specified
CVEs
CVE-2024-3120
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:13 UTC · Revision 1

Source evidence

UBUNTU-CVE-2024-3120

core-osv · Original source

Published 10 Apr 2024, 00:15 UTC

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.

osv:UBUNTU-CVE-2024-3120

sngrep

Fixed versions: Not specified

sngrep

Fixed versions: Not specified

sngrep

Fixed versions: Not specified

sngrep

Fixed versions: Not specified

sngrep

Fixed versions: Not specified

sngrep

Fixed versions: Not specified

sngrep

Fixed versions: Not specified

sngrep

Fixed versions: Not specified

Complete source record
{
  "id": "3b513087ef8d2e9c23d10f66a88896770295152333658f6ab1edccf167e34a5a",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-3120",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2024-3120",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2024-3120",
    "products": [
      {
        "name": {
          "value": "sngrep",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.0.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.0-1build1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sngrep",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.4.3-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.4.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.4.4-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.4.5-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sngrep",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.4.6-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.4.6-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sngrep",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.4.9-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.4.10-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.4.10-1ubuntu0.1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sngrep",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.7.0-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.8.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.8.0-1build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.8.0-1build2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sngrep",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.8.2-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sngrep",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.8.3-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1.8.4-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sngrep",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.8.2-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.8.3-1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2024-3120",
      "aliases": [
        "UBUNTU-CVE-2024-3120"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sngrep",
            "purl": "pkg:deb/ubuntu/sngrep?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "0.4.1-1",
            "1.0.0-1",
            "1.1.0-1",
            "1.2.0-1",
            "1.2.0-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3120.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "sngrep",
                "binary_version": "1.2.0-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sngrep",
            "purl": "pkg:deb/ubuntu/sngrep?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.4.3-1",
            "1.4.4-1",
            "1.4.4-2",
            "1.4.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3120.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "sngrep",
                "binary_version": "1.4.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sngrep",
            "purl": "pkg:deb/ubuntu/sngrep?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.4.6-1",
            "1.4.6-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3120.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "sngrep",
                "binary_version": "1.4.6-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sngrep",
            "purl": "pkg:deb/ubuntu/sngrep?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.4.9-1",
            "1.4.10-1",
            "1.4.10-1ubuntu0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3120.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "sngrep",
                "binary_version": "1.4.10-1ubuntu0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sngrep",
            "purl": "pkg:deb/ubuntu/sngrep?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.7.0-2",
            "1.8.0-1",
            "1.8.0-1build1",
            "1.8.0-1build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3120.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "sngrep",
                "binary_version": "1.8.0-1build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sngrep",
            "purl": "pkg:deb/ubuntu/sngrep?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.8.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3120.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "sngrep",
                "binary_version": "1.8.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sngrep",
            "purl": "pkg:deb/ubuntu/sngrep?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.8.3-1",
            "1.8.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3120.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "sngrep",
                "binary_version": "1.8.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sngrep",
            "purl": "pkg:deb/ubuntu/sngrep?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.8.2-1",
            "1.8.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3120.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "sngrep",
                "binary_version": "1.8.3-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:44.579781594Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-3120"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2024-3120",
        "https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6",
        "https://github.com/irontec/sngrep/releases/tag/v1.8.1",
        "https://pentraze.com/vulnerability-reports/",
        "https://www.cve.org/CVERecord?id=CVE-2024-3120"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-3120",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 356112,
  "published_at": "2024-04-10T00:15:00+00:00"
}