CVE-2023-21020: UAF problem found in statsd

Summary

01/03/2023
Yes i
Moderate
Not published

CVE-2023-21020: In registerSignalHandlers of main.c, there is a possible local arbitrary code execution due to a use after free. Affects platform/packages/modules/StatsD versions >= 13:0, < 13:2023-03-01. Fixed in 13:2023-03-01. 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 StatsD package is a module in the Android ecosystem that provides functionality for collecting and aggregating statistics from various sources. It is used to monitor and analyze system performance. However, a vulnerability has been discovered in the package that could lead to local arbitrary code execution.

Vulnerability Detail

The vulnerability exists in the registerSignalHandlers function of the main.cpp file in StatsD. It is caused by a use after free (UAF) issue, where a pointer is accessed after it has been freed. This can result in a local escalation of privilege, potentially allowing an attacker to execute arbitrary code with system execution privileges. Exploitation does not require user interaction.

How To Fix

Minimum fixed version

13:2023-03-01

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

No workaround has been provided for this vulnerability.

Conclusion

The StatsD package in the Android ecosystem is vulnerable to a use after free issue, which could lead to local arbitrary code execution. It is recommended to update to the latest version of the package to mitigate this vulnerability.

See every vulnerability recorded for platform/packages/modules/StatsD →

Share this vulnerability

FAQ

The vulnerability could allow an attacker to execute arbitrary code with system execution privileges, potentially leading to a local escalation of privilege.

No, user interaction is not needed for exploitation of this vulnerability.

Versions 13.0 through 13.2023-03-01 of the StatsD package are affected by this vulnerability.

You can use Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

Related vulnerabilities

Recent vulnerabilities recorded for platform/packages/modules/StatsD.

How To Fix

Minimum fixed version

13:2023-03-01

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