{"schemaVersion":4,"id":"CVE-2023-40028","aliases":["GHSA-9c9v-w225-v5rg","BIT-ghost-2023-40028"],"status":"published","duplicateOf":null,"title":"Arbitrary file read via symlinks in Ghost","description":"Ghost is an open source content management system. Versions prior to 5.59.1 are subject to a vulnerability which allows authenticated users to upload files that are symlinks. This can be exploited to perform an arbitrary file read of any file on the host operating system. Site administrators can check for exploitation of this issue by looking for unknown symlinks within Ghost's `content/` folder. Version 5.59.1 contains a fix for this issue. All users are advised to upgrade. There are no known workarounds for this vulnerability.","dates":{"published":"2023-08-15T17:25:16.758Z","modified":"2024-10-02T17:45:39.305Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","exploitability":3.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.65734,"percentile":0.99282,"severity":"critical","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":-3.2200000000000006,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.68954},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.68737,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0996,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0996,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0996,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0996,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0996,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0996,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.65734,"percentile":0.99282}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.68954,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0996,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0996,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0996,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0996,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0996,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0996,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.65734,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.65734,"percentile":0.99282}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"52409","name":"Ghost CMS < 5.59.1 - Authenticated Arbitrary File Read","source":"exploit-database","url":"https://www.exploit-db.com/exploits/52409","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["multiple"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"multiple","file":"exploits/multiple/webapps/52409.py","codes":["CVE-2023-40028"]},"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"ghost","product":"ghost","name":"ghost","label":"ghost","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.59.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"5.59.1","endInclusive":false}}],"versionsText":"< 5.59.1","eol":null,"hubHref":"/vendor/ghost/ghost"},{"vendor":"Npm","product":"ghost","name":"ghost","label":"ghost","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/ghost","purlType":"npm","versions":[{"text":"< 5.59.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"5.59.1","endInclusive":false}}],"versionsText":"< 5.59.1","eol":null,"hubHref":null},{"vendor":"tryghost","product":"ghost","name":"Ghost","label":"ghost","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.59.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"5.59.1","endInclusive":false}}],"versionsText":"< 5.59.1","eol":null,"hubHref":"/vendor/tryghost/ghost"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/TryGhost/Ghost/security/advisories/GHSA-9c9v-w225-v5rg","label":"github.com/TryGhost/Ghost/security/advisories/GHSA-9c9v-w225-v5rg","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://github.com/TryGhost/Ghost/commit/690fbf3f7302ff3f77159c0795928bdd20f41205","label":"github.com/TryGhost/Ghost/commit/690fbf3f7302ff3f77159c0795928bdd20f41205","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40028","label":"nvd.nist.gov/vuln/detail/CVE-2023-40028","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/TryGhost/Ghost","label":"github.com/TryGhost/Ghost","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-08-15T17:25:16.758Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-10-02T17:45:39.305Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 4.9, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,1,66,49],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.65734,"stale":false,"promoted":null},{"type":"exploit","source":"exploit-database","date":"2025-08-11T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"maturity":"poc","verified":false},{"type":"cvss","source":"cve.org","date":"2024-10-02T17:45:39.305Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","version":"3.1","headline":true},{"type":"cvss","source":"osv_npm","date":"2024-10-02T17:45:39.305Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-10-02T17:45:39.305Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2024-10-02T17:45:27.440Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.65734,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T09:01:26.874Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T09:01:27.430Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T09:01:27.610Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T09:01:02.756Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T09:01:25.188Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T09:01:24.136Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T10:02:10.749Z","stale":false,"partial":false}}