Skip to main content

CVE-2026-102354: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in alam00000 bentopdf

0
Medium
VulnerabilityCVE-2026-102354cvecve-2026-102354cwe-367cwe-918
Published: 10/14/2026 (10/14/2026, 19:00:13 UTC)
Source: CVE Database V5
Vendor/Project: alam00000
Product: bentopdf

Description

CVE-2026-102354 is a time-of-check to time-of-use (TOCTOU) race condition vulnerability in BentoPDF versions prior to 2.8.7. It involves a DNS-over-HTTPS safety check performed separately from the actual fetch request, allowing an attacker controlling authoritative DNS to potentially bypass hostname resolution checks under certain conditions. Exploitation requires precise timing and network conditions, and the vulnerability is fixed in version 2.8.7.

CVSS v3.1

Score 6.8medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Affected software

alam00000

bentopdf

Affected versions
<2.8.7
GitHub Actionsmore threats →ai
alam00000/bentopdf
pkg:github/alam00000/bentopdf
Affected versions
<2.8.7

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/14/2026, 19:33:25 UTC

Technical Analysis

BentoPDF, a privacy-focused PDF toolkit running in the browser, versions before 2.8.7 contain a TOCTOU race condition in cloudflare/cors-proxy-worker.js. The function hostnameResolvesToPrivate() performs a DNS-over-HTTPS safety check separately from the outbound fetch to the target URL. If PROXY_SECRET validation is not enabled, an attacker controlling authoritative DNS can forge the Origin header and supply URLs that pass initial proxy path checks but resolve to private or link-local addresses during the fetch. This discrepancy can allow the attacker to receive allowed response bodies. Exploitation requires precise timing, and certain mitigations like blocking redirects and IP-literal obfuscation, as well as network reachability constraints, reduce the risk. The issue is resolved in BentoPDF version 2.8.7.

Potential Impact

Successful exploitation can allow an attacker to bypass DNS resolution safety checks and retrieve response bodies from private or link-local network addresses that should be inaccessible. This can lead to unauthorized data disclosure. However, exploitation is constrained by the need for precise timing, network reachability, and other mitigations. The vulnerability does not impact integrity or availability.

Mitigation Recommendations

A patch is available and the vulnerability is fixed in BentoPDF version 2.8.7. Users should upgrade to version 2.8.7 or later. Since BentoPDF is a cloud-hosted service, the vendor manages remediation for this service. Check the vendor advisory for confirmation and ensure PROXY_SECRET validation is enabled to mitigate the risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-09-28T22:38:42.255Z
Cvss Version
3.1
State
PUBLISHED
Is Cloud Service
true

Threat ID: 6acfd5b12cdf04f656a5421d

Added to database: 10/14/2026, 19:19:13 UTC

Last enriched: 10/14/2026, 19:33:25 UTC

Last updated: 10/14/2026, 19:34:08 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses