Skip to content

Instantly share code, notes, and snippets.

@hansgafriedzal
Created June 16, 2025 10:27
Show Gist options
  • Save hansgafriedzal/3af6bd48cce34f579f08e351723de68d to your computer and use it in GitHub Desktop.
Save hansgafriedzal/3af6bd48cce34f579f08e351723de68d to your computer and use it in GitHub Desktop.
@(
'CVE-2025-24065'
'CVE-2025-24068'
'CVE-2025-24069'
'CVE-2025-29828'
'CVE-2025-3052'
'CVE-2025-32710'
'CVE-2025-32712'
'CVE-2025-32713'
'CVE-2025-32714'
'CVE-2025-32715'
'CVE-2025-32716'
'CVE-2025-32718'
'CVE-2025-32719'
'CVE-2025-32720'
'CVE-2025-32721'
'CVE-2025-32722'
'CVE-2025-32724'
'CVE-2025-32725'
'CVE-2025-33050'
'CVE-2025-33052'
'CVE-2025-33053'
'CVE-2025-33055'
'CVE-2025-33056'
'CVE-2025-33057'
'CVE-2025-33058'
'CVE-2025-33059'
'CVE-2025-33060'
'CVE-2025-33061'
'CVE-2025-33062'
'CVE-2025-33063'
'CVE-2025-33064'
'CVE-2025-33065'
'CVE-2025-33066'
'CVE-2025-33067'
'CVE-2025-33068'
'CVE-2025-33070'
'CVE-2025-33071'
'CVE-2025-33073'
'CVE-2025-33075'
'CVE-2025-47160'
'CVE-2025-47955'
) | % {
clv o -ea 0
$o = [pscustomobject] @{
cve = $_
product = ''
baseProductName = ''
baseProductVersion = ''
}
$url = "https://api.msrc.microsoft.com/sug/v2.0/en-US/affectedProduct?`$orderBy=releaseDate%20desc&`$filter=cveNumber%20eq%20%27$($_)%27"
iwr $url | % content | ConvertFrom-Json | % value | ? product -Like 'windows server 2022' | % {
$o.product = $_.product
$o.baseProductName = $_.baseProductName
$o.baseProductVersion = $_.baseProductVersion
}
$o
} | ft -AutoSize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment