{"api_version":"1","generated_at":"2026-07-24T17:35:16+00:00","cve":"CVE-2021-31590","urls":{"html":"https://cve.report/CVE-2021-31590","api":"https://cve.report/api/cve/CVE-2021-31590.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31590","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31590"},"summary":{"title":"CVE-2021-31590","description":"PwnDoc all versions until 0.4.0 (2021-08-23) has incorrect JSON Webtoken handling, leading to incorrect access control. With a valid JSON Webtoken that is used for authentication and authorization, a user can keep his admin privileges even if he is downgraded to the \"user\" privilege. Even after a user's account is deleted, the user can still access the administration panel (and add or delete users) and has complete access to the system.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-07-19 20:15:00","updated_at":"2022-07-12 17:42:00"},"problem_types":["NVD-CWE-Other"],"metrics":[],"references":[{"url":"https://github.com/pwndoc/pwndoc/security/advisories","name":"https://github.com/pwndoc/pwndoc/security/advisories","refsource":"MISC","tags":[],"title":"Security Advisories · pwndoc/pwndoc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-2021-08-23","name":"https://github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-2021-08-23","refsource":"MISC","tags":[],"title":"pwndoc/CHANGELOG.md at 59519735b0d831d8fd96d7c3387f66d28407e583 · pwndoc/pwndoc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939d","name":"https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939d","refsource":"MISC","tags":[],"title":"Update JWT generation · pwndoc/pwndoc@15f3dc0 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pwndoc/pwndoc/pull/128","name":"https://github.com/pwndoc/pwndoc/pull/128","refsource":"MISC","tags":[],"title":"Applied fix for CVE-2021-31590 by Lednerb · Pull Request #128 · pwndoc/pwndoc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab","name":"https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab","refsource":"MISC","tags":[],"title":"Update Session management using refresh token · pwndoc/pwndoc@ff1b868 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.dgc.org/responsible_disclosure_pwndoc_jwt","name":"https://www.dgc.org/responsible_disclosure_pwndoc_jwt","refsource":"MISC","tags":[],"title":"DGC | Deutsche Gesellschaft für Cybersicherheit | PwnDoc - Incorrect Access Control Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pwndoc/pwndoc/pull/74","name":"https://github.com/pwndoc/pwndoc/pull/74","refsource":"MISC","tags":[],"title":"Security Update: Change JWT Secret and TLS Certificate automatically on build by Lednerb · Pull Request #74 · pwndoc/pwndoc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-31590","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31590","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"31590","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"pwndoc_project","cpe5":"pwndoc","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"31590","vulnerable":"1","versionEndIncluding":"2021-04-22","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"pwndoc_project","cpe5":"pwndoc","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-31590","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":"PwnDoc all versions until 0.4.0 (2021-08-23) has incorrect JSON Webtoken handling, leading to incorrect access control. With a valid JSON Webtoken that is used for authentication and authorization, a user can keep his admin privileges even if he is downgraded to the \"user\" privilege. Even after a user's account is deleted, the user can still access the administration panel (and add or delete users) and has complete access to the system."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/pwndoc/pwndoc/security/advisories","refsource":"MISC","name":"https://github.com/pwndoc/pwndoc/security/advisories"},{"refsource":"MISC","name":"https://github.com/pwndoc/pwndoc/pull/128","url":"https://github.com/pwndoc/pwndoc/pull/128"},{"refsource":"MISC","name":"https://github.com/pwndoc/pwndoc/pull/74","url":"https://github.com/pwndoc/pwndoc/pull/74"},{"refsource":"MISC","name":"https://www.dgc.org/responsible_disclosure_pwndoc_jwt","url":"https://www.dgc.org/responsible_disclosure_pwndoc_jwt"},{"refsource":"MISC","name":"https://github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-2021-08-23","url":"https://github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-2021-08-23"},{"refsource":"MISC","name":"https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939d","url":"https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939d"},{"refsource":"MISC","name":"https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab","url":"https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab"}]}},"nvd":{"publishedDate":"2021-07-19 20:15:00","lastModifiedDate":"2022-07-12 17:42:00","problem_types":["NVD-CWE-Other"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:C/I:C/A:C","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":9},"severity":"HIGH","exploitabilityScore":8,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:pwndoc_project:pwndoc:*:*:*:*:*:*:*:*","versionEndExcluding":"0.4.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"31590","Ordinal":"206882","Title":"CVE-2021-31590","CVE":"CVE-2021-31590","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"31590","Ordinal":"1","NoteData":"PwnDoc all versions until 0.4.0 (2021-08-23) has incorrect JSON Webtoken handling, leading to incorrect access control. With a valid JSON Webtoken that is used for authentication and authorization, a user can keep his admin privileges even if he is downgraded to the \"user\" privilege. Even after a user's account is deleted, the user can still access the administration panel (and add or delete users) and has complete access to the system.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"31590","Ordinal":"2","NoteData":"2021-07-19","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"31590","Ordinal":"3","NoteData":"2021-09-13","Type":"Other","Title":"Modified"}]}}}