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. A Debian advisory calls a fix DSA-5724-1, Ubuntu calls the same fix USN-6859-1. These are different kinds of IDs from different publishers. Each of them can be followed to the fix for your server.

Two kinds of IDs

Vulnerability IDs name a vulnerability: CVE, GHSA, OSV-style IDs such as GO- or PYSEC-. They say what is wrong and which upstream versions are affected.

Advisory IDs name 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 to know what the problem is, the advisory to know which package version 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. A scanner that only knows CVEs misses those.

OSV is two things. It is a JSON format for vulnerability data that many databases use, and it is 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"
]

This is why a scanner may list one bug twice. Asking OSV about an old version of the Python package jinja2 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.

Advisories are the most exact source for your server, because they name 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): the fix was backported. The guide on backports and version numbers explains why that is normal.

Which ID to use where

  • In 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").
  • For a language dependency without a CVE: the GHSA ID.
  • When searching for 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.
  • When talking to a vendor: their own advisory ID; they may not track the CVE under that name.

Sources

Check your servers every day

The agent of Patchbrief reports the packages and settings of a server once a day; the digest names what to fix first.

Start free