Vulnerabilities

Vulnerability · GHSA-f278-mgc7-46j3

php_fastcgi authorization bypass via dot-segments in the request path

Published Nov 4, 2026 · catalog updated Nov 4, 2026 · php_fastcgi authorization bypass via

Last checked Nov 4, 2026. A connected source was read within the last 7 days.

Open the advisory

Exploitation likelihood is not on this record for GHSA-f278-mgc7-46j3. A missing EPSS score is not a low risk. Compare php_fastcgi authorization bypass via with the linked advisory before you change production.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (php_fastcgi authorization bypass via).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
  • EPSS is missing. A missing score is not a low risk.
Severity
Medium5.9
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
Awaiting synchronization with FIRST
Remediation
Version ranges on file
Affected products
go github.com/caddyserver/caddy/v2

### Summary An unauthenticated attacker can execute a PHP script that a Caddyfile access-control rule was protecting. > Disclosure note: This finding was identified and validated by Bynario AI, an automated pipeline. The technical claims and supporting evidence were manually reviewed before submission. The technical report was partly written using AI and re-written by me. Caddy's route matchers evaluate the cleaned request path, while the FastCGI transport derives from the raw path. The two therefore disagree about which file a request names: the access-control decision is made about one file, and a different file is executed. **If there is no index.php file**, or is judged by every matcher as a request for . A or gate on , , or never fires while php-fpm is told to execute . No access-control configuration prevents this. The matcher only ever sees a string the attacker chooses fresh on every request, so no path rule can cover it. Where the attacker also controls a file on disk (e.g. an upload directory the operator deliberately excluded from PHP execution), this escalates from authorization bypass to remote code execution as the php-fpm user. ### Details expands to three routes ( output abbreviated): **Caddy never rewrites itself.** is applied only to matcher-local copies for their own yes/no decisions ( , ). The rewrite in route 2 is therefore the *only* step in the entire chain that normalizes the path the transport will later read. But as said, that part never happens, so transport will receive the entire raw path. **Bug 1: the transport splits an un-normalized path** fpath := r.URL.Path // raw; contains ".." as sent by the client ... if splitPos := t.splitPos(fpath); splitPos > -1 { docURI = fpath[:splitPos] pathInfo = fpath[splitPos:] scriptName = strings.TrimSuffix(scriptName, pathInfo) } scriptFilename := caddyhttp.SanitizedPathJoin(root, scriptName) returns the index past the end of the *first* token, so for is and pathInfo becomes . Both get sanitized, but

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • go github.com/caddyserver/caddy/v2>= 2.4.6, <= 2.11.7

How to fix GHSA-f278-mgc7-46j3

  • Upgrade

    GHSA-f278-mgc7-46j3 lists a fix boundary at 2.11.7. Compare the installed build with that boundary before you change production.

  • Version check

    Affected <= 2.11.7

  • Advisory

    Open the inventory_github record and follow its fix.

  • Official advisories

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

Exploitation likelihood is not on this record for GHSA-f278-mgc7-46j3. A missing EPSS score is not a low risk. Compare php_fastcgi authorization bypass via with the linked advisory before you change production.

Which versions are affected?

Compare what you have installed with >= 2.4.6, <= 2.11.7. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-436; CWE-863: Incorrect Authorization. EPSS is not on this record yet. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Nov 4, 2026 · Maintainer security tabs

    Detected

    ### Summary An unauthenticated attacker can execute a PHP script that a Caddyfile access-control rule was protecting. > Disclosure note: This finding was identified and validated by Bynario AI, an automated pipeline. The technical claims and supporting evidence were manually reviewed before submission. The technical report was partly written using AI and re-written by me. Caddy's route matchers ev

  2. Nov 4, 2026 · Maintainer security tabs

    Updated

    ### Summary An unauthenticated attacker can execute a PHP script that a Caddyfile access-control rule was protecting. > Disclosure note: This finding was identified and validated by Bynario AI, an automated pipeline. The technical claims and supporting evidence were manually reviewed before submission. The technical report was partly written using AI and re-written by me. Caddy's route matchers ev

Sources

  • Maintainer security tabsVendor advisoryGHSA-f278-mgc7-46j3

    ### Summary An unauthenticated attacker can execute a PHP script that a Caddyfile access-control rule was protecting. > Disclosure note: This finding was identified and validated by Bynario AI, an automated pipeline. The technical claims and supporting evidence were manually reviewed before submission. The technical report was partly written using AI and re-written by me. Caddy's route matchers ev

    github.com

Freshness

Last verified in this catalog Nov 4, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • Maintainer security tabsNov 4, 2026