Critical Memory Handling Vulnerability in libyang2: Denial of Service Risk

libyang2 Updated 03 Oct 2025

Summary

16/09/2025
N/A
Yes i
Unrated
Not published

USN-7752-1: libyang2 vulnerabilities. Affects libyang2 versions < 2.1.30-2.1ubuntu0.1. Fixed in 2.1.30-2.1ubuntu0.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libyang2 is a library for parsing and manipulating YANG data models, which are used in network configuration and management. It provides tools for developers to work with YANG models effectively. However, a recent vulnerability has been discovered that affects its memory handling capabilities, potentially leading to severe disruptions in service.

Vulnerability Detail

The vulnerability arises from improper handling of memory operations when libyang parses YANG strings. This flaw can be exploited by an attacker to cause the library to crash, resulting in a denial of service. The issue is particularly concerning as it can disrupt applications relying on libyang for network management, leading to significant operational downtime.

How To Fix

Minimum fixed version

2.1.30-2.1ubuntu0.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libyang2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can limit the exposure of the libyang2 library in their applications or implement additional input validation to mitigate the risk of triggering the vulnerability until the package is updated.

Conclusion

The libyang2 vulnerability presents a significant risk to applications relying on this library for network management. By updating to the patched version, users can protect their systems from potential denial of service attacks. It is crucial to remain vigilant and monitor for vulnerabilities using tools like Vulert, which can alert you to issues in real-time.

See every vulnerability recorded for libyang2 →

Share this vulnerability

FAQ

libyang2 is a library designed for parsing and manipulating YANG data models, commonly used in network configuration.

The vulnerability involves improper memory handling when parsing YANG strings, which can lead to application crashes.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to denial of service, causing applications that depend on libyang2 to crash and become unavailable.

Yes, a patch is available in version 2.1.30-2.1ubuntu0.1 of the libyang2 package. Users should update to this version to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for libyang2.

How To Fix

Minimum fixed version

2.1.30-2.1ubuntu0.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libyang2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback