/

CVE-2026-116067

Severity:

HIGH RISK

(8.2)

Path Traversal (CWE-22) in Paisa Backup File Endpoints

CVE-2026-116067

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Unauthorized File Disclosure and File Deletion

Severity:

HIGH RISK

(8.2)

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

A path traversal vulnerability in Paisa file and backup handlers allows unauthenticated attackers to use crafted file names containing parent-directory references. Depending on the endpoint, this may expose server-readable files or delete backup files outside the intended journal and sheets directories.

A path traversal vulnerability in Paisa file and backup handlers allows unauthenticated attackers to use crafted file names containing parent-directory references. Depending on the endpoint, this may expose server-readable files or delete backup files outside the intended journal and sheets directories.

Affected context

The vulnerability occurs in Paisa deployments before version 0.7.8 when file-related handlers use attacker-controlled names to construct filesystem paths. The affected operations include file retrieval, sheet retrieval, backup deletion, and sheet-backup deletion, particularly where the application does not sufficiently constrain resolved paths to approved directories.

The vulnerability occurs in Paisa deployments before version 0.7.8 when file-related handlers use attacker-controlled names to construct filesystem paths. The affected operations include file retrieval, sheet retrieval, backup deletion, and sheet-backup deletion, particularly where the application does not sufficiently constrain resolved paths to approved directories.

Exploit preconditions

  • Attack surface: The editor file and delete-backups HTTP endpoints
  • Required access: No authentication may be required
  • Trigger point: Processing a crafted file or backup name
  • Why exploitation is possible: User-controlled path components may be interpreted by the filesystem without reliable normalization and confinement to the intended journal or sheets directory
  • Attack surface: The editor file and delete-backups HTTP endpoints
  • Required access: No authentication may be required
  • Trigger point: Processing a crafted file or backup name
  • Why exploitation is possible: User-controlled path components may be interpreted by the filesystem without reliable normalization and confinement to the intended journal or sheets directory

Why this happens

The underlying flaw is improper restriction of user-supplied path components. When an application concatenates attacker-controlled names with trusted directory paths without canonicalizing the result and verifying that it remains within the permitted root, parent-directory references can escape the intended location.

This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). The same unsafe path-resolution pattern can affect both read operations and destructive file-management operations.

The underlying flaw is improper restriction of user-supplied path components. When an application concatenates attacker-controlled names with trusted directory paths without canonicalizing the result and verifying that it remains within the permitted root, parent-directory references can escape the intended location.

This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). The same unsafe path-resolution pattern can affect both read operations and destructive file-management operations.

Potential impact

  • An attacker may read files accessible to the Paisa server process
  • Backup files outside the intended application directories may be deleted
  • Sensitive configuration, application, or operational data could be exposed
  • Backup integrity and recovery capability may be reduced
  • The application may experience data loss or service disruption
  • An attacker may read files accessible to the Paisa server process
  • Backup files outside the intended application directories may be deleted
  • Sensitive configuration, application, or operational data could be exposed
  • Backup integrity and recovery capability may be reduced
  • The application may experience data loss or service disruption

General mitigation guidance

Mitigation generally focuses on reducing trust in client-provided file names and enforcing filesystem boundaries.

Common defensive patterns include:

  • Resolve paths canonically before use and verify that they remain beneath an approved directory
  • Prefer server-generated identifiers or allowlisted file mappings over arbitrary client-supplied paths
  • Reject parent-directory references, absolute paths, unexpected separators, and ambiguous encodings
  • Apply the same confinement checks to read, delete, and backup-management operations
  • Use a dedicated low-privilege service account with access limited to required application directories
  • Make backup storage separate from writable application input locations where practical
  • Preserve authorization checks and audit logging for file access and deletion actions

Mitigation generally focuses on reducing trust in client-provided file names and enforcing filesystem boundaries.

Common defensive patterns include:

  • Resolve paths canonically before use and verify that they remain beneath an approved directory
  • Prefer server-generated identifiers or allowlisted file mappings over arbitrary client-supplied paths
  • Reject parent-directory references, absolute paths, unexpected separators, and ambiguous encodings
  • Apply the same confinement checks to read, delete, and backup-management operations
  • Use a dedicated low-privilege service account with access limited to required application directories
  • Make backup storage separate from writable application input locations where practical
  • Preserve authorization checks and audit logging for file access and deletion actions

How teams detect issues like this

Detection can combine source review, automated analysis, and runtime monitoring:

  • Search for filesystem APIs that concatenate request parameters with directory paths
  • Review path normalization and containment checks around file retrieval and deletion handlers
  • Flag uses of user-controlled values in file-open, unlink, remove, rename, and backup-management operations
  • Test that encoded and alternative path representations cannot escape approved directories
  • Enforce static-analysis or secure-coding policies requiring allowlists and canonical containment checks
  • Monitor requests containing traversal indicators and alert on access to unexpected filesystem locations

Detection can combine source review, automated analysis, and runtime monitoring:

  • Search for filesystem APIs that concatenate request parameters with directory paths
  • Review path normalization and containment checks around file retrieval and deletion handlers
  • Flag uses of user-controlled values in file-open, unlink, remove, rename, and backup-management operations
  • Test that encoded and alternative path representations cannot escape approved directories
  • Enforce static-analysis or secure-coding policies requiring allowlists and canonical containment checks
  • Monitor requests containing traversal indicators and alert on access to unexpected filesystem locations

Sources

SourceLink
github.comgithub.com/ananthakumaran/paisa
github.comgithub.com/ananthakumaran/paisa/blob/v0.7.7/internal/server/editor.go#L49-L70
github.comgithub.com/ananthakumaran/paisa/commit/035949351f7c0d0f90ecf767aa1e28b4d5a0ae31
github.comgithub.com/ananthakumaran/paisa/issues/420
github.comgithub.com/ananthakumaran/paisa/releases/tag/v0.7.8
vulncheck.comvulncheck.com/advisories/paisa-before-0.7.8-path-traversal-via-editor-and-sheet-api

Frequently asked

questions

Yes. The described handlers may be reachable without authentication, allowing an unauthenticated attacker to submit crafted file names.

The attacker needs network access to the affected endpoints. They do not necessarily need operating-system access, filesystem permissions beyond those held by the Paisa process, or a valid user account.

Resolve requested paths against a fixed, approved root and verify canonical containment before any read or deletion. Server-side allowlists or opaque file identifiers are safer than accepting arbitrary file names.

Apply consistent path-handling utilities across all file operations, restrict service privileges, test traversal variants in security testing, and monitor file-management endpoints for anomalous requests.

Yes. The described handlers may be reachable without authentication, allowing an unauthenticated attacker to submit crafted file names.

The attacker needs network access to the affected endpoints. They do not necessarily need operating-system access, filesystem permissions beyond those held by the Paisa process, or a valid user account.

Resolve requested paths against a fixed, approved root and verify canonical containment before any read or deletion. Server-side allowlists or opaque file identifiers are safer than accepting arbitrary file names.

Apply consistent path-handling utilities across all file operations, restrict service privileges, test traversal variants in security testing, and monitor file-management endpoints for anomalous requests.

Find out what's already
exploitable in your codebase.