CVE-2018-3745: Out-of-bounds Read in atob

atob Updated 02 Oct 2025

Summary

09/10/2018
Yes i
Critical
9.1

CVE-2018-3745: Out-of-bounds Read in atob. Affects atob versions < 2.1.0. Fixed in 2.1.0. 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

The 'atob' package is an npm package used for decoding base64 encoded strings. It is commonly used in Node.js applications for various purposes. This vulnerability affects versions of 'atob' before 2.1.0 on Node.js 4.x and below. The package fails to handle uninitialized Buffers when a number is passed as input, leading to an out-of-bounds read vulnerability.

Vulnerability Detail

The vulnerability in 'atob' allows an attacker to read data from uninitialized Buffers, potentially leading to information disclosure or crashes in the affected application. This can be exploited by passing a number as input to the 'atob' function. The impact of this vulnerability is considered critical, with a CVSS score of 9.1.

How To Fix

Minimum fixed version

2.1.0

This is the first release that contains the fix.

npm install atob@2.1.0

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

Workaround

There is no specific workaround mentioned for this vulnerability. However, updating the 'atob' package to the latest version will address the issue.

Conclusion

The 'atob' package before version 2.1.0 on Node.js 4.x and below is vulnerable to an out-of-bounds read issue. This can be fixed by updating the package to the latest version. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for atob →

Share this vulnerability

FAQ

This vulnerability allows an attacker to read data from uninitialized Buffers, potentially leading to information disclosure or crashes in the affected application.

Versions of 'atob' before 2.1.0 on Node.js 4.x and below are affected.

To fix this vulnerability, update the 'atob' package to version 2.1.0 or later.

There is no specific workaround mentioned for this vulnerability. Updating the 'atob' package to the latest version is the recommended solution.

The CVSS score of this vulnerability is 9.1, indicating a critical impact.

How To Fix

Minimum fixed version

2.1.0

This is the first release that contains the fix.

npm install atob@2.1.0

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