Miggo Logo

CVE-2025-27591: Below has Incorrect Permission Assignment for Critical Resource

7.8

CVSS Score
3.1

Basic Information

EPSS Score
0.0344%
Published
3/11/2025
Updated
3/12/2025
KEV Status
No
Technology
TechnologyRust

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
belowrust< 0.9.00.9.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from two key functions:

  1. create_log_dir() explicitly set 0o777 permissions for /var/log/below, making it world-writable.
  2. logging::setup() attempted to set 0o666 permissions for log files and had unsafe fallback behavior. The commit patching the vulnerability removed create_log_dir entirely and modified logging::setup to eliminate manual permission changes, instead relying on systemd's LogsDirectory directive for secure directory creation. The CWE-732 description and advisory details about world-writable directories directly map to these functions' behavior.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t * privil*** *s**l*tion vuln*r**ility *xist** in t** **low s*rvi** prior to v*.*.* *u* to t** *r**tion o* * worl*-writ**l* *ir**tory *t /v*r/lo*/**low. T*is *oul* **v* *llow** lo**l unprivil**** us*rs to *s**l*t* to root privil***s t*rou**

Reasoning

T** vuln*r**ility st*mm** *rom two k*y *un*tions: *. *r**t*_lo*_*ir() *xpli*itly s*t *o*** p*rmissions *or /v*r/lo*/**low, m*kin* it worl*-writ**l*. *. lo**in*::s*tup() *tt*mpt** to s*t *o*** p*rmissions *or lo* *il*s *n* *** uns*** **ll***k ****vi