{"answers":{"affected":"5 open source packages ship an affected version, including github.com/gogits/gogs and gogs.io/gogs. It affects 1 product.","exploited":"There is no known exploitation of CVE-2014-8681 in the wild and no public exploit code.","fix":"Upgrade github.com/gogits/gogs to 0.5.8 or later.","what":"CVE-2014-8681 is a high-severity SQL injection vulnerability in n/a, published on 21 Nov 2014. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2014-8681 and fix it if it is affected.\n\nWhat it is: CVE-2014-8681 is a high-severity SQL injection vulnerability in n/a, published on 21 Nov 2014. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2014-8681 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/gogits/gogs (Go): affected all versions; fixed in 0.5.8\n- github.com/gogits/gogs (Go): affected from 0.3.1; fixed in 0.5.8\n- github.com/gogits/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-8681/ (Markdown: https://insights.sbomify.com/CVE-2014-8681/index.md)","id":"CVE-2014-8681","markdown":"https://insights.sbomify.com/CVE-2014-8681/index.md","name":"CVE-2014-8681","record":{"aliases":["GHSA-mr6h-chqp-p9g2","GO-2020-0021"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Gogs Git Service","requires_auth":"low_privilege","summary":"Remote attackers can execute arbitrary SQL commands via the label parameter 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":"SQL injection vulnerability in the GetIssues function in models/issue.go in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.6.x before 0.5.6.1025 Beta allows remote attackers to execute arbitrary SQL commands via the label parameter to user/repos/issues.","ecosystems":["Go"],"exploits":{"exploitdb":1,"first_seen":"2014-11-14","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2014-11-14","kind":"exploitdb","ref":"35237","stars":null,"title":"Gogs - 'label' SQL Injection"}],"tier":"poc_unverified"},"has_fix":true,"headline":"SQL Injection in gogs.io/gogs","id":"CVE-2014-8681","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"sql_injection","year":"2014"},"n_packages":5,"n_references":6,"next":{"headline":"SQL Injection in Gogs","id":"CVE-2014-8682"},"packages":[{"ecosystem":"Go","fixed":["0.5.8"],"introduced":["0"],"last_affected":[],"package":"github.com/gogits/gogs","purl":"pkg:golang/github.com/gogits/gogs","source":"GO-2020-0021"},{"ecosystem":"Go","fixed":["0.5.8"],"introduced":["0.3.1"],"last_affected":[],"package":"github.com/gogits/gogs","purl":null,"source":"GHSA-mr6h-chqp-p9g2"},{"ecosystem":"Go","fixed":["0.5.8"],"introduced":["0.3.1"],"last_affected":[],"package":"github.com/gogits/gogs","purl":"pkg:golang/github.com/gogits/gogs","source":"GHSA-mr6h-chqp-p9g2"},{"ecosystem":"Go","fixed":["0.5.8"],"introduced":["0.3.1"],"last_affected":[],"package":"gogs.io/gogs","purl":null,"source":"GHSA-mr6h-chqp-p9g2"},{"ecosystem":"Go","fixed":["0.5.8"],"introduced":["0.3.1"],"last_affected":[],"package":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","source":"GHSA-mr6h-chqp-p9g2"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2014-8680"},"products":["n/a"],"published":"2014-11-21","related":[{"cvss_score":7.5,"headline":"SQL Injection in Gogs","id":"CVE-2014-8682","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"}],"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 the label parameter in Gogs, potentially reading or modifying database contents.","url":"https://insights.sbomify.com/CVE-2014-8681/"}