Heap-buffer-overflow in Gfx::InputStreamer::read_u32 in SerenityOS

serenity Updated 02 Oct 2025

Summary

20/10/2023
HIGH
Yes i
High
Not published

OSV-2023-1033: Heap-buffer-overflow in Gfx::InputStreamer::read_u32. Affects serenity versions >= bbf66ea055b40577530961e79fb0ac06076971b0, < 4318bcf447ecb97b867af13dfcba1b72de107049. Fixed in 4318bcf447ecb97b867af13dfcba1b72de107049. 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

SerenityOS is an open-source operating system that aims to provide a modern and user-friendly interface. It offers various functionalities and features, including graphics rendering capabilities. However, a vulnerability has been discovered in the Gfx::InputStreamer::read_u32 function, which can lead to a heap-buffer-overflow.

Vulnerability Detail

The vulnerability in Gfx::InputStreamer::read_u32 can be triggered when reading a 32-bit unsigned integer from an input stream. Due to insufficient bounds checking, a heap-buffer-overflow can occur, potentially leading to a crash or arbitrary code execution. This vulnerability has been reported through the OSS-Fuzz project and has a high severity rating. The affected package can be found in the SerenityOS repository on GitHub.

How To Fix

Minimum fixed version

4318bcf447ecb97b867af13dfcba1b72de107049

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

At the moment, there is no known workaround for this vulnerability. It is advised to wait for the official fix and apply it as soon as it becomes available.

Conclusion

In conclusion, a heap-buffer-overflow vulnerability has been identified in the Gfx::InputStreamer::read_u32 function in SerenityOS. This vulnerability can potentially lead to crashes or arbitrary code execution. It is recommended to update the affected package once a fix is available. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for serenity →

Share this vulnerability

FAQ

The vulnerability can potentially lead to a crash or allow an attacker to execute arbitrary code, compromising the security and stability of the affected system.

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

At the time of this report, there is no known exploit publicly available. However, it is crucial to apply the fix as soon as it is released to mitigate any potential risks.

Yes, this vulnerability can be exploited remotely if an attacker can send a specially crafted input stream to the affected system.

For more details about this vulnerability, including the specific code changes and affected versions, you can refer to the source link provided in the vulnerability details section.

Related vulnerabilities

Recent vulnerabilities recorded for serenity.

How To Fix

Minimum fixed version

4318bcf447ecb97b867af13dfcba1b72de107049

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