Search

Find a vulnerability

Search criteria

    6 vulnerabilities by sanic_project

    FKIE_CVE-2022-35920

    Vulnerability from fkie_nvd - Published: 2022-08-01 22:15 - Updated: 2026-06-17 04:52
    Summary
    Sanic is an opensource python web server/framework. Affected versions of sanic allow access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted. Users are advised to upgrade. There is no known workaround for this issue.
    Impacted products
    Vendor Product Version
    sanic_project sanic *
    sanic_project sanic *
    sanic_project sanic *

    {
      "affected": [
        {
          "affectedData": [
            {
              "product": "sanic",
              "vendor": "sanic-org",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003e= 22.0.0, \u003c 22.6.1"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 21.0.0, \u003c 21.12.2"
                },
                {
                  "status": "affected",
                  "version": "\u003c 20.12.7"
                }
              ]
            }
          ],
          "source": "security-advisories@github.com"
        }
      ],
      "configurations": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*",
                  "matchCriteriaId": "DC6FE6CB-23D5-45E1-A733-9F5B5C5FB93A",
                  "versionEndExcluding": "20.12.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*",
                  "matchCriteriaId": "3771039A-1DBB-45BB-8C01-14A5D00AAABB",
                  "versionEndExcluding": "21.12.2",
                  "versionStartIncluding": "21.0.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*",
                  "matchCriteriaId": "DBE7A183-7780-46EB-B96E-8881D7E47984",
                  "versionEndExcluding": "22.6.1",
                  "versionStartIncluding": "22.0.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "cveTags": [],
      "descriptions": [
        {
          "lang": "en",
          "value": "Sanic is an opensource python web server/framework. Affected versions of sanic allow access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted. Users are advised to upgrade. There is no known workaround for this issue."
        },
        {
          "lang": "es",
          "value": "Sanic es un servidor/marco web de c\u00f3digo abierto en python. Las versiones afectadas de sanic permiten el acceso a directorios laterales cuando es usado \"app.static\" si son usadas URLs codificadas \"%2F\". El acceso a los directorios principales no est\u00e1 afectado. Es recomendado a usuarios actualizar. No se presentan mitigaciones conocidas para este problema"
        }
      ],
      "id": "CVE-2022-35920",
      "lastModified": "2026-06-17T04:52:31.360",
      "metrics": {
        "cvssMetricV31": [
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "LOW",
              "baseScore": 8.3,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "LOW",
              "integrityImpact": "LOW",
              "privilegesRequired": "NONE",
              "scope": "CHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L",
              "version": "3.1"
            },
            "exploitabilityScore": 3.9,
            "impactScore": 3.7,
            "source": "security-advisories@github.com",
            "type": "Secondary"
          },
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "NONE",
              "baseScore": 7.5,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "NONE",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
              "version": "3.1"
            },
            "exploitabilityScore": 3.9,
            "impactScore": 3.6,
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ],
        "ssvcV203": [
          {
            "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
            "ssvcData": {
              "id": "CVE-2022-35920",
              "options": [
                {
                  "exploitation": "poc"
                },
                {
                  "automatable": "yes"
                },
                {
                  "technicalImpact": "partial"
                }
              ],
              "role": "CISA Coordinator",
              "timestamp": "2025-04-22T15:40:06.042217Z",
              "version": "2.0.3"
            }
          }
        ]
      },
      "published": "2022-08-01T22:15:10.347",
      "references": [
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Exploit",
            "Issue Tracking",
            "Third Party Advisory"
          ],
          "url": "https://github.com/sanic-org/sanic/issues/2478"
        },
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Patch",
            "Third Party Advisory"
          ],
          "url": "https://github.com/sanic-org/sanic/pull/2495"
        },
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Exploit",
            "Issue Tracking",
            "Third Party Advisory"
          ],
          "url": "https://github.com/sanic-org/sanic/issues/2478"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Patch",
            "Third Party Advisory"
          ],
          "url": "https://github.com/sanic-org/sanic/pull/2495"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6"
        }
      ],
      "sourceIdentifier": "security-advisories@github.com",
      "vulnStatus": "Modified",
      "weaknesses": [
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-22"
            }
          ],
          "source": "security-advisories@github.com",
          "type": "Secondary"
        }
      ]
    }

    FKIE_CVE-2017-16762

    Vulnerability from fkie_nvd - Published: 2017-11-10 09:29 - Updated: 2026-06-17 01:09
    Summary
    Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substring.
    Impacted products
    Vendor Product Version
    sanic_project sanic *

    {
      "affected": [
        {
          "affectedData": [
            {
              "product": "n/a",
              "vendor": "n/a",
              "versions": [
                {
                  "status": "affected",
                  "version": "n/a"
                }
              ]
            }
          ],
          "source": "cve@mitre.org"
        }
      ],
      "configurations": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*",
                  "matchCriteriaId": "67986753-2441-4012-B464-11D28F96D310",
                  "versionEndIncluding": "0.5.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "cveTags": [],
      "descriptions": [
        {
          "lang": "en",
          "value": "Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substring."
        },
        {
          "lang": "es",
          "value": "Las versiones anteriores a la 0.5.1 de Sanic permiten la lectura de archivos arbitrarios con salto de directorio, tal y como se demuestra con la subcadena /static/..%2f."
        }
      ],
      "id": "CVE-2017-16762",
      "lastModified": "2026-06-17T01:09:52.970",
      "metrics": {
        "cvssMetricV2": [
          {
            "acInsufInfo": true,
            "baseSeverity": "MEDIUM",
            "cvssData": {
              "accessComplexity": "LOW",
              "accessVector": "NETWORK",
              "authentication": "NONE",
              "availabilityImpact": "NONE",
              "baseScore": 5.0,
              "confidentialityImpact": "PARTIAL",
              "integrityImpact": "NONE",
              "vectorString": "AV:N/AC:L/Au:N/C:P/I:N/A:N",
              "version": "2.0"
            },
            "exploitabilityScore": 10.0,
            "impactScore": 2.9,
            "obtainAllPrivilege": false,
            "obtainOtherPrivilege": false,
            "obtainUserPrivilege": false,
            "source": "nvd@nist.gov",
            "type": "Primary",
            "userInteractionRequired": false
          }
        ],
        "cvssMetricV30": [
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "NONE",
              "baseScore": 7.5,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "NONE",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
              "version": "3.0"
            },
            "exploitabilityScore": 3.9,
            "impactScore": 3.6,
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      },
      "published": "2017-11-10T09:29:00.330",
      "references": [
        {
          "source": "cve@mitre.org",
          "tags": [
            "Exploit",
            "Third Party Advisory"
          ],
          "url": "https://github.com/channelcat/sanic/issues/633"
        },
        {
          "source": "cve@mitre.org",
          "tags": [
            "Release Notes",
            "Third Party Advisory"
          ],
          "url": "https://github.com/channelcat/sanic/releases/tag/0.5.1"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Exploit",
            "Third Party Advisory"
          ],
          "url": "https://github.com/channelcat/sanic/issues/633"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Release Notes",
            "Third Party Advisory"
          ],
          "url": "https://github.com/channelcat/sanic/releases/tag/0.5.1"
        }
      ],
      "sourceIdentifier": "cve@mitre.org",
      "vulnStatus": "Modified",
      "weaknesses": [
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-22"
            }
          ],
          "source": "nvd@nist.gov",
          "type": "Primary"
        }
      ]
    }

    CVE-2022-35920 (GCVE-0-2022-35920)

    Vulnerability from nvd – Published: 2022-08-01 21:35 – Updated: 2025-04-22 17:45
    VLAI
    Title
    Improper Limitation of a Pathname to a Restricted Directory in sanic
    Summary
    Sanic is an opensource python web server/framework. Affected versions of sanic allow access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted. Users are advised to upgrade. There is no known workaround for this issue.
    SSVC
    Exploitation: poc Automatable: yes Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2025-04-22 15:40 UTC
    CWE
    • CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7812 records in the last 180 days details
    Impacted products
    Vendor Product Version
    sanic-org sanic Affected: >= 22.0.0, < 22.6.1
    Affected: >= 21.0.0, < 21.12.2
    Affected: < 20.12.7
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-03T09:51:58.602Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6"
              },
              {
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://github.com/sanic-org/sanic/issues/2478"
              },
              {
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://github.com/sanic-org/sanic/pull/2495"
              }
            ],
            "title": "CVE Program Container"
          },
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2022-35920",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2025-04-22T15:40:06.042217Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2025-04-22T17:45:43.669Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "sanic",
              "vendor": "sanic-org",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003e= 22.0.0, \u003c 22.6.1"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 21.0.0, \u003c 21.12.2"
                },
                {
                  "status": "affected",
                  "version": "\u003c 20.12.7"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Sanic is an opensource python web server/framework. Affected versions of sanic allow access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted. Users are advised to upgrade. There is no known workaround for this issue."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 8.3,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "LOW",
                "integrityImpact": "LOW",
                "privilegesRequired": "NONE",
                "scope": "CHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L",
                "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": "2022-08-01T21:35:27.000Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6"
            },
            {
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/sanic-org/sanic/issues/2478"
            },
            {
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/sanic-org/sanic/pull/2495"
            }
          ],
          "source": {
            "advisory": "GHSA-8cw9-5hmv-77w6",
            "discovery": "UNKNOWN"
          },
          "title": "Improper Limitation of a Pathname to a Restricted Directory in sanic",
          "x_legacyV4Record": {
            "CVE_data_meta": {
              "ASSIGNER": "security-advisories@github.com",
              "ID": "CVE-2022-35920",
              "STATE": "PUBLIC",
              "TITLE": "Improper Limitation of a Pathname to a Restricted Directory in sanic"
            },
            "affects": {
              "vendor": {
                "vendor_data": [
                  {
                    "product": {
                      "product_data": [
                        {
                          "product_name": "sanic",
                          "version": {
                            "version_data": [
                              {
                                "version_value": "\u003e= 22.0.0, \u003c 22.6.1"
                              },
                              {
                                "version_value": "\u003e= 21.0.0, \u003c 21.12.2"
                              },
                              {
                                "version_value": "\u003c 20.12.7"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "vendor_name": "sanic-org"
                  }
                ]
              }
            },
            "data_format": "MITRE",
            "data_type": "CVE",
            "data_version": "4.0",
            "description": {
              "description_data": [
                {
                  "lang": "eng",
                  "value": "Sanic is an opensource python web server/framework. Affected versions of sanic allow access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted. Users are advised to upgrade. There is no known workaround for this issue."
                }
              ]
            },
            "impact": {
              "cvss": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 8.3,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "LOW",
                "integrityImpact": "LOW",
                "privilegesRequired": "NONE",
                "scope": "CHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L",
                "version": "3.1"
              }
            },
            "problemtype": {
              "problemtype_data": [
                {
                  "description": [
                    {
                      "lang": "eng",
                      "value": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)"
                    }
                  ]
                }
              ]
            },
            "references": {
              "reference_data": [
                {
                  "name": "https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6",
                  "refsource": "CONFIRM",
                  "url": "https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6"
                },
                {
                  "name": "https://github.com/sanic-org/sanic/issues/2478",
                  "refsource": "MISC",
                  "url": "https://github.com/sanic-org/sanic/issues/2478"
                },
                {
                  "name": "https://github.com/sanic-org/sanic/pull/2495",
                  "refsource": "MISC",
                  "url": "https://github.com/sanic-org/sanic/pull/2495"
                }
              ]
            },
            "source": {
              "advisory": "GHSA-8cw9-5hmv-77w6",
              "discovery": "UNKNOWN"
            }
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2022-35920",
        "datePublished": "2022-08-01T21:35:27.000Z",
        "dateReserved": "2022-07-15T00:00:00.000Z",
        "dateUpdated": "2025-04-22T17:45:43.669Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2017-16762 (GCVE-0-2017-16762)

    Vulnerability from nvd – Published: 2017-11-10 09:00 – Updated: 2024-08-05 20:35
    VLAI
    Summary
    Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substring.
    Severity
    No CVSS data available.
    CWE
    • n/a
    Assigner
    mitre CNA under the mitre root
    CNA scorecard E 30/100 over 1988 records in the last 180 days details
    References
    Date Public
    2017-11-10 00:00
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-05T20:35:21.033Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://github.com/channelcat/sanic/releases/tag/0.5.1"
              },
              {
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://github.com/channelcat/sanic/issues/633"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "n/a",
              "vendor": "n/a",
              "versions": [
                {
                  "status": "affected",
                  "version": "n/a"
                }
              ]
            }
          ],
          "datePublic": "2017-11-10T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substring."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "n/a",
                  "lang": "en",
                  "type": "text"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2017-11-10T08:57:02.000Z",
            "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
            "shortName": "mitre"
          },
          "references": [
            {
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/channelcat/sanic/releases/tag/0.5.1"
            },
            {
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/channelcat/sanic/issues/633"
            }
          ],
          "x_legacyV4Record": {
            "CVE_data_meta": {
              "ASSIGNER": "cve@mitre.org",
              "ID": "CVE-2017-16762",
              "STATE": "PUBLIC"
            },
            "affects": {
              "vendor": {
                "vendor_data": [
                  {
                    "product": {
                      "product_data": [
                        {
                          "product_name": "n/a",
                          "version": {
                            "version_data": [
                              {
                                "version_value": "n/a"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "vendor_name": "n/a"
                  }
                ]
              }
            },
            "data_format": "MITRE",
            "data_type": "CVE",
            "data_version": "4.0",
            "description": {
              "description_data": [
                {
                  "lang": "eng",
                  "value": "Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substring."
                }
              ]
            },
            "problemtype": {
              "problemtype_data": [
                {
                  "description": [
                    {
                      "lang": "eng",
                      "value": "n/a"
                    }
                  ]
                }
              ]
            },
            "references": {
              "reference_data": [
                {
                  "name": "https://github.com/channelcat/sanic/releases/tag/0.5.1",
                  "refsource": "CONFIRM",
                  "url": "https://github.com/channelcat/sanic/releases/tag/0.5.1"
                },
                {
                  "name": "https://github.com/channelcat/sanic/issues/633",
                  "refsource": "CONFIRM",
                  "url": "https://github.com/channelcat/sanic/issues/633"
                }
              ]
            }
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
        "assignerShortName": "mitre",
        "cveId": "CVE-2017-16762",
        "datePublished": "2017-11-10T09:00:00.000Z",
        "dateReserved": "2017-11-10T00:00:00.000Z",
        "dateUpdated": "2024-08-05T20:35:21.033Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2022-35920 (GCVE-0-2022-35920)

    Vulnerability from cvelistv5 – Published: 2022-08-01 21:35 – Updated: 2025-04-22 17:45
    VLAI
    Title
    Improper Limitation of a Pathname to a Restricted Directory in sanic
    Summary
    Sanic is an opensource python web server/framework. Affected versions of sanic allow access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted. Users are advised to upgrade. There is no known workaround for this issue.
    SSVC
    Exploitation: poc Automatable: yes Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2025-04-22 15:40 UTC
    CWE
    • CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7812 records in the last 180 days details
    Impacted products
    Vendor Product Version
    sanic-org sanic Affected: >= 22.0.0, < 22.6.1
    Affected: >= 21.0.0, < 21.12.2
    Affected: < 20.12.7
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-03T09:51:58.602Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6"
              },
              {
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://github.com/sanic-org/sanic/issues/2478"
              },
              {
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://github.com/sanic-org/sanic/pull/2495"
              }
            ],
            "title": "CVE Program Container"
          },
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2022-35920",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2025-04-22T15:40:06.042217Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2025-04-22T17:45:43.669Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "sanic",
              "vendor": "sanic-org",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003e= 22.0.0, \u003c 22.6.1"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 21.0.0, \u003c 21.12.2"
                },
                {
                  "status": "affected",
                  "version": "\u003c 20.12.7"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Sanic is an opensource python web server/framework. Affected versions of sanic allow access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted. Users are advised to upgrade. There is no known workaround for this issue."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 8.3,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "LOW",
                "integrityImpact": "LOW",
                "privilegesRequired": "NONE",
                "scope": "CHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L",
                "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": "2022-08-01T21:35:27.000Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6"
            },
            {
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/sanic-org/sanic/issues/2478"
            },
            {
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/sanic-org/sanic/pull/2495"
            }
          ],
          "source": {
            "advisory": "GHSA-8cw9-5hmv-77w6",
            "discovery": "UNKNOWN"
          },
          "title": "Improper Limitation of a Pathname to a Restricted Directory in sanic",
          "x_legacyV4Record": {
            "CVE_data_meta": {
              "ASSIGNER": "security-advisories@github.com",
              "ID": "CVE-2022-35920",
              "STATE": "PUBLIC",
              "TITLE": "Improper Limitation of a Pathname to a Restricted Directory in sanic"
            },
            "affects": {
              "vendor": {
                "vendor_data": [
                  {
                    "product": {
                      "product_data": [
                        {
                          "product_name": "sanic",
                          "version": {
                            "version_data": [
                              {
                                "version_value": "\u003e= 22.0.0, \u003c 22.6.1"
                              },
                              {
                                "version_value": "\u003e= 21.0.0, \u003c 21.12.2"
                              },
                              {
                                "version_value": "\u003c 20.12.7"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "vendor_name": "sanic-org"
                  }
                ]
              }
            },
            "data_format": "MITRE",
            "data_type": "CVE",
            "data_version": "4.0",
            "description": {
              "description_data": [
                {
                  "lang": "eng",
                  "value": "Sanic is an opensource python web server/framework. Affected versions of sanic allow access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted. Users are advised to upgrade. There is no known workaround for this issue."
                }
              ]
            },
            "impact": {
              "cvss": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 8.3,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "LOW",
                "integrityImpact": "LOW",
                "privilegesRequired": "NONE",
                "scope": "CHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L",
                "version": "3.1"
              }
            },
            "problemtype": {
              "problemtype_data": [
                {
                  "description": [
                    {
                      "lang": "eng",
                      "value": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)"
                    }
                  ]
                }
              ]
            },
            "references": {
              "reference_data": [
                {
                  "name": "https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6",
                  "refsource": "CONFIRM",
                  "url": "https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6"
                },
                {
                  "name": "https://github.com/sanic-org/sanic/issues/2478",
                  "refsource": "MISC",
                  "url": "https://github.com/sanic-org/sanic/issues/2478"
                },
                {
                  "name": "https://github.com/sanic-org/sanic/pull/2495",
                  "refsource": "MISC",
                  "url": "https://github.com/sanic-org/sanic/pull/2495"
                }
              ]
            },
            "source": {
              "advisory": "GHSA-8cw9-5hmv-77w6",
              "discovery": "UNKNOWN"
            }
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2022-35920",
        "datePublished": "2022-08-01T21:35:27.000Z",
        "dateReserved": "2022-07-15T00:00:00.000Z",
        "dateUpdated": "2025-04-22T17:45:43.669Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2017-16762 (GCVE-0-2017-16762)

    Vulnerability from cvelistv5 – Published: 2017-11-10 09:00 – Updated: 2024-08-05 20:35
    VLAI
    Summary
    Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substring.
    Severity
    No CVSS data available.
    CWE
    • n/a
    Assigner
    mitre CNA under the mitre root
    CNA scorecard E 30/100 over 1988 records in the last 180 days details
    References
    Date Public
    2017-11-10 00:00
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-05T20:35:21.033Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://github.com/channelcat/sanic/releases/tag/0.5.1"
              },
              {
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://github.com/channelcat/sanic/issues/633"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "n/a",
              "vendor": "n/a",
              "versions": [
                {
                  "status": "affected",
                  "version": "n/a"
                }
              ]
            }
          ],
          "datePublic": "2017-11-10T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substring."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "n/a",
                  "lang": "en",
                  "type": "text"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2017-11-10T08:57:02.000Z",
            "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
            "shortName": "mitre"
          },
          "references": [
            {
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/channelcat/sanic/releases/tag/0.5.1"
            },
            {
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/channelcat/sanic/issues/633"
            }
          ],
          "x_legacyV4Record": {
            "CVE_data_meta": {
              "ASSIGNER": "cve@mitre.org",
              "ID": "CVE-2017-16762",
              "STATE": "PUBLIC"
            },
            "affects": {
              "vendor": {
                "vendor_data": [
                  {
                    "product": {
                      "product_data": [
                        {
                          "product_name": "n/a",
                          "version": {
                            "version_data": [
                              {
                                "version_value": "n/a"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "vendor_name": "n/a"
                  }
                ]
              }
            },
            "data_format": "MITRE",
            "data_type": "CVE",
            "data_version": "4.0",
            "description": {
              "description_data": [
                {
                  "lang": "eng",
                  "value": "Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substring."
                }
              ]
            },
            "problemtype": {
              "problemtype_data": [
                {
                  "description": [
                    {
                      "lang": "eng",
                      "value": "n/a"
                    }
                  ]
                }
              ]
            },
            "references": {
              "reference_data": [
                {
                  "name": "https://github.com/channelcat/sanic/releases/tag/0.5.1",
                  "refsource": "CONFIRM",
                  "url": "https://github.com/channelcat/sanic/releases/tag/0.5.1"
                },
                {
                  "name": "https://github.com/channelcat/sanic/issues/633",
                  "refsource": "CONFIRM",
                  "url": "https://github.com/channelcat/sanic/issues/633"
                }
              ]
            }
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
        "assignerShortName": "mitre",
        "cveId": "CVE-2017-16762",
        "datePublished": "2017-11-10T09:00:00.000Z",
        "dateReserved": "2017-11-10T00:00:00.000Z",
        "dateUpdated": "2024-08-05T20:35:21.033Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }