gsd-2021-29440
Vulnerability from gsd
Modified
2023-12-13 01:23
Details
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.
Aliases
Aliases
{ "GSD": { "alias": "CVE-2021-29440", "description": "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.", "id": "GSD-2021-29440", "references": [ "https://packetstormsecurity.com/files/cve/CVE-2021-29440" ] }, "gsd": { "metadata": { "exploitCode": "unknown", "remediation": "unknown", "reportConfidence": "confirmed", "type": "vulnerability" }, "osvSchema": { "aliases": [ "CVE-2021-29440" ], "details": "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.", "id": "GSD-2021-29440", "modified": "2023-12-13T01:23:36.300322Z", "schema_version": "1.4.0" } }, "namespaces": { "cve.org": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2021-29440", "STATE": "PUBLIC", "TITLE": "Twig allowing dangerous PHP functions by default" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "grav", "version": { "version_data": [ { "version_value": "\u003c 1.7.11" } ] } } ] }, "vendor_name": "getgrav" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "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." } ] }, "impact": { "cvss": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 8.4, "baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "HIGH", "scope": "CHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H", "version": "3.1" } }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "{\"CWE-94\":\"Improper Control of Generation of Code (\u0027Code Injection\u0027)\"}" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc", "refsource": "CONFIRM", "url": "https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc" }, { "name": "https://packagist.org/packages/getgrav/grav", "refsource": "MISC", "url": "https://packagist.org/packages/getgrav/grav" }, { "name": "http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html", "refsource": "MISC", "url": "http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html" }, { "name": "https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities", "refsource": "MISC", "url": "https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities" } ] }, "source": { "advisory": "GHSA-g8r4-p96j-xfxc", "discovery": "UNKNOWN" } }, "gitlab.com": { "advisories": [ { "affected_range": "\u003c=1.7.10", "affected_versions": "All versions up to 1.7.10", "cvss_v2": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "cwe_ids": [ "CWE-1035", "CWE-78", "CWE-937", "CWE-94" ], "date": "2021-07-13", "description": "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.", "fixed_versions": [ "1.7.11" ], "identifier": "CVE-2021-29440", "identifiers": [ "GHSA-g8r4-p96j-xfxc", "CVE-2021-29440" ], "not_impacted": "All versions after 1.7.10", "package_slug": "packagist/getgrav/grav", "pubdate": "2021-04-16", "solution": "Upgrade to version 1.7.11 or above.", "title": "Improper Control of Generation of Code (\u0027Code Injection\u0027)", "urls": [ "https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc", "https://packagist.org/packages/getgrav/grav", "https://nvd.nist.gov/vuln/detail/CVE-2021-29440", "http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html", "https://github.com/advisories/GHSA-g8r4-p96j-xfxc" ], "uuid": "73efb1b6-5e39-45c4-be80-f113586e8fee" } ] }, "nvd.nist.gov": { "configurations": { "CVE_data_version": "4.0", "nodes": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*", "cpe_name": [], "versionEndExcluding": "1.7.11", "vulnerable": true } ], "operator": "OR" } ] }, "cve": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2021-29440" }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "en", "value": "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." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "en", "value": "CWE-94" } ] } ] }, "references": { "reference_data": [ { "name": "https://packagist.org/packages/getgrav/grav", "refsource": "MISC", "tags": [ "Product", "Third Party Advisory" ], "url": "https://packagist.org/packages/getgrav/grav" }, { "name": "https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc", "refsource": "CONFIRM", "tags": [ "Third Party Advisory" ], "url": "https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc" }, { "name": "http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html", "refsource": "MISC", "tags": [ "Exploit", "Third Party Advisory", "VDB Entry" ], "url": "http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html" }, { "name": "https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities", "refsource": "MISC", "tags": [ "Exploit", "Third Party Advisory" ], "url": "https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities" } ] } }, "impact": { "baseMetricV2": { "acInsufInfo": false, "cvssV2": { "accessComplexity": "LOW", "accessVector": "NETWORK", "authentication": "SINGLE", "availabilityImpact": "PARTIAL", "baseScore": 6.5, "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "version": "2.0" }, "exploitabilityScore": 8.0, "impactScore": 6.4, "obtainAllPrivilege": false, "obtainOtherPrivilege": false, "obtainUserPrivilege": false, "severity": "MEDIUM", "userInteractionRequired": false }, "baseMetricV3": { "cvssV3": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 7.2, "baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "HIGH", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "version": "3.1" }, "exploitabilityScore": 1.2, "impactScore": 5.9 } }, "lastModifiedDate": "2022-11-09T03:12Z", "publishedDate": "2021-04-13T20:15Z" } } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…