Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-7285

A NULL pointer access issue was discovered in Asterisk 15.x through 15.2.1. The RTP support in Asterisk maintains its own registry of dynamic codecs and desired payload numbers. While an SDP negotiation may result in a codec using a different payload number, these desired ones are still stored internally. When an RTP packet was received, this registry would be consulted if the payload number was not found in the negotiated SDP. This registry was incorrectly consulted for all packets, even those which are dynamic. If the payload number resulted in a codec of a different type than the RTP stream (for example, the payload number resulted in a video codec but the stream carried audio), a crash could occur if no stream of that type had been negotiated. This was due to the code incorrectly assuming that a stream of that type would always exist.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-7285
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:12 UTC · Revision 1

Source evidence

CVE-2018-7285

core-osv · Original source

Published 22 Feb 2018, 00:29 UTC

A NULL pointer access issue was discovered in Asterisk 15.x through 15.2.1. The RTP support in Asterisk maintains its own registry of dynamic codecs and desired payload numbers. While an SDP negotiation may result in a codec using a different payload number, these desired ones are still stored internally. When an RTP packet was received, this registry would be consulted if the payload number was not found in the negotiated SDP. This registry was incorrectly consulted for all packets, even those which are dynamic. If the payload number resulted in a codec of a different type than the RTP stream (for example, the payload number resulted in a video codec but the stream carried audio), a crash could occur if no stream of that type had been negotiated. This was due to the code incorrectly assuming that a stream of that type would always exist.

osv:CVE-2018-7285
Complete source record
{
  "id": "e59fc821616c5d6fe0714d4f9a2ed7041e42176fa1cd2a74a7d23b1bae88f492",
  "url": "https://osv.dev/vulnerability/CVE-2018-7285",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-7285",
    "summary": "A NULL pointer access issue was discovered in Asterisk 15.x through 15.2.1. The RTP support in Asterisk maintains its own registry of dynamic codecs and desired payload numbers. While an SDP negotiation may result in a codec using a different payload number, these desired ones are still stored internally. When an RTP packet was received, this registry would be consulted if the payload number was not found in the negotiated SDP. This registry was incorrectly consulted for all packets, even those which are dynamic. If the payload number resulted in a codec of a different type than the RTP stream (for example, the payload number resulted in a video codec but the stream carried audio), a crash could occur if no stream of that type had been negotiated. This was due to the code incorrectly assuming that a stream of that type would always exist.",
    "evidence": "osv:CVE-2018-7285",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-7285",
      "aliases": [
        "CVE-2018-7285"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/asterisk/asterisk",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d4cc63728def7ca06ad3f70547de87bc5c9ef7c0"
                },
                {
                  "last_affected": "6a815cb3db06986dba8cda0f9f3d0d65629a1443"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:digium:asterisk:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "15.0.0"
                      },
                      {
                        "last_affected": "15.2.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-7285.json"
          }
        }
      ],
      "modified": "2026-10-24T10:31:04.378760880Z",
      "provider": "osv",
      "references": [],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-7285",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 440491,
  "published_at": "2018-02-22T00:29:01.063+00:00"
}