{"api_version":"1","generated_at":"2026-07-23T05:01:02+00:00","cve":"CVE-2008-5840","urls":{"html":"https://cve.report/CVE-2008-5840","api":"https://cve.report/api/cve/CVE-2008-5840.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2008-5840","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2008-5840"},"summary":{"title":"CVE-2008-5840","description":"PHP iCalendar 2.24 and earlier allows remote attackers to bypass authentication by setting the phpicalendar and phpicalendar_login cookies to 1.","state":"PUBLISHED","assigner":"mitre","published_at":"2009-01-05 16:30:04","updated_at":"2026-04-23 00:35:47"},"problem_types":["CWE-264","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"7.5","severity":"","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://www.exploit-db.com/exploits/6526","name":"https://www.exploit-db.com/exploits/6526","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"PHP iCalendar 2.24 - Insecure Cookie Handling - PHP webapps Exploit","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/45338","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/45338","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/31320","name":"http://www.securityfocus.com/bid/31320","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit"],"title":"PHP iCalendar Cookie Authentication Bypass Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://securityreason.com/securityalert/4865","name":"http://securityreason.com/securityalert/4865","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"PHP iCalendar <= 2.24 Insecure Cookie Handling Vulnerability  - CXSecurity.com","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2008-5840","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-5840","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"0.7","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"0.8","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"0.9","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"0.9.5","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"1.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"1.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"2.0","cpe7":"beta","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"2.0.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"2.0c","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"2.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"2.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"2.21","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"2.22","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"2.23","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"2.23","cpe7":"rc1","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"2.24","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2008","cve_id":"5840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpicalendar","cpe5":"phpicalendar2.0","cpe6":"alpha_test","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-07T11:04:44.705Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"6526","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred"],"url":"https://www.exploit-db.com/exploits/6526"},{"name":"4865","tags":["third-party-advisory","x_refsource_SREASON","x_transferred"],"url":"http://securityreason.com/securityalert/4865"},{"name":"phpicalendar-index-authentication-bypass(45338)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/45338"},{"name":"31320","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/31320"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2008-09-21T00:00:00.000Z","descriptions":[{"lang":"en","value":"PHP iCalendar 2.24 and earlier allows remote attackers to bypass authentication by setting the phpicalendar and phpicalendar_login cookies to 1."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-09-28T12:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"6526","tags":["exploit","x_refsource_EXPLOIT-DB"],"url":"https://www.exploit-db.com/exploits/6526"},{"name":"4865","tags":["third-party-advisory","x_refsource_SREASON"],"url":"http://securityreason.com/securityalert/4865"},{"name":"phpicalendar-index-authentication-bypass(45338)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/45338"},{"name":"31320","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/31320"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2008-5840","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":"PHP iCalendar 2.24 and earlier allows remote attackers to bypass authentication by setting the phpicalendar and phpicalendar_login cookies to 1."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"6526","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/6526"},{"name":"4865","refsource":"SREASON","url":"http://securityreason.com/securityalert/4865"},{"name":"phpicalendar-index-authentication-bypass(45338)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/45338"},{"name":"31320","refsource":"BID","url":"http://www.securityfocus.com/bid/31320"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2008-5840","datePublished":"2009-01-05T16:00:00.000Z","dateReserved":"2009-01-05T00:00:00.000Z","dateUpdated":"2024-08-07T11:04:44.705Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2009-01-05 16:30:04","lastModifiedDate":"2026-04-23 00:35:47","problem_types":["CWE-264","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":true,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:*:*:*:*:*:*:*:*","versionEndIncluding":"2.24","matchCriteriaId":"91B3E466-B39F-40FC-8D4C-19A3E6C8A5A5"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:0.7:*:*:*:*:*:*:*","matchCriteriaId":"D76E93A8-0EF2-4A84-A3FE-17A57BDF1EB0"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:0.8:*:*:*:*:*:*:*","matchCriteriaId":"306B2B11-1E73-4E64-B716-71D1CE64C6BA"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:0.9:*:*:*:*:*:*:*","matchCriteriaId":"959D9A75-85AE-4873-AD8C-F3377F8280FF"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:0.9.5:*:*:*:*:*:*:*","matchCriteriaId":"CD1D51DD-FEFD-4939-A681-5BF471109CCE"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:1.0:*:*:*:*:*:*:*","matchCriteriaId":"17E5A766-5E62-4001-BAD3-A77547855F8B"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:1.1:*:*:*:*:*:*:*","matchCriteriaId":"F22EE8BE-F51A-4139-B45B-74C100FC3370"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:2.0:beta:*:*:*:*:*:*","matchCriteriaId":"FEF861BA-987A-452F-B6E1-3B6A78C80565"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:2.0.1:*:*:*:*:*:*:*","matchCriteriaId":"207B8342-E3D0-419B-88B3-72F6394DA5CE"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:2.0c:*:*:*:*:*:*:*","matchCriteriaId":"46645062-B97C-4B34-B0E3-6C2182C12573"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:2.1:*:*:*:*:*:*:*","matchCriteriaId":"80CF2891-5AF4-47FC-8AAE-4A90B45236DF"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:2.2:*:*:*:*:*:*:*","matchCriteriaId":"7C24EC36-26ED-4217-BF6E-E00CF0E2A05E"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:2.21:*:*:*:*:*:*:*","matchCriteriaId":"E292DC2D-1936-43AB-B34B-A6362BC755B3"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:2.22:*:*:*:*:*:*:*","matchCriteriaId":"A7E54DE8-938E-44B0-B6A4-99B54B62EAB6"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:2.23:*:*:*:*:*:*:*","matchCriteriaId":"974A0766-EFA9-4A0C-B668-0C1C92A851DE"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar:2.23:rc1:*:*:*:*:*:*","matchCriteriaId":"6023B70C-BC45-4338-AA40-9C2782EC3C0E"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpicalendar:phpicalendar2.0:alpha_test:*:*:*:*:*:*:*","matchCriteriaId":"5A8C89D2-F0CD-4867-80CC-FCD824014B7C"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2008","CveId":"5840","Ordinal":"1","Title":"CVE-2008-5840","CVE":"CVE-2008-5840","Year":"2008"},"notes":[{"CveYear":"2008","CveId":"5840","Ordinal":"1","NoteData":"PHP iCalendar 2.24 and earlier allows remote attackers to bypass authentication by setting the phpicalendar and phpicalendar_login cookies to 1.","Type":"Description","Title":"CVE-2008-5840"},{"CveYear":"2008","CveId":"5840","Ordinal":"2","NoteData":"2009-01-05","Type":"Other","Title":"Published"},{"CveYear":"2008","CveId":"5840","Ordinal":"3","NoteData":"2017-09-28","Type":"Other","Title":"Modified"}]}}}