Heap-buffer-overflow in iasecc_parse_size in opensc

opensc Updated 02 Oct 2025

Summary

26/10/2023
MEDIUM
Yes i
Medium
Not published

OSV-2023-1068: Heap-buffer-overflow in iasecc_parse_size. Affects opensc versions >= fa709de8dc5045f390f321cb65c9c73c36d52dd0, < fbda61d0d276dc98b9d1d1e6810bbd21d19e3859. Fixed in fbda61d0d276dc98b9d1d1e6810bbd21d19e3859. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

OpenSC is an open-source smart card library that provides a set of cryptographic functions and smart card drivers. It is commonly used in applications that require smart card authentication and secure communication. The vulnerability in the iasecc_parse_size function of OpenSC can lead to a heap buffer overflow, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service condition.

Vulnerability Detail

The vulnerability arises from a heap-buffer-overflow read issue in the iasecc_parse_size function of OpenSC. This can be triggered when parsing a specific size value, leading to a read of one byte beyond the allocated buffer. An attacker can exploit this vulnerability by crafting a malicious input, potentially resulting in the execution of arbitrary code or a crash of the application. The vulnerability has a medium severity rating.

How To Fix

Minimum fixed version

fbda61d0d276dc98b9d1d1e6810bbd21d19e3859

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 temporary workaround, users can disable or limit the usage of the affected functionality in their applications. This can help mitigate the risk of exploitation until a proper fix is applied. However, it is strongly advised to apply the official fix as soon as possible.

Conclusion

In conclusion, the iasecc_parse_size function in OpenSC is vulnerable to a heap-buffer-overflow read issue. This can potentially lead to the execution of arbitrary code or a denial-of-service condition. It is recommended to update the OpenSC package to a fixed version and apply the necessary patches. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for opensc →

Share this vulnerability

FAQ

OpenSC is an open-source smart card library that provides cryptographic functions and smart card drivers.

This vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition.

To fix this vulnerability, update the OpenSC package to a version that includes the fix.

Yes, users can temporarily disable or limit the usage of the affected functionality.

You can find more information about this vulnerability in the OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63587

Related vulnerabilities

Recent vulnerabilities recorded for opensc.

How To Fix

Minimum fixed version

fbda61d0d276dc98b9d1d1e6810bbd21d19e3859

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