Guides / Basics

CVE, GHSA, OSV, DSA, USN, RHSA: vulnerability IDs and how they relate

beginnerUpdated 26 Nov 2026752 words

A scanner report can show the same bug as CVE-2023-39325, GHSA-4374-p667-p6c8 and GO-2023-2102. Debian calls a fix DSA-5724-1, and Ubuntu calls the same fix USN-6859-1. Each of these IDs leads, through aliases and advisories, to the package version that fixes your server.

Two kinds of IDs

A vulnerability ID names a vulnerability: CVE, GHSA, or an OSV-style ID such as GO- or PYSEC-. It says what is wrong and which upstream versions are affected.

An advisory ID names a fix published by a distribution or vendor: DSA, DLA, USN, RHSA, ALSA and others. One advisory can fix several CVEs, and one CVE gets a separate advisory from each distribution.

For a server you usually need both: the vulnerability ID for what the problem is, the advisory for the package version that fixes it on your system.

Vulnerability IDs

Prefix Publisher Covers Example
CVE CVE Program, assigned by CNAs everything CVE-2024-6387
GHSA GitHub Advisory Database language packages: npm, PyPI, Maven, Go, RubyGems, Composer, crates and more GHSA-jfh8-c2jp-5v3q (Log4Shell)
GO Go vulnerability database Go modules and the standard library GO-2023-2102
PYSEC PyPI advisory database Python packages PYSEC-2021-66
RUSTSEC RustSec advisory database Rust crates
MAL OpenSSF malicious packages packages published with malicious code

GHSA IDs come from GitHub. Many GHSAs also have a CVE, and GitHub is itself a CNA that assigns CVEs for advisories in repositories on GitHub. Some GHSAs never get a CVE, and a scanner that only knows CVEs misses those.

OSV is a JSON format for vulnerability data that many databases use, and also the database at osv.dev that collects them. In OSV, every entry lists its other names under aliases:

curl -s https://api.osv.dev/v1/vulns/GO-2023-2102 | jq '.aliases'
[
  "BIT-golang-2023-39325",
  "CVE-2023-39325",
  "GHSA-4374-p667-p6c8"
]

A scanner may therefore list one bug twice. Asked about an old version of the Python package jinja2, OSV returns each vulnerability twice, once as GHSA and once as PYSEC:

curl -s -d '{"package":{"name":"jinja2","ecosystem":"PyPI"},"version":"2.11.2"}' \
  https://api.osv.dev/v1/query | jq -r '.vulns[] | "\(.id) \(.aliases|join(","))"'
GHSA-g3rq-g295-4j3m CVE-2020-28493,PYSEC-2021-66,SNYK-PYTHON-JINJA2-1012994
PYSEC-2021-66 CVE-2020-28493,GHSA-g3rq-g295-4j3m,SNYK-PYTHON-JINJA2-1012994
...

When you count findings, count by CVE where there is one, and merge entries that are aliases of each other.

Advisory IDs of Linux distributions

Prefix Distribution Example
DSA Debian Security Advisory, for the current stable releases DSA-5724-1 (OpenSSH, CVE-2024-6387)
DLA Debian LTS Advisory, for releases in long-term support DLA-2899-1 (polkit, CVE-2021-4034, Debian 9)
USN Ubuntu Security Notice USN-6859-1 (OpenSSH, CVE-2024-6387)
RHSA Red Hat Security Advisory RHSA-2024:4312 (OpenSSH, CVE-2024-6387)
ALSA AlmaLinux Security Advisory
RLSA Rocky Linux Security Advisory
ALAS Amazon Linux Security Advisory
SUSE-SU SUSE and openSUSE update

The suffix of DSA and USN numbers (-1, -2) counts follow-ups to the same advisory: a -2 often fixes a regression of the first update or brings the same fix to more releases. Alpine does not publish numbered advisories; its security database lists fixed versions per CVE.

For your server, the advisory is the most exact source, because it names the fixed package version for each release. USN-6859-1, for example, lists 1:9.6p1-3ubuntu13.3 for Ubuntu 24.04 and 1:8.9p1-3ubuntu0.10 for Ubuntu 22.04. Those versions do not match the upstream fix (OpenSSH 9.8p1) because the fix was backported. Backports and version numbers explains why that is normal.

Which ID to use where

Where ID
A ticket or a change log The CVE ID when one exists, plus the advisory you installed ("CVE-2024-6387, fixed by DSA-5724-1").
A language dependency without a CVE The GHSA ID.
Whether your system is affected The CVE ID in the tracker of your distribution, such as https://security-tracker.debian.org/tracker/CVE-2024-6387 or https://ubuntu.com/security/CVE-2024-6387.
A conversation with a vendor Their own advisory ID; they may not track the CVE under that name.

Sources

Check your servers every day

The Vulnpocalypse collector reports the packages and settings of a server once a day, and the digest lists what to fix, most urgent first.

Start free