/

CVE-2026-107053

Severity:

CRITICAL RISK

(9.1)

Path Traversal (CWE-22) in foobnix Librera PDF Reader

CVE-2026-107053

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Unauthorized file modification and truncation

Severity:

CRITICAL RISK

(9.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

In foobnix Librera PDF Reader versionCode 7222, insecure permissions may allow an unauthorized attacker to write to or truncate files in shared storage outside the app's sandbox. The risk arises when the app's file-handling behavior permits access beyond its intended storage boundary.

Affected context

The issue is reported in foobnix Librera PDF Reader versionCode 7222. It concerns access to shared storage outside the application sandbox, where insecure permissions may permit file writes or truncation. The available description does not specify the exact file-handling operation or attacker access path.

Exploit preconditions

  • Attack surface: File access involving shared storage outside the app sandbox
  • Required access: The ability to reach or influence the affected file-handling behavior; authentication requirements are not specified
  • Trigger point: An operation that writes to or truncates a file in shared storage
  • Why exploitation is possible: Insecure permissions may allow file access beyond the intended application boundary

Why this happens

The reported weakness is associated with CWE-22, Improper Limitation of a Pathname to a Restricted Directory. At a high level, this class of bug occurs when file operations do not reliably constrain resolved paths to an authorized storage area. In this case, the description identifies insecure permissions that may permit writes or truncation outside the app sandbox; it does not specify the precise implementation flaw.

Potential impact

  • An attacker may alter or truncate files in shared storage
  • User or application data could be lost or corrupted
  • Other applications or workflows that rely on affected files could be disrupted
  • Modified files could influence application behavior, depending on how they are subsequently used

General mitigation guidance

Defensive patterns focus on enforcing storage boundaries and minimizing file permissions:

  • Restrict file operations to explicitly authorized directories and validate resolved paths against those boundaries
  • Use platform storage APIs and sandboxed locations by default
  • Grant only the minimum permissions needed for each file operation
  • Avoid trusting caller-supplied paths or file names without validation
  • Apply integrity checks where files are consumed by sensitive application workflows

How teams detect issues like this

Review file-handling code for writes or truncation operations that accept externally influenced paths, and check whether resolved paths are constrained to approved directories. Static analysis can help identify path construction and permission patterns that cross storage boundaries. Code review and policy checks can also verify that broad storage access is avoided when narrower platform APIs are available.

Sources

SourceLink
f-droid.orgf-droid.org/packages/com.foobnix.pro.pdf.reader/
github.comgithub.com/FFG0d/fdroid-android-advisories/blob/main/advisories/CVE-2026-107053.md
github.comgithub.com/foobnix/LibreraReader

Frequently asked

questions

The available description does not establish a remote attack path. Exploitation depends on whether an attacker can reach the affected file-handling behavior.

The description says unauthorized attackers may write to or truncate files in shared storage, but does not specify authentication or the exact access prerequisites.

Constrain file operations to authorized directories, use sandboxed storage APIs, and apply least-privilege permissions.

Review path handling and storage permissions, avoid trusting externally influenced paths, and enforce checks that keep file operations within intended boundaries.

Find out what's already
exploitable in your codebase.