{"answers":{"affected":"3 open source packages ship an affected version, including django and Django. It affects 1 product.","exploited":"There is no known exploitation of CVE-2007-0404 in the wild and no public exploit code.","fix":"Upgrade django to 1.0 or later.","what":"CVE-2007-0404 is a high-severity command injection vulnerability in n/a, published on 23 Jan 2007."},"fix_prompt":"Check this codebase for CVE-2007-0404 and fix it if it is affected.\n\nWhat it is: CVE-2007-0404 is a high-severity command injection vulnerability in n/a, published on 23 Jan 2007. \nExploitation: There is no known exploitation of CVE-2007-0404 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- django (PyPI): affected from 0.95; fixed in 1.0\n- django (PyPI): affected from 0.95; fixed in 1.0\n- Django (PyPI): affected from 0.95; fixed in 1.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2007-0404/ (Markdown: https://insights.sbomify.com/CVE-2007-0404/index.md)","id":"CVE-2007-0404","markdown":"https://insights.sbomify.com/CVE-2007-0404/index.md","name":"CVE-2007-0404","record":{"aliases":["DEBIAN-CVE-2007-0404","GHSA-qc99-g3wm-hgxr","PYSEC-2026-630"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"unknown","non_default_config":false,"product_category":"Python web framework","requires_auth":"none","summary":"Attackers can execute arbitrary commands via shell metacharacters in .po or .mo files processed by Django's compile-messages script.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"django","vendor":"django_project"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[],"description":"bin/compile-messages.py in Django 0.95 does not quote argument strings before invoking the msgfmt program through the os.system function, which allows attackers to execute arbitrary commands via shell metacharacters in a (1) .po or (2) .mo file.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Django Arbitrary Code Execution","id":"CVE-2007-0404","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2007"},"n_packages":3,"n_references":4,"next":{"headline":"Django Improper Access Control","id":"CVE-2007-0405"},"packages":[{"ecosystem":"PyPI","fixed":["1.0"],"introduced":["0.95"],"last_affected":[],"package":"Django","purl":null,"source":"GHSA-qc99-g3wm-hgxr"},{"ecosystem":"PyPI","fixed":["1.0"],"introduced":["0.95"],"last_affected":[],"package":"django","purl":"pkg:pypi/django","source":"GHSA-qc99-g3wm-hgxr"},{"ecosystem":"PyPI","fixed":["1.0"],"introduced":["0.95"],"last_affected":[],"package":"django","purl":"pkg:pypi/django","source":"PYSEC-2026-630"}],"prev":{"headline":"SQL injection in n/a","id":"CVE-2007-0403"},"products":["n/a"],"published":"2007-01-23","related":[{"cvss_score":6.8,"headline":"Cross-site request forgery in n/a","id":"CVE-2007-5828","kev_date_added":null,"published":"2007-11-05"},{"cvss_score":6.5,"headline":"Django Improper Access Control","id":"CVE-2007-0405","kev_date_added":null,"published":"2007-01-23"},{"cvss_score":5,"headline":"Django Admin Media Handler Vulnerable to Directory Traversal","id":"CVE-2009-2659","kev_date_added":null,"published":"2009-08-04"},{"cvss_score":4.3,"headline":"Django Cross-site scripting (XSS) vulnerability","id":"CVE-2008-2302","kev_date_added":null,"published":"2008-05-23"},{"cvss_score":2.6,"headline":"Django vulnerable to Denial of Service via i18n middleware component","id":"CVE-2007-5712","kev_date_added":null,"published":"2007-10-30"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-07","vendors":["n/a"]},"summary":"Attackers can execute arbitrary commands via shell metacharacters in .po or .mo files processed by Django's compile-messages script.","url":"https://insights.sbomify.com/CVE-2007-0404/"}