Patrowl Intel
Sign in
Back to feed

CVE-2026-35583

Published Apr 8, 2026

Summary

Emissary has a Path Traversal via Blacklist Bypass in Configuration API

Summary

The configuration API endpoint (/api/configuration/{name}) validated
configuration names using a blacklist approach that checked for \, /, ..,
and trailing .. This could potentially be bypassed using URL-encoded variants,
double-encoding, or Unicode normalization to achieve path traversal and read
configuration files outside the intended directory.

Details

Vulnerable code — Configs.java (line 126)
protected static String validate(String config) {
    if (StringUtils.isBlank(config) || config.contains("\\") || config.contains("/")
        || config.contains("..") || config.endsWith(".")) {
        throw new IllegalArgumentException("Invalid config name: " + config);
    }
    return Strings.CS.appendIfMissing(config.trim(), CONFIG_FILE_ENDING);
}
Weakness

The blacklist blocked literal \, /, .., and trailing . but could
potentially miss:

  • URL-encoded variants (%2e%2e%2f) if decoded after validation
  • Double-encoded sequences (%252e%252e%252f)
  • Unicode normalization bypasses
  • The approach relies on string matching rather than canonical path resolution
Impact
  • Potential read access to configuration files outside the intended config
    directory
  • Information disclosure of sensitive configuration values

Remediation

Fixed in PR #1292,
merged into release 8.39.0.

The blacklist was replaced with an allowlist regex that only permits characters
matching ^[a-zA-Z0-9._-]+$:

protected static final Pattern VALID_CONFIG_NAME = Pattern.compile("^[a-zA-Z0-9._-]+$");

protected static String validate(String config) {
    if (!VALID_CONFIG_NAME.matcher(config).matches() || config.contains("..") || config.endsWith(".")) {
        throw new IllegalArgumentException("Invalid config name: " + config);
    }
    return Strings.CS.appendIfMissing(config.trim(), CONFIG_FILE_ENDING);
}

This ensures that any character outside the allowed set — including encoded
slashes, percent signs, and Unicode sequences — is rejected before the config
name reaches the filesystem.

Tests were added to verify that URL-encoded (%2e%2e%2f), double-encoded
(%252e%252e%252f), and Unicode (U+002F) traversal attempts are blocked.

Workarounds

If upgrading is not immediately possible, deploy a reverse proxy or WAF rule
that rejects requests to /api/configuration/ containing encoded path traversal
sequences.

References

Affected

Weaknesses

CWE-22

CVSS details

  • v3.15.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

MITRE ATT&CK

Inferred

Where this vulnerability fits in an attack

Initial Access

Exploits & references 1 exploit · 4 references

Timeline

  1. PublishedApr 8, 2026
  2. Scored by CISA SSVCApr 9, 2026

Potentially impacted assets

See if this affects your attack surface

Latest trending attack

Criticaltoday

Django - SQL Injection in range & in Lookups

Django is an open-source Python web framework. Its ORM builds SQL queries from model filters and lookups. CVE-2026-132092 Queries that use the `range` and `in` lookups are subject to SQL injection when they involve column aliases or key transforms containing percent signs. For `__range`, the flaw is reachable when more than two right-hand-side values are passed. For `__in`, it is reachable when a bilateral transform is used. Exploitation happens over the network through any application endpoint that passes attacker-controlled values into such a lookup. Affected versions are Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20, plus the main development branch. Earlier, unsupported series (5.1.x, 5.0.x and 4.2.x) were not evaluated and may also be affected. Fixed versions are 6.1.4, 6.0.11 and 5.2.20. The fix makes the `range` lookup require exactly two right-hand-side values. Percent signs in column aliases and key transforms have been deprecated since Django 6.0, with removal scheduled for 2028. The Django project rates the issue High severity. It was reported by Cristian Panaro.

Take 15 minutes to discover the Patrowl EASM platform with our experts

The intelligence behind this page, applied to your own exposure: your assets discovered, matched to these signals, prioritised by the same score.

  • European Investment Bank
  • MGEN Solution
  • Forvis Mazars
  • Colas
  • Heetch
  • Xplor