"featurename": "libgcrypt20",
"featureversion": "1.8.4-5+deb10u1",
"vulnerability": "CVE-2019-13627",
"namespace": "debian:10",
"description": "It was discovered that there was a ECDSA timing attack in the libgcrypt20 cryptographic library. Version affected: 1.8.4-5, 1.7.6-2+deb9u3, and 1.6.3-2+deb8u4. Versions fixed: 1.8.5-2 and 1.6.3-2+deb8u7.",
"link": "https://security-tracker.debian.org/tracker/CVE-2019-13627",
"severity": "Low",
"fixedby": ""
}
{
"featurename": "libgcrypt20",
"featureversion": "1.8.4-5+deb10u1",
"vulnerability": "CVE-2018-6829",
"namespace": "debian:10",
"description": "cipher/elgamal.c in Libgcrypt through 1.8.2, when used to encrypt messages directly, improperly encodes plaintexts, which allows attackers to obtain sensitive information by reading ciphertext data (i.e., it does not have semantic security in face of a ciphertext-only attack). The Decisional Diffie-Hellman (DDH) assumption does not hold for Libgcrypt's ElGamal implementation.",
"link": "https://security-tracker.debian.org/tracker/CVE-2018-6829",
"severity": "Negligible",
"fixedby": ""
}
{
"featurename": "libgcrypt20",
"featureversion": "1.8.4-5+deb10u1",
"vulnerability": "CVE-2021-33560",
"namespace": "debian:10",
"description": "",
"link": "https://security-tracker.debian.org/tracker/CVE-2021-33560",
"severity": "Unknown",
"fixedby": ""
}
он очень большой, мне нужно выбрать все записи в которых фигурирует значение "severity": "Low",
в моем случаи результат вернется такой:
{
"featurename": "libgcrypt20",
"featureversion": "1.8.4-5+deb10u1",
"vulnerability": "CVE-2019-13627",
"namespace": "debian:10",
"description": "It was discovered that there was a ECDSA timing attack in the libgcrypt20 cryptographic library. Version affected: 1.8.4-5, 1.7.6-2+deb9u3, and 1.6.3-2+deb8u4. Versions fixed: 1.8.5-2 and 1.6.3-2+deb8u7.",
"link": "https://security-tracker.debian.org/tracker/CVE-2019-13627",
"severity": "Low",
"fixedby": ""
}
подскажите пожалуйста
jq '. |select(.severity=="Low")'
отлично, а если там ещё будет и High ? выбрать по двум значениям
у тебя есть пример что искать
не совсем понимаю как сформировать правильно
Обсуждают сегодня