{"id":"CVE-2021-29625","aliases":["DEBIAN-CVE-2021-29625","EUVD-2022-1276","GHSA-2v82-5746-vwqc","UBUNTU-CVE-2021-29625","USN-5271-1"],"status":"published","title":"XSS in doc_link","description":"Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.09572,"percentile":0.95531,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2021-05-19T21:35:11Z","modified":"2026-10-23T18:03:26Z","exploits":[{"source":"nuclei","id":"CVE-2021-29625","title":"Adminer \u003c=4.8.0 - Cross-Site Scripting","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-29625.yaml"}],"fixes":[{"ecosystem":"Packagist","package":"vrana/adminer","fixed_in":["4.8.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"adminer","fixed_in":["4.7.9-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"adminer","fixed_in":["4.7.9-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"adminer","fixed_in":["4.7.9-2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"adminer","fixed_in":["4.6.2-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"adminer","fixed_in":["4.7.6-1ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"vrana/adminer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.7.8"},{"fixed":"4.8.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"adminer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.9-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"adminer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.9-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"adminer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.9-2"}]}]},{"source":"osv","ecosystem":"Packagist","package":"vrana/adminer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.7.8"},{"fixed":"4.8.1"}]}],"versions":["v4.7.8","v4.7.9","v4.8.0"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"adminer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.6.2-1ubuntu0.1~esm1"}]}],"versions":["4.3.1-2","4.5.0-1","4.6.1-1","4.6.2-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"adminer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.6-1ubuntu0.1~esm1"}]}],"versions":["4.7.2-1","4.7.4-1","4.7.5-1","4.7.6-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"adminer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-1ubuntu1+esm1"}]}],"versions":["4.2.1-1","4.2.1-1ubuntu1"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"adminer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.6.2-1ubuntu0.1~esm1"}]}],"versions":["4.3.1-2","4.5.0-1","4.6.1-1","4.6.2-1"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"adminer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.6-1ubuntu0.1~esm1"}]}],"versions":["4.7.2-1","4.7.4-1","4.7.5-1","4.7.6-1"],"bundled":3}],"products":[{"vendor":"adminer","product":"adminer"},{"vendor":"vrana","product":"adminer"}],"references":[{"url":"https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqc","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://sourceforge.net/p/adminer/bugs-and-features/797/","tags":["x_refsource_MISC","x_transferred","Exploit","Product","Third Party Advisory","evidence","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29625","tags":["advisory"]},{"url":"https://packagist.org/packages/vrana/adminer","tags":["web"]},{"url":"https://github.com/advisories/GHSA-2v82-5746-vwqc"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-29625","tags":["advisory"]},{"url":"https://sourceforge.net/p/adminer/bugs-and-features/797","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2021-29625","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5271-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29625","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-35572","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-21311","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-29625","title":"XSS in doc_link","description":"Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).","status":"published","published":"2021-05-19T21:35:11Z","modified":"2024-08-03T22:11:06.269Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:33:06.658806Z"}],"euvd":[{"id":"EUVD-2022-1276","description":"Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).","status":"published","published":"2021-05-19T21:35:11Z","modified":"2024-08-03T22:11:06Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T03:24:43.965438Z"}],"ghsa":[{"id":"GHSA-2v82-5746-vwqc","title":"XSS in doc_link","description":"### Impact\nUsers of MySQL, MariaDB, PgSQL and SQLite are affected. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected.\n\n### Patches\nPatched by 4043092, included in version [4.8.1](https://github.com/vrana/adminer/releases/tag/v4.8.1).\n\n### Workarounds\nDo both:\n* Use browser supporting strict CSP.\n* Enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).\n\n### References\nhttps://sourceforge.net/p/adminer/bugs-and-features/797/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Comment at 4043092.\n","status":"published","published":"2022-03-18T17:49:28Z","modified":"2023-02-01T05:05:47Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:35.781528Z"}],"nvd":[{"id":"CVE-2021-29625","description":"Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).","status":"published","published":"2021-05-19T22:15:07.903Z","modified":"2026-06-17T03:48:03.123Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:06:53.987491Z"}],"osv":[{"id":"CVE-2021-29625","description":"Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).","status":"published","published":"2021-05-19T22:15:07.903Z","modified":"2026-10-20T10:53:43.523101566Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:19.483607Z"},{"id":"DEBIAN-CVE-2021-29625","description":"Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).","status":"published","published":"2021-05-19T22:15:07.903Z","modified":"2026-10-23T18:03:26.419474555Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:34.94143Z"},{"id":"GHSA-2v82-5746-vwqc","title":"XSS in doc_link","description":"### Impact\nUsers of MySQL, MariaDB, PgSQL and SQLite are affected. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected.\n\n### Patches\nPatched by 4043092, included in version [4.8.1](https://github.com/vrana/adminer/releases/tag/v4.8.1).\n\n### Workarounds\nDo both:\n* Use browser supporting strict CSP.\n* Enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).\n\n### References\nhttps://sourceforge.net/p/adminer/bugs-and-features/797/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Comment at 4043092.\n","status":"published","published":"2022-03-18T17:49:28Z","modified":"2026-07-08T06:29:28.93053962Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:34.700741Z"},{"id":"UBUNTU-CVE-2021-29625","description":"Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).","status":"published","published":"2021-05-19T22:15:00Z","modified":"2026-02-04T03:52:57.366421Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:26.779273Z"},{"id":"USN-5271-1","title":"adminer vulnerabilities","description":"It was discovered that Adminer did not escape data in the history parameter\nof the default URI. A remote attacker could possibly use this issue to perform\ncross-site scripting (XSS) attacks. This issue only affected Ubuntu 20.04 ESM.\n(CVE-2020-35572)\n\nAdam Crosser and Brian Sizemore discovered that Adminer incorrectly handled\nredirection requests to internal servers. An unauthenticated remote attacker\ncould possibly use this to perform a server-side request forgery attack and\nexpose sensitive information. (CVE-2021-21311)\n\nIt was discovered that Adminer was incorrectly escaping data in the doc_link\nfunction. A remote attacker could possibly use this issue to perform cross-site\nscripting (XSS) attacks. This issue only affected Ubuntu 18.04 ESM and\nUbuntu 20.04 ESM. (CVE-2021-29625)\n","status":"published","published":"2022-06-03T13:18:00Z","modified":"2026-06-25T13:30:58.731969664Z","updated_at":"2026-11-02T16:58:15.683829Z"}]}}
