Out-of-Bounds Read Vulnerability in libidn: CVE-2016-6262

libidn Updated 02 Oct 2025

Summary

07/09/2016
N/A
Yes i
High
7.5

ALPINE-CVE-2016-6262: idn in libidn before 1.33 might allow remote attackers to obtain sensitive memory information by reading a zero byte as input, which triggers an out-of-bounds read, a different vulnerability than CVE-2015-8948. Affects libidn versions < 1.33-r0. Fixed in 1.33-r0. 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

libidn is a library that implements the Internationalized Domain Names (IDN) protocol, allowing applications to handle domain names in various languages. It is widely used in network applications to support internationalization. The library's functionality is crucial for enabling users to access websites with non-ASCII characters in their domain names. However, prior to version 1.33, libidn was susceptible to a vulnerability that could lead to sensitive information disclosure.

Vulnerability Detail

The vulnerability identified as CVE-2016-6262 arises from an out-of-bounds read condition in the idn function of libidn versions before 1.33. This flaw allows remote attackers to exploit the library by sending a zero byte as input, which can trigger an out-of-bounds read and potentially expose sensitive memory information. The ramifications of this vulnerability include unauthorized access to sensitive data, which could be leveraged for further attacks or exploitation.

How To Fix

Minimum fixed version

1.33-r0

This is the first release that contains the fix.

sudo apk add --upgrade libidn

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

Workaround

As a temporary workaround, you can restrict the input to the idn function to avoid sending zero bytes. However, this does not fully mitigate the risk and should not be considered a permanent solution.

Conclusion

CVE-2016-6262 is a significant vulnerability in the libidn library that can lead to sensitive information disclosure. It is crucial for users and developers to update to the patched version to mitigate risks. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for libidn →

Share this vulnerability

FAQ

CVE-2016-6262 is a vulnerability in the libidn library that allows remote attackers to read sensitive memory information due to an out-of-bounds read condition.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The CVSS score for CVE-2016-6262 is 7.5, indicating a high severity level.

If immediate updates are not possible, consider implementing input restrictions as a temporary workaround, but plan to update as soon as feasible.

More information about libidn can be found on its official documentation and repositories, which provide insights into its functionality and usage.

Related vulnerabilities

Recent vulnerabilities recorded for libidn.

How To Fix

Minimum fixed version

1.33-r0

This is the first release that contains the fix.

sudo apk add --upgrade libidn

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