Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2021-29440

Summary
Assigner-GitHub_M
Assigner Org ID-a0819718-46f1-4df5-94e2-005712e83aaa
Published At-13 Apr, 2021 | 19:55
Updated At-03 Aug, 2024 | 22:02
Rejected At-
Credits

Twig allowing dangerous PHP functions by default

Grav is a file based Web-platform. Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages. As the Twig processor runs unsandboxed, this behavior can be used to gain arbitrary code execution and elevate privileges on the instance. The issue was addressed in version 1.7.11.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:GitHub_M
Assigner Org ID:a0819718-46f1-4df5-94e2-005712e83aaa
Published At:13 Apr, 2021 | 19:55
Updated At:03 Aug, 2024 | 22:02
Rejected At:
▼CVE Numbering Authority (CNA)
Twig allowing dangerous PHP functions by default

Grav is a file based Web-platform. Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages. As the Twig processor runs unsandboxed, this behavior can be used to gain arbitrary code execution and elevate privileges on the instance. The issue was addressed in version 1.7.11.

Affected Products
Vendor
getgrav
Product
grav
Versions
Affected
  • < 1.7.11
Problem Types
TypeCWE IDDescription
CWECWE-94{"CWE-94":"Improper Control of Generation of Code ('Code Injection')"}
Type: CWE
CWE ID: CWE-94
Description: {"CWE-94":"Improper Control of Generation of Code ('Code Injection')"}
Metrics
VersionBase scoreBase severityVector
3.18.4HIGH
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Version: 3.1
Base score: 8.4
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc
x_refsource_CONFIRM
https://packagist.org/packages/getgrav/grav
x_refsource_MISC
http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html
x_refsource_MISC
https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities
x_refsource_MISC
Hyperlink: https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc
Resource:
x_refsource_CONFIRM
Hyperlink: https://packagist.org/packages/getgrav/grav
Resource:
x_refsource_MISC
Hyperlink: http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html
Resource:
x_refsource_MISC
Hyperlink: https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities
Resource:
x_refsource_MISC
▼Authorized Data Publishers (ADP)
CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc
x_refsource_CONFIRM
x_transferred
https://packagist.org/packages/getgrav/grav
x_refsource_MISC
x_transferred
http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html
x_refsource_MISC
x_transferred
https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities
x_refsource_MISC
x_transferred
Hyperlink: https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc
Resource:
x_refsource_CONFIRM
x_transferred
Hyperlink: https://packagist.org/packages/getgrav/grav
Resource:
x_refsource_MISC
x_transferred
Hyperlink: http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities
Resource:
x_refsource_MISC
x_transferred
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:security-advisories@github.com
Published At:13 Apr, 2021 | 20:15
Updated At:09 Nov, 2022 | 03:12

Grav is a file based Web-platform. Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages. As the Twig processor runs unsandboxed, this behavior can be used to gain arbitrary code execution and elevate privileges on the instance. The issue was addressed in version 1.7.11.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Primary3.17.2HIGH
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Secondary3.18.4HIGH
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Primary2.06.5MEDIUM
AV:N/AC:L/Au:S/C:P/I:P/A:P
Type: Primary
Version: 3.1
Base score: 7.2
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Type: Secondary
Version: 3.1
Base score: 8.4
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Type: Primary
Version: 2.0
Base score: 6.5
Base severity: MEDIUM
Vector:
AV:N/AC:L/Au:S/C:P/I:P/A:P
CPE Matches

getgrav
getgrav
>>grav>>Versions before 1.7.11(exclusive)
cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Weaknesses
CWE IDTypeSource
CWE-94Primarysecurity-advisories@github.com
CWE ID: CWE-94
Type: Primary
Source: security-advisories@github.com
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.htmlsecurity-advisories@github.com
Exploit
Third Party Advisory
VDB Entry
https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilitiessecurity-advisories@github.com
Exploit
Third Party Advisory
https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxcsecurity-advisories@github.com
Third Party Advisory
https://packagist.org/packages/getgrav/gravsecurity-advisories@github.com
Product
Third Party Advisory
Hyperlink: http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html
Source: security-advisories@github.com
Resource:
Exploit
Third Party Advisory
VDB Entry
Hyperlink: https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities
Source: security-advisories@github.com
Resource:
Exploit
Third Party Advisory
Hyperlink: https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc
Source: security-advisories@github.com
Resource:
Third Party Advisory
Hyperlink: https://packagist.org/packages/getgrav/grav
Source: security-advisories@github.com
Resource:
Product
Third Party Advisory

Change History

0
Information is not available yet

Similar CVEs

0Records found

Details not found