CVE-2025-66295 (GCVE-0-2025-66295)
Vulnerability from cvelistv5 – Published: 2025-12-01 20:46 – Updated: 2025-12-02 14:04
VLAI?
Title
Grav vulnerable to Path traversal / arbitrary YAML write via user creation leading to Account Takeover / System Corruption
Summary
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, when a user with privilege of user creation creates a new user through the Admin UI and supplies a username containing path traversal sequences (for example ..\Nijat or ../Nijat), Grav writes the account YAML file to an unintended path outside user/accounts/. The written YAML can contain account fields such as email, fullname, twofa_secret, and hashed_password. This vulnerability is fixed in 1.8.0-beta.27.
Severity ?
8.8 (High)
CWE
- CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Assigner
References
| URL | Tags | |||||||
|---|---|---|---|---|---|---|---|---|
|
||||||||
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2025-66295",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-12-02T14:04:26.033361Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2025-12-02T14:04:38.344Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "grav",
"vendor": "getgrav",
"versions": [
{
"status": "affected",
"version": "\u003c 1.8.0-beta.27"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Grav is a file-based Web platform. Prior to 1.8.0-beta.27, when a user with privilege of user creation creates a new user through the Admin UI and supplies a username containing path traversal sequences (for example ..\\Nijat or ../Nijat), Grav writes the account YAML file to an unintended path outside user/accounts/. The written YAML can contain account fields such as email, fullname, twofa_secret, and hashed_password. This vulnerability is fixed in 1.8.0-beta.27."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-22",
"description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2025-12-01T20:46:56.726Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/getgrav/grav/security/advisories/GHSA-h756-wh59-hhjv",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/getgrav/grav/security/advisories/GHSA-h756-wh59-hhjv"
},
{
"name": "https://github.com/getgrav/grav/commit/3462d94d575064601689b236508c316242e15741",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/getgrav/grav/commit/3462d94d575064601689b236508c316242e15741"
}
],
"source": {
"advisory": "GHSA-h756-wh59-hhjv",
"discovery": "UNKNOWN"
},
"title": "Grav vulnerable to Path traversal / arbitrary YAML write via user creation leading to Account Takeover / System Corruption"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2025-66295",
"datePublished": "2025-12-01T20:46:56.726Z",
"dateReserved": "2025-11-26T23:11:46.393Z",
"dateUpdated": "2025-12-02T14:04:38.344Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"nvd": "{\"cve\":{\"id\":\"CVE-2025-66295\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2025-12-01T21:15:53.000\",\"lastModified\":\"2025-12-04T18:34:22.470\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"Grav is a file-based Web platform. Prior to 1.8.0-beta.27, when a user with privilege of user creation creates a new user through the Admin UI and supplies a username containing path traversal sequences (for example ..\\\\Nijat or ../Nijat), Grav writes the account YAML file to an unintended path outside user/accounts/. The written YAML can contain account fields such as email, fullname, twofa_secret, and hashed_password. This vulnerability is fixed in 1.8.0-beta.27.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":8.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":2.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-22\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"1.7.49.5\",\"versionEndExcluding\":\"1.8.0\",\"matchCriteriaId\":\"4F55C0B3-A41D-4E64-A631-E4868A40A8A5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta1:*:*:*:*:*:*\",\"matchCriteriaId\":\"8A383F2E-C6BA-440B-B648-A3313B7D91C3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta10:*:*:*:*:*:*\",\"matchCriteriaId\":\"F7EF2DEC-2798-4D0D-9C27-0F01BAFEAEFD\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta11:*:*:*:*:*:*\",\"matchCriteriaId\":\"530C6F64-F30B-4E93-9A12-D9625EA57483\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta12:*:*:*:*:*:*\",\"matchCriteriaId\":\"9AC28BF9-626D-4514-91F0-F81DAB5D3602\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta13:*:*:*:*:*:*\",\"matchCriteriaId\":\"307AA375-E531-4AE5-BA79-2F9D4DE7A05F\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta14:*:*:*:*:*:*\",\"matchCriteriaId\":\"C2E3E312-485D-42B0-B465-64B6438CDCAE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta15:*:*:*:*:*:*\",\"matchCriteriaId\":\"5BE4B2F9-1B6D-4D18-916A-5C95A3213222\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta16:*:*:*:*:*:*\",\"matchCriteriaId\":\"763207F0-92D1-4274-A30A-DE634C5852C3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta17:*:*:*:*:*:*\",\"matchCriteriaId\":\"1DE8F350-BA07-4DAA-AE4B-5E0A532B6828\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta18:*:*:*:*:*:*\",\"matchCriteriaId\":\"F9150B94-0DF3-43F3-9806-39787A6C0E4D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta19:*:*:*:*:*:*\",\"matchCriteriaId\":\"BAA7C7EC-8FB2-445D-8A02-1743D87F5416\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta2:*:*:*:*:*:*\",\"matchCriteriaId\":\"7A6BEA2A-D534-4C9E-811A-8A46E214C46D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta20:*:*:*:*:*:*\",\"matchCriteriaId\":\"7A644F57-FF39-4262-9796-7C4F3B0851C1\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta21:*:*:*:*:*:*\",\"matchCriteriaId\":\"B2AFB9E7-084E-497B-B0FC-CA6A5033C5BF\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta22:*:*:*:*:*:*\",\"matchCriteriaId\":\"5C5E8823-9083-4FFA-9897-CAD0340DCE68\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta23:*:*:*:*:*:*\",\"matchCriteriaId\":\"9C048938-E0EC-4AD0-9847-FD74E6770FE2\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta24:*:*:*:*:*:*\",\"matchCriteriaId\":\"F7B43876-1445-418A-9707-E692FDF62C4D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta25:*:*:*:*:*:*\",\"matchCriteriaId\":\"94B209DE-01C6-41BA-B912-CF57849A9F7A\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta26:*:*:*:*:*:*\",\"matchCriteriaId\":\"AB53AA10-87A5-4010-8019-BF4AA5ABC12B\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta3:*:*:*:*:*:*\",\"matchCriteriaId\":\"775E0913-F3EF-4A55-B162-5BF9C6E2E641\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta4:*:*:*:*:*:*\",\"matchCriteriaId\":\"3C3E022E-35CB-40AD-959A-F39949E38BD3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta5:*:*:*:*:*:*\",\"matchCriteriaId\":\"8779C813-A81A-4E21-AB86-6193933568BC\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta6:*:*:*:*:*:*\",\"matchCriteriaId\":\"B608EDD4-207A-41A7-A60D-496FDA8EAFEA\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta7:*:*:*:*:*:*\",\"matchCriteriaId\":\"AE1F2253-3EE0-4ADD-B8A5-C882A60FC626\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta8:*:*:*:*:*:*\",\"matchCriteriaId\":\"81D4C859-5560-42F1-ACD9-65210E523F28\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:getgrav:grav:1.8.0:beta9:*:*:*:*:*:*\",\"matchCriteriaId\":\"156707A7-9507-4AC1-9CD0-90E32836E9DF\"}]}]}],\"references\":[{\"url\":\"https://github.com/getgrav/grav/commit/3462d94d575064601689b236508c316242e15741\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\"]},{\"url\":\"https://github.com/getgrav/grav/security/advisories/GHSA-h756-wh59-hhjv\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Vendor Advisory\"]}]}}",
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2025-66295\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"poc\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-12-02T14:04:26.033361Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-12-02T14:04:32.897Z\"}}], \"cna\": {\"title\": \"Grav vulnerable to Path traversal / arbitrary YAML write via user creation leading to Account Takeover / System Corruption\", \"source\": {\"advisory\": \"GHSA-h756-wh59-hhjv\", \"discovery\": \"UNKNOWN\"}, \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 8.8, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}], \"affected\": [{\"vendor\": \"getgrav\", \"product\": \"grav\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 1.8.0-beta.27\"}]}], \"references\": [{\"url\": \"https://github.com/getgrav/grav/security/advisories/GHSA-h756-wh59-hhjv\", \"name\": \"https://github.com/getgrav/grav/security/advisories/GHSA-h756-wh59-hhjv\", \"tags\": [\"x_refsource_CONFIRM\"]}, {\"url\": \"https://github.com/getgrav/grav/commit/3462d94d575064601689b236508c316242e15741\", \"name\": \"https://github.com/getgrav/grav/commit/3462d94d575064601689b236508c316242e15741\", \"tags\": [\"x_refsource_MISC\"]}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"Grav is a file-based Web platform. Prior to 1.8.0-beta.27, when a user with privilege of user creation creates a new user through the Admin UI and supplies a username containing path traversal sequences (for example ..\\\\Nijat or ../Nijat), Grav writes the account YAML file to an unintended path outside user/accounts/. The written YAML can contain account fields such as email, fullname, twofa_secret, and hashed_password. This vulnerability is fixed in 1.8.0-beta.27.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-22\", \"description\": \"CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2025-12-01T20:46:56.726Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2025-66295\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-12-02T14:04:38.344Z\", \"dateReserved\": \"2025-11-26T23:11:46.393Z\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"datePublished\": \"2025-12-01T20:46:56.726Z\", \"assignerShortName\": \"GitHub_M\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…