{"schemaVersion":3,"id":"CVE-2024-12114","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"The FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.4.29 via the foogallery_attachment_modal_save AJAX action due to missing validation on a user controlled key (img_id). This makes it possible for authenticated attackers, with granted access and above, to update arbitrary post and page content. This requires the Gallery Creator Role setting to be a value lower than 'Editor' for there to be any real impact.","dates":{"published":"2025-03-08T05:30:09.469Z","modified":"2026-04-08T17:33:15.524Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"wordfence","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00321,"percentile":0.23832,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.006000000000000016,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00315},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00321,"percentile":0.23832}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00321,"percentile":0.23832}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key","description":"The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/639.html"}],"affected":[{"vendor":"fooplugins","product":"foogallery","name":"foogallery","label":"foogallery","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.4.30","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.30","eol":null,"hubHref":"/vendor/fooplugins/foogallery"},{"vendor":"fooplugins","product":"gallery by foogallery","name":"Gallery by FooGallery","label":"gallery by foogallery","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.4.29","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 2.4.29","eol":null,"hubHref":"/vendor/fooplugins/gallery_by_foogallery"},{"vendor":"wordpress","product":"foogallery","name":"FooGallery Photo Gallery : Image, Video & Masonry Galleries","label":"foogallery","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.4.29 (fixed in 2.4.30)","noFixRecorded":false,"fixedIn":"2.4.30"}],"versionsText":"≤ 2.4.29 (fixed in 2.4.30)","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/f4fe3ad9-247f-4e5d-8c79-0970afaa7729?source=cve","label":"www.wordfence.com/threat-intel/vulnerabilities/id/f4fe3ad9-247f-4e5d-8c79-0970afaa7729?source=cve","hostname":"www.wordfence.com","tags":["Third Party Advisory"]},{"url":"https://github.com/fooplugins/foogallery/blob/master/includes/admin/class-gallery-attachment-modal.php#L242","label":"github.com/fooplugins/foogallery/blob/master/includes/admin/class-gallery-attachment-modal.php","hostname":"github.com","tags":["Product"]},{"url":"https://plugins.trac.wordpress.org/changeset/3250684/foogallery/tags/2.4.30/includes/admin/class-gallery-attachment-modal.php?old=3229839&old_path=foogallery%2Ftags%2F2.4.29%2Fincludes%2Fadmin%2Fclass-gallery-attachment-modal.php","label":"plugins.trac.wordpress.org/changeset/…","hostname":"plugins.trac.wordpress.org","tags":["Patch"]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/f4fe3ad9-247f-4e5d-8c79-0970afaa7729","label":"www.wordfence.com/threat-intel/vulnerabilities/id/f4fe3ad9-247f-4e5d-8c79-0970afaa7729","hostname":"www.wordfence.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-03-08T05:30:09.469Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-08T17:33:15.524Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":17,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T07:36:33.736Z","stale":false,"partial":false}}