{"api_version":"1","generated_at":"2026-07-23T12:30:55+00:00","cve":"CVE-2023-0340","urls":{"html":"https://cve.report/CVE-2023-0340","api":"https://cve.report/api/cve/CVE-2023-0340.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-0340","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-0340"},"summary":{"title":"CVE-2023-0340","description":"The Custom Content Shortcode WordPress plugin through 4.0.2 does not validate one of its shortcode attribute, which could allow users with a contributor role and above to include arbitrary files via a traversal attack. This could also allow them to read non PHP files and retrieve their content. RCE could also be achieved if the attacker manage to upload a malicious image containing PHP code, and then include it via the affected attribute, on a default WP install, authors could easily achieve that given that they have the upload_file capability.","state":"PUBLIC","assigner":"contact@wpscan.com","published_at":"2023-03-20 16:15:00","updated_at":"2023-11-07 04:00:00"},"problem_types":[],"metrics":[],"references":[{"url":"https://wpscan.com/vulnerability/71956598-90aa-4557-947a-c4716674543d","name":"https://wpscan.com/vulnerability/71956598-90aa-4557-947a-c4716674543d","refsource":"MISC","tags":[],"title":"Just a moment...","mime":"text/html","httpstatus":"403","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-0340","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0340","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"340","vulnerable":"1","versionEndIncluding":"4.0.2","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"custom_content_shortcode_project","cpe5":"custom_content_shortcode","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"wordpress","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-0340","ASSIGNER":"contact@wpscan.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"The Custom Content Shortcode WordPress plugin through 4.0.2 does not validate one of its shortcode attribute, which could allow users with a contributor role and above to include arbitrary files via a traversal attack. This could also allow them to read non PHP files and retrieve their content. RCE could also be achieved if the attacker manage to upload a malicious image containing PHP code, and then include it via the affected attribute, on a default WP install, authors could easily achieve that given that they have the upload_file capability."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"Unknown","product":{"product_data":[{"product_name":"Custom Content Shortcode","version":{"version_data":[{"version_value":"not down converted","x_cve_json_5_version_data":{"versions":[{"status":"affected","versionType":"custom","version":"0","lessThanOrEqual":"4.0.2"}],"defaultStatus":"affected"}}]}}]}}]}},"references":{"reference_data":[{"url":"https://wpscan.com/vulnerability/71956598-90aa-4557-947a-c4716674543d","refsource":"MISC","name":"https://wpscan.com/vulnerability/71956598-90aa-4557-947a-c4716674543d"}]},"generator":{"engine":"WPScan CVE Generator"},"source":{"discovery":"EXTERNAL"},"credits":[{"lang":"en","value":"Erwan LR (WPScan)"},{"lang":"en","value":"WPScan"}]},"nvd":{"publishedDate":"2023-03-20 16:15:00","lastModifiedDate":"2023-11-07 04:00:00","problem_types":[],"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}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:custom_content_shortcode_project:custom_content_shortcode:*:*:*:*:*:wordpress:*:*","versionEndIncluding":"4.0.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}