{"answers":{"affected":"3 open source packages ship an affected version, including gogs.io/gogs. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2014-8682 exists.","fix":"Upgrade gogs.io/gogs to 0.5.8 or later.","what":"CVE-2014-8682 is a high-severity SQL injection vulnerability in n/a, published on 21 Nov 2014. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2014-8682 and fix it if it is affected.\n\nWhat it is: CVE-2014-8682 is a high-severity SQL injection vulnerability in n/a, published on 21 Nov 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2014-8682 exists.\n\nAffected packages and fixed versions:\n- gogs.io/gogs (Go): affected from 0.3.1; fixed in 0.5.8\n- gogs.io/gogs (Go): affected from 0.3.1; fixed in 0.5.8\n- gogs.io/gogs (Go): affected from 0.3.1; fixed in 0.5.8\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-2014-8682/ (Markdown: https://insights.sbomify.com/CVE-2014-8682/index.md)","id":"CVE-2014-8682","markdown":"https://insights.sbomify.com/CVE-2014-8682/index.md","name":"CVE-2014-8682","record":{"aliases":["GHSA-g6xv-8q23-w2q3","GO-2022-0831"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Git service","requires_auth":"none","summary":"Remote attackers can execute arbitrary SQL commands via search parameters in Gogs, potentially reading or modifying database contents.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"gogs","vendor":"gogits"}],"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":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"Multiple SQL injection vulnerabilities in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.x before 0.5.6.1105 Beta allow remote attackers to execute arbitrary SQL commands via the q parameter to (1) api/v1/repos/search, which is not properly handled in models/repo.go, or (2) api/v1/users/search, which is not properly handled in models/user.go.","ecosystems":["Go"],"exploits":{"exploitdb":1,"first_seen":"2014-11-14","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2014-11-14","kind":"exploitdb","ref":"35238","stars":null,"title":"Gogs - 'users'/'repos' '?q' SQL Injection"},{"date":"2018-12-04T00:40:09Z","kind":"github_poc","ref":"https://github.com/nihal1306/gogs","stars":0,"title":"CVE-2014-8682"},{"date":null,"kind":"nuclei","ref":"http/cves/2014/CVE-2014-8682.yaml","stars":null,"title":"Gogs (Go Git Service) - SQL Injection"}],"tier":"weaponised"},"has_fix":true,"headline":"SQL Injection in Gogs","id":"CVE-2014-8682","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"sql_injection","year":"2014"},"n_packages":3,"n_references":8,"next":{"headline":"Cross-site Scripting in Gogs","id":"CVE-2014-8683"},"packages":[{"ecosystem":"Go","fixed":["0.5.8"],"introduced":["0.3.1"],"last_affected":[],"package":"gogs.io/gogs","purl":null,"source":"GHSA-g6xv-8q23-w2q3"},{"ecosystem":"Go","fixed":["0.5.8"],"introduced":["0.3.1"],"last_affected":[],"package":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","source":"GHSA-g6xv-8q23-w2q3"},{"ecosystem":"Go","fixed":["0.5.8"],"introduced":["0.3.1"],"last_affected":[],"package":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","source":"GO-2022-0831"}],"prev":{"headline":"SQL Injection in gogs.io/gogs","id":"CVE-2014-8681"},"products":["n/a"],"published":"2014-11-21","related":[{"cvss_score":7.5,"headline":"SQL Injection in gogs.io/gogs","id":"CVE-2014-8681","kev_date_added":null,"published":"2014-11-21"},{"cvss_score":4.3,"headline":"Cross-site Scripting in Gogs","id":"CVE-2014-8683","kev_date_added":null,"published":"2014-11-21"}],"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":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary SQL commands via search parameters in Gogs, potentially reading or modifying database contents.","url":"https://insights.sbomify.com/CVE-2014-8682/"}