GHSA-hq9r-72jq-2pxp

Suggest an improvement
Source
https://github.com/advisories/GHSA-hq9r-72jq-2pxp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-hq9r-72jq-2pxp/GHSA-hq9r-72jq-2pxp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hq9r-72jq-2pxp
Aliases
Published
2026-11-24T22:39:23Z
Modified
2026-11-24T22:45:04Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
TwigView FileLoader may allow arbitrary file reads through user-controlled template paths
Details

Impact

If FileLoader::findTemplate() is supplied un-validated user controlled data, arbitrary files can be read.

Patches

1.3.3 and 2.1.2 contain a fix for this issue.

Workarounds

Don't supply user controlled data to include and extends tags.

Database specific
{
    "cwe_ids":  [
        "CWE-22"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-11-24T22:39:23Z",
    "nvd_published_at":  "2026-11-11T05:19:49Z",
    "severity":  "MODERATE"
}
References

Affected packages

Packagist / cakephp/twig-view

Package

Name
cakephp/twig-view
Purl
pkg:composer/cakephp/twig-view

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.3.3

Affected versions

1.*
1.0.0-beta1
1.0.0-beta2
1.0.0-RC1
1.0.0-RC2
1.0.0
1.0.1
1.0.2
1.1.0
1.1.1
1.2.0
1.3.0
1.3.1
1.3.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-hq9r-72jq-2pxp/GHSA-hq9r-72jq-2pxp.json"

Packagist / cakephp/twig-view

Package

Name
cakephp/twig-view
Purl
pkg:composer/cakephp/twig-view

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.1.2

Affected versions

2.*
2.0.0
2.0.1
2.0.2
2.0.3
2.1.0
2.1.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-hq9r-72jq-2pxp/GHSA-hq9r-72jq-2pxp.json"