CVE-2021-28904
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-28904 affects libyang versions up to and including v1.0.225. The vulnerability was discovered in the extgetplugin() function where it fails to check whether the revision value is NULL, which can lead to a crash when strcmp() operation is performed (Gentoo Advisory, GitHub Issue).

Technical details

The vulnerability exists in the extgetplugin() function implementation where it performs a strcmp() operation on the revision parameter without first validating if it's NULL. When a NULL revision value is passed to the function, the strcmp(revision, ext_plugins[u].revision) operation causes the application to crash. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 HIGH with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The primary impact of this vulnerability is availability, as it can lead to a crash of the application when exploited. The CVSS scoring indicates high impact on availability with no direct impact on confidentiality or integrity (NVD).

Mitigation and workarounds

The vulnerability has been fixed in libyang version 1.0.236. Users should upgrade to this version or later to address the issue. For Gentoo users, the recommended action is to upgrade using the command: emerge --ask --oneshot --verbose ">=net-libs/libyang-1.0.236" (Gentoo Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • rhel10::firefox-flatpak
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • rhel10::thunderbird-flatpak
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management