CVE-2021-35397 (GCVE-0-2021-35397)

Vulnerability from cvelistv5 – Published: 2021-08-04 10:41 – Updated: 2024-08-04 00:40
VLAI?
Summary
A path traversal vulnerability in the static router for Drogon from 1.0.0-beta14 to 1.6.0 could allow an unauthenticated, remote attacker to arbitrarily read files. The vulnerability is due to lack of proper input validation for requested path. An attacker could exploit this vulnerability by sending crafted HTTP request with specific path to read. Successful exploitation could allow the attacker to read files that should be restricted.
Severity ?
No CVSS data available.
CWE
  • n/a
Assigner
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-04T00:40:45.694Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/an-tao/drogon"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/an-tao/drogon/wiki/ENG-02-Installation"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "n/a",
          "vendor": "n/a",
          "versions": [
            {
              "status": "affected",
              "version": "n/a"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "A path traversal vulnerability in the static router for Drogon from 1.0.0-beta14 to 1.6.0 could allow an unauthenticated, remote attacker to arbitrarily read files. The vulnerability is due to lack of proper input validation for requested path. An attacker could exploit this vulnerability by sending crafted HTTP request with specific path to read. Successful exploitation could allow the attacker to read files that should be restricted."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "n/a",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2021-08-04T10:41:07.000Z",
        "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
        "shortName": "mitre"
      },
      "references": [
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/an-tao/drogon"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/an-tao/drogon/wiki/ENG-02-Installation"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site"
        }
      ],
      "x_legacyV4Record": {
        "CVE_data_meta": {
          "ASSIGNER": "cve@mitre.org",
          "ID": "CVE-2021-35397",
          "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": "A path traversal vulnerability in the static router for Drogon from 1.0.0-beta14 to 1.6.0 could allow an unauthenticated, remote attacker to arbitrarily read files. The vulnerability is due to lack of proper input validation for requested path. An attacker could exploit this vulnerability by sending crafted HTTP request with specific path to read. Successful exploitation could allow the attacker to read files that should be restricted."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "eng",
                  "value": "n/a"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/an-tao/drogon",
              "refsource": "MISC",
              "url": "https://github.com/an-tao/drogon"
            },
            {
              "name": "https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67",
              "refsource": "MISC",
              "url": "https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67"
            },
            {
              "name": "https://github.com/an-tao/drogon/wiki/ENG-02-Installation",
              "refsource": "MISC",
              "url": "https://github.com/an-tao/drogon/wiki/ENG-02-Installation"
            },
            {
              "name": "https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site",
              "refsource": "MISC",
              "url": "https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site"
            }
          ]
        }
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
    "assignerShortName": "mitre",
    "cveId": "CVE-2021-35397",
    "datePublished": "2021-08-04T10:41:07.000Z",
    "dateReserved": "2021-06-23T00:00:00.000Z",
    "dateUpdated": "2024-08-04T00:40:45.694Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2021-35397",
      "date": "2026-05-01",
      "epss": "0.02944",
      "percentile": "0.86492"
    },
    "fkie_nvd": {
      "configurations": "[{\"nodes\": [{\"operator\": \"OR\", \"negate\": false, \"cpeMatch\": [{\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:drogon:drogon:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"1.1.0\", \"versionEndIncluding\": \"1.6.0\", \"matchCriteriaId\": \"2D1827E9-B961-46A5-8C75-962996DBA831\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:drogon:drogon:1.0.0:-:*:*:*:*:*:*\", \"matchCriteriaId\": \"3FE62923-CE5D-4200-9F1D-BFC95E695D6A\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:drogon:drogon:1.0.0:beta14:*:*:*:*:*:*\", \"matchCriteriaId\": \"0F1B3195-9E7C-4015-B21B-888417158985\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:drogon:drogon:1.0.0:beta15:*:*:*:*:*:*\", \"matchCriteriaId\": \"362C466E-8B87-477F-A454-4AB1F4FCF6C5\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:drogon:drogon:1.0.0:beta16:*:*:*:*:*:*\", \"matchCriteriaId\": \"8EF8B059-B85F-4EEF-8CFE-E441E4563577\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:drogon:drogon:1.0.0:beta17:*:*:*:*:*:*\", \"matchCriteriaId\": \"EDBF5CD1-A4AE-461F-B0ED-88ACAA1D92A0\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:drogon:drogon:1.0.0:beta18:*:*:*:*:*:*\", \"matchCriteriaId\": \"26DC09CF-AFA1-4AE8-9267-95A5D01E88DD\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:drogon:drogon:1.0.0:beta19:*:*:*:*:*:*\", \"matchCriteriaId\": \"15346F7B-A84E-4E92-98F2-F906737FA353\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:drogon:drogon:1.0.0:beta20:*:*:*:*:*:*\", \"matchCriteriaId\": \"9FFD1D23-0025-4177-AA30-E6213D0B042D\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:drogon:drogon:1.0.0:beta21:*:*:*:*:*:*\", \"matchCriteriaId\": \"CB90905F-016A-42D0-B94A-30D3AB7A051F\"}]}]}]",
      "descriptions": "[{\"lang\": \"en\", \"value\": \"A path traversal vulnerability in the static router for Drogon from 1.0.0-beta14 to 1.6.0 could allow an unauthenticated, remote attacker to arbitrarily read files. The vulnerability is due to lack of proper input validation for requested path. An attacker could exploit this vulnerability by sending crafted HTTP request with specific path to read. Successful exploitation could allow the attacker to read files that should be restricted.\"}, {\"lang\": \"es\", \"value\": \"Una vulnerabilidad de salto de ruta en el enrutador est\\u00e1tico para Drogon desde versi\\u00f3n 1.0.0-beta14 hasta 1.6.0, podr\\u00eda permitir a un atacante remoto no autenticado leer archivos de forma arbitraria. La vulnerabilidad es debido a una falta de comprobaci\\u00f3n de entrada apropiada para la ruta de acceso solicitada. Un atacante podr\\u00eda explotar esta vulnerabilidad mediante el env\\u00edo de una petici\\u00f3n HTTP dise\\u00f1ada con una ruta espec\\u00edfica para leer. Una explotaci\\u00f3n con \\u00e9xito podr\\u00eda permitir al atacante leer archivos que deber\\u00edan estar restringidos\"}]",
      "id": "CVE-2021-35397",
      "lastModified": "2024-11-21T06:12:17.530",
      "metrics": "{\"cvssMetricV31\": [{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N\", \"baseScore\": 7.5, \"baseSeverity\": \"HIGH\", \"attackVector\": \"NETWORK\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"NONE\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"HIGH\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"NONE\"}, \"exploitabilityScore\": 3.9, \"impactScore\": 3.6}], \"cvssMetricV2\": [{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"cvssData\": {\"version\": \"2.0\", \"vectorString\": \"AV:N/AC:L/Au:N/C:P/I:N/A:N\", \"baseScore\": 5.0, \"accessVector\": \"NETWORK\", \"accessComplexity\": \"LOW\", \"authentication\": \"NONE\", \"confidentialityImpact\": \"PARTIAL\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"NONE\"}, \"baseSeverity\": \"MEDIUM\", \"exploitabilityScore\": 10.0, \"impactScore\": 2.9, \"acInsufInfo\": false, \"obtainAllPrivilege\": false, \"obtainUserPrivilege\": false, \"obtainOtherPrivilege\": false, \"userInteractionRequired\": false}]}",
      "published": "2021-08-04T11:15:08.003",
      "references": "[{\"url\": \"https://github.com/an-tao/drogon\", \"source\": \"cve@mitre.org\", \"tags\": [\"Third Party Advisory\"]}, {\"url\": \"https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67\", \"source\": \"cve@mitre.org\", \"tags\": [\"Exploit\", \"Third Party Advisory\"]}, {\"url\": \"https://github.com/an-tao/drogon/wiki/ENG-02-Installation\", \"source\": \"cve@mitre.org\", \"tags\": [\"Third Party Advisory\"]}, {\"url\": \"https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site\", \"source\": \"cve@mitre.org\", \"tags\": [\"Third Party Advisory\"]}, {\"url\": \"https://github.com/an-tao/drogon\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Third Party Advisory\"]}, {\"url\": \"https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Exploit\", \"Third Party Advisory\"]}, {\"url\": \"https://github.com/an-tao/drogon/wiki/ENG-02-Installation\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Third Party Advisory\"]}, {\"url\": \"https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Third Party Advisory\"]}]",
      "sourceIdentifier": "cve@mitre.org",
      "vulnStatus": "Modified",
      "weaknesses": "[{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-22\"}]}]"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2021-35397\",\"sourceIdentifier\":\"cve@mitre.org\",\"published\":\"2021-08-04T11:15:08.003\",\"lastModified\":\"2024-11-21T06:12:17.530\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"A path traversal vulnerability in the static router for Drogon from 1.0.0-beta14 to 1.6.0 could allow an unauthenticated, remote attacker to arbitrarily read files. The vulnerability is due to lack of proper input validation for requested path. An attacker could exploit this vulnerability by sending crafted HTTP request with specific path to read. Successful exploitation could allow the attacker to read files that should be restricted.\"},{\"lang\":\"es\",\"value\":\"Una vulnerabilidad de salto de ruta en el enrutador est\u00e1tico para Drogon desde versi\u00f3n 1.0.0-beta14 hasta 1.6.0, podr\u00eda permitir a un atacante remoto no autenticado leer archivos de forma arbitraria. La vulnerabilidad es debido a una falta de comprobaci\u00f3n de entrada apropiada para la ruta de acceso solicitada. Un atacante podr\u00eda explotar esta vulnerabilidad mediante el env\u00edo de una petici\u00f3n HTTP dise\u00f1ada con una ruta espec\u00edfica para leer. Una explotaci\u00f3n con \u00e9xito podr\u00eda permitir al atacante leer archivos que deber\u00edan estar restringidos\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N\",\"baseScore\":7.5,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":3.9,\"impactScore\":3.6}],\"cvssMetricV2\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"2.0\",\"vectorString\":\"AV:N/AC:L/Au:N/C:P/I:N/A:N\",\"baseScore\":5.0,\"accessVector\":\"NETWORK\",\"accessComplexity\":\"LOW\",\"authentication\":\"NONE\",\"confidentialityImpact\":\"PARTIAL\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"baseSeverity\":\"MEDIUM\",\"exploitabilityScore\":10.0,\"impactScore\":2.9,\"acInsufInfo\":false,\"obtainAllPrivilege\":false,\"obtainUserPrivilege\":false,\"obtainOtherPrivilege\":false,\"userInteractionRequired\":false}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-22\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:drogon:drogon:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"1.1.0\",\"versionEndIncluding\":\"1.6.0\",\"matchCriteriaId\":\"2D1827E9-B961-46A5-8C75-962996DBA831\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:drogon:drogon:1.0.0:-:*:*:*:*:*:*\",\"matchCriteriaId\":\"3FE62923-CE5D-4200-9F1D-BFC95E695D6A\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:drogon:drogon:1.0.0:beta14:*:*:*:*:*:*\",\"matchCriteriaId\":\"0F1B3195-9E7C-4015-B21B-888417158985\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:drogon:drogon:1.0.0:beta15:*:*:*:*:*:*\",\"matchCriteriaId\":\"362C466E-8B87-477F-A454-4AB1F4FCF6C5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:drogon:drogon:1.0.0:beta16:*:*:*:*:*:*\",\"matchCriteriaId\":\"8EF8B059-B85F-4EEF-8CFE-E441E4563577\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:drogon:drogon:1.0.0:beta17:*:*:*:*:*:*\",\"matchCriteriaId\":\"EDBF5CD1-A4AE-461F-B0ED-88ACAA1D92A0\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:drogon:drogon:1.0.0:beta18:*:*:*:*:*:*\",\"matchCriteriaId\":\"26DC09CF-AFA1-4AE8-9267-95A5D01E88DD\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:drogon:drogon:1.0.0:beta19:*:*:*:*:*:*\",\"matchCriteriaId\":\"15346F7B-A84E-4E92-98F2-F906737FA353\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:drogon:drogon:1.0.0:beta20:*:*:*:*:*:*\",\"matchCriteriaId\":\"9FFD1D23-0025-4177-AA30-E6213D0B042D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:drogon:drogon:1.0.0:beta21:*:*:*:*:*:*\",\"matchCriteriaId\":\"CB90905F-016A-42D0-B94A-30D3AB7A051F\"}]}]}],\"references\":[{\"url\":\"https://github.com/an-tao/drogon\",\"source\":\"cve@mitre.org\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67\",\"source\":\"cve@mitre.org\",\"tags\":[\"Exploit\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/an-tao/drogon/wiki/ENG-02-Installation\",\"source\":\"cve@mitre.org\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site\",\"source\":\"cve@mitre.org\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/an-tao/drogon\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Exploit\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/an-tao/drogon/wiki/ENG-02-Installation\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Third Party Advisory\"]}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

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…

Detection rules are retrieved from Rulezet.

Loading…

Loading…