Stack Buffer Overflow in ICU Package: CVE-2025-5222

icu Updated 02 Oct 2025

Summary

27/05/2025
N/A
Yes i
Unrated
Not published

CVE-2025-5222: A stack buffer overflow was found in Internationl components for unicode (ICU ). Affects icu versions < 74.1-r1. Fixed in 74.1-r1. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The International Components for Unicode (ICU) is a widely-used library that provides robust and full-featured Unicode and Globalization support for software applications. It is essential for handling text in various languages and formats, ensuring that applications can process and display internationalized content correctly. However, the ICU package has been found to have a critical vulnerability that could lead to severe security risks.

Vulnerability Detail

A stack buffer overflow was identified in the ICU library, specifically within the 'genrb' binary. The vulnerability arises in the SRBRoot::addTag function, where the 'subtag' struct can overflow. This overflow can lead to memory corruption, potentially allowing local arbitrary code execution. Attackers exploiting this vulnerability could manipulate the program's execution flow, leading to unauthorized actions or data breaches.

How To Fix

Minimum fixed version

74.1-r1

This is the first release that contains the fix.

sudo apk add --upgrade icu

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

Workaround

As a temporary measure, users can limit the execution of the 'genrb' binary or avoid using it until a patch is applied. Additionally, running the application in a controlled environment with restricted permissions may help mitigate the risk of exploitation.

Conclusion

The CVE-2025-5222 vulnerability in the ICU package poses significant risks due to its potential for memory corruption and arbitrary code execution. Users are strongly advised to update their ICU installations to the latest patched versions to mitigate these risks. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.

See every vulnerability recorded for icu →

Share this vulnerability

FAQ

CVE-2025-5222 is a vulnerability in the ICU package that allows for a stack buffer overflow, potentially leading to memory corruption and arbitrary code execution.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

Exploitation of this vulnerability can lead to unauthorized access, data breaches, and potential control over the affected system.

Yes, users should update to the latest version of the ICU package to ensure they are protected against CVE-2025-5222.

The CVSS score for CVE-2025-5222 is 7.0, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for icu.

How To Fix

Minimum fixed version

74.1-r1

This is the first release that contains the fix.

sudo apk add --upgrade icu

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