Use-of-uninitialized-value in libecc: fp_uninit

libecc Updated 02 Oct 2025

Summary

05/11/2023
MEDIUM
Yes i
Medium
Not published

OSV-2023-1115: Use-of-uninitialized-value in fp_uninit. Affects libecc versions >= b9329e2826f4d622dbb9ffdd9316e98fda7a023f, < b9329e2826f4d622dbb9ffdd9316e98fda7a023f. Fixed in b9329e2826f4d622dbb9ffdd9316e98fda7a023f. 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

The libecc package is an open-source library that provides cryptographic functions for elliptic curve cryptography (ECC). It is commonly used in various applications that require secure communication and data encryption. The vulnerability in question arises from the use of uninitialized values within the fp_uninit function of the libecc module.

Vulnerability Detail

The vulnerability, identified as OSV-2023-1115, is categorized as a Use-of-uninitialized-value issue. It was reported through the OSS-Fuzz project, and more details can be found in the associated bug report (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63867). The crash state indicates that the issue occurs during the execution of the OpECC_ValidatePubkey function within the libecc module. This vulnerability could potentially lead to unexpected behavior, crashes, or even security breaches when processing public keys in ECC operations.

How To Fix

Minimum fixed version

b9329e2826f4d622dbb9ffdd9316e98fda7a023f

This is the first release that contains the fix.

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

Workaround

As a workaround, developers can manually initialize the values used within the fp_uninit function to avoid the use of uninitialized values. Here is an example of how to initialize the relevant values:

// Initialize the value
int value = 0;

Conclusion

In conclusion, the libecc package is affected by a Use-of-uninitialized-value vulnerability in the fp_uninit function. This vulnerability can have various negative consequences, including crashes and potential security breaches. It is crucial to update to the latest version of the libecc package that includes the fix for this vulnerability. Developers can also manually initialize the relevant values as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libecc →

Share this vulnerability

FAQ

This vulnerability can result in unexpected behavior, crashes, or potential security breaches when processing public keys in ECC operations using the libecc package.

The vulnerability was discovered through the OSS-Fuzz project, which performs continuous fuzz testing on open-source software to identify potential issues.

Yes, a fix has been implemented in commit b9329e2826f4d622dbb9ffdd9316e98fda7a023f of the libecc repository. It is recommended to update to the latest version of the libecc package that includes this fix.

Yes, developers can manually initialize the values used within the fp_uninit function to avoid the use of uninitialized values. Refer to the provided workaround section for an example.

Related vulnerabilities

Recent vulnerabilities recorded for libecc.

How To Fix

Minimum fixed version

b9329e2826f4d622dbb9ffdd9316e98fda7a023f

This is the first release that contains the fix.

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